Author Topic: Why I did the food/trade system change  (Read 2227 times)

Tom

  • BM Dev Team
  • Exalted Emperor
  • *
  • Posts: 8228
    • View Profile
    • BattleMaster
Why I did the food/trade system change
« Topic Start: January 28, 2012, 08:40:43 PM »
A bit behind-the-scenes into my thoughts:

The old code was a horrible mess, and very buggy. Transporting it to our new code system (Doctrine2) would have worked, but would have been more work than this complete re-write was. In addition, we can now get rid of several very specialized database tables and code fragments and instead re-use things that are already there - the new granaries are just another workshop building.

I am not talking a little bit here. I have literally replaced hundreds of lines of code with maybe a quarter that, and completely eliminated another 500 or so lines of caravan handling. This is a tremendous reduction in potential bugs, and the new code is so much cleaner and easier that when people demanded an overview page for the banker it literally took me 15 minutes to write one.

There will certainly be a few more bumps in the transition, and likely a few bugs here or there, but I can already see the advantages of the new system in the backend code handling, and that alone was worth it.


Perth

  • Honourable King
  • *****
  • Posts: 2037
  • Current Character: Kemen
    • View Profile
Re: Why I did the food/trade system change
« Reply #1: January 28, 2012, 11:31:13 PM »
Sounds great! :)
"A tale is but half told when only one person tells it." - The Saga of Grettir the Strong
- Current: Kemen (D'hara) - Past: Kerwin (Eston), Kale (Phantaria, Terran, Melodia)

egamma

  • Guest
Re: Why I did the food/trade system change
« Reply #2: January 29, 2012, 04:36:03 PM »
As banker/trader/lord, I like the new system.

pcw27

  • Mighty Duke
  • ****
  • Posts: 979
    • View Profile
Re: Why I did the food/trade system change
« Reply #3: February 06, 2012, 08:32:13 AM »
How does geographical proximity effect the new trade system?

Tom

  • BM Dev Team
  • Exalted Emperor
  • *
  • Posts: 8228
    • View Profile
    • BattleMaster
Re: Why I did the food/trade system change
« Reply #4: February 06, 2012, 08:48:35 AM »
How does geographical proximity effect the new trade system?

I don't understand the question.