Currently Online

Latest Posts

Topic: The game said Bug

Atanase
Avatar
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-05-01, 09:30

Here is the continuation of the previous post.


Attachment: Fic_06_07.zip (3.2 MB)

La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1307
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2021-05-01, 14:26

OK I see…

some digging in the binary file shows that the first barbarians_well_keeper in the file _6 saved a few extra bytes at the end of his worker data. So my patch is not sufficient, I'll enhance my investigation to a deeper level. I hope I won't exhaust 100% of my available resources which would decrease the success chance to 5%. face-wink.png

… the bytes are 03 FF FF FF FF which is exactly what carrier data does. So I guess what happens is that the engine does not support turning a Carrier into a normal Worker via experience-upgrades. I think this should not be too hard to patch though.

Edited: 2021-05-01, 14:42

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1307
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2021-05-01, 15:07

I now released a new version of the Water Resource Efficiency add-on (1.1.0) that fixes the bug. This works with master as well. It will not fix already broken savegames though. (Edit: savegames that are not broken will continue to work fine with the new version). I also pushed a commit to the branch that prevents regressions of the problem by throwing a useful exception early, so future add-on designers won't encounter the same pitfall.

Edited: 2021-05-01, 15:11

Top Quote
Atanase
Avatar
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-05-01, 15:10

Hello,

After accusing geologists of having no professional conscience because they did not test under the roads, now my miners are zealous in saving extra bytes.
The small staff is not what it used to be. face-smile.png face-smile.png face-smile.png

I'll try to find a saved-game before the first well and pray that you find a solution that will allow me to continue my tests without having to redo everything. face-wink.png


La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote