[We the People] Development "diary"

I looked at a bug report, which states that cargo sold in Europe is reset on tax changes. This makes it very hard to finish the quests for being the first to sell X amount. Indeed this turned out to be correct. I just just remove the line pointed out as the issue and then... oh wait that will mess up calculations for price changes.

I examined the problem further and the more I looked into it, the bigger the issues became, so I ended up doing a complete rewrite of how traded cargo is stored and accessed. It is now split into 4 different "memories". Sold and bought in the player, used for quests. Sold and bought in one number in the king used for price changes and value of cargo traded stored in king, used for tax changes. I also had to redesign how to update those counters because the old system was so confusing that at some point somebody will use them incorrectly....again. In the end this quick fix ended up taking a week to complete, but at least now quests should work as intended.

As a bonus I added a new page to the domestic advisor, which shows amount sold and bought at the 3 locations for exports. We now finally have a screen where quest progress can be monitored. It doesn't say what the quest goal is, but you can at least see the current number.

Also sales only counts goods coming from the new world. Anything bought off map will be marked and not count in the sales statistics. This way you can't cheat completing a quest by buying and instantly selling again in Europe. I noticed that I had created this loophole by accident and then fixed it before even committing, so it never even existed at any point in the develop version.
 

Attachments

  • trading advisor.jpg
    trading advisor.jpg
    198.9 KB · Views: 158
Hmmm.... has development of We the People Mod stopped? It's been over 3 months since anyone posted anything about the development progress for the next update. I know there is a massive code rewrite going on but it is nice to know that it is still progressing.
 
Hmmm.... has development of We the People Mod stopped? It's been over 3 months since anyone posted anything about the development progress for the next update. I know there is a massive code rewrite going on but it is nice to know that it is still progressing.
Day to day discussion is on Discord. Right now the new design is aiming at the code being able to set the graphics by allocating C++ classes, and the exe is still slow to handle python graphics, but progress continues.
 
Back
Top Bottom