tlongstretch / freeserf-with-AI-plus

THIS PROJECT WAS MOVED TO 'Forkserf', GO THERE INSTEAD
https://github.com/forkserf/forkserf
GNU General Public License v3.0
1 stars 0 forks source link

problem in transportation logic #79

Open p1plp1 opened 2 years ago

p1plp1 commented 2 years ago

imagine you have fisherman, he catches 8 fishes, so your serf transports them to 2nd flag but fishherman catches 8 another fishes, and 2nd flag is full but serf gets one fish and locks 2nd flag ... but it is full so he cant drop fish there so he returns to first but it is allready full with 8 fishes, hmmm! deadlock in transportation!

p1plp1 commented 2 years ago

looks like bad or nonexisting FLAG_MAX_RES_COUNT check before transporting to that flag

tlongstretch commented 1 year ago

I vaguely remember that in the original game if there is no space at the resource-producer's building flag to drop off a new resouce, the produce will not even come out of his hut to produce one (i.e. go fishing)

I'll check into this specific one, creating an issue in Forkserf...