Thursday, 4 December 2008

Serialization part 4

There were two bugs in load game. First one was easy, I copy-pasted npc restoring code and there was old value from item restore loop so it tried to restore too many monsters. The second bug was a bit harder, but found when inspecting the load buffer size. I forgot to clear the std::string where data was stored before loading next piece of data, so the new data was added to the old string.

Load game seems to work now and I can concentrate on pathfinding routine.

2 comments:

Anonymous said...

I really appreciate your regular updates on Teemu development. If I remember correctly, pathfinding is the last open point before balancing, isn't it? I'm really looking forward to see the first release.

Krice said...

The pathfinding is now ready. I think it could be modified to go around other monsters, but the important thing is that monsters can now go around small terrain obstacles without getting stuck.

It's not perfect pathfinding and for some reason monsters went to swim on ocean when they were pathfinding which I had to restrict. Still lots of other small details to fix and I have to win the game myself before the release.