ttyborg / castlesand

Automatically exported from code.google.com/p/castlesand
0 stars 0 forks source link

serf can't step on a free road tile #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
serf can't step on a free road tile 
it's below an unfinished (just finished digging) building entrance

the complete story: 
a serf step on that tile, after that a builder step there too from the
construction site and two units located on the same tile 
both of them can leave the tile, but after everybody leaves nobody can step
there

Original issue reported on code.google.com by zemei88@gmail.com on 26 Jan 2010 at 8:25

GoogleCodeExporter commented 9 years ago
Please specify version of Kam Remake (r565 I guess?)

Original comment by kromster80@gmail.com on 29 Jan 2010 at 2:55

GoogleCodeExporter commented 9 years ago
Yes it's r565.

I have a savegame for that. Attached it.
It happens above the Inn at the entrance of a new vineyard.

Original comment by zemei88@gmail.com on 30 Jan 2010 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
Savegame is very good, thanks!

Original comment by kromster80@gmail.com on 31 Jan 2010 at 1:27

GoogleCodeExporter commented 9 years ago
Very nice bug report! Save game is perfect. :)
I debugged the save and found what the problem was:
1. The labourer on the construction site forced the serf to exchange (pass) 
with it,
because the labourer had been waiting for a long time.
2. The exchange was accepted by both the serf and the labourer, and they both 
began
walking past each other.
3. As it is about to walk the serf realises that the tile is a building site, 
which
it is not allowed to walk on. It therefore re-route and forgets all about the 
exchange.
4. The labourer does not know this and keeps walking, causing two units on the 
one tile.

I added a check when forcing an exchange that makes sure the unit can walk on 
the
tile we are on. I attached a fixed version of the r565 EXE so you can check for
yourself. (it is the same as the one in downloads except for this fix)

Thanks HEAPS for this report, it is the kind of thing that happens very, very 
rarely
so it is unlikely Krom or I would have found it. Please report any other 
problems you
find. :D

Original comment by lewinjh@gmail.com on 1 Feb 2010 at 3:07

Attachments: