Show whole topic Jun 04, 2010 2:58 pm
argv0 Offline
Mitglied
Registered since: May 31, 2010
Location: -


Subject: load game problem
Firstly, great job! Its amazing to see a small team reproduce such a great game in such perfect detail. Like everyone else here, I love this game and always wanted more of it.

So, to the point. I've been playing with it a bit, and diving into the source code when possible, and I'm having a problem when I try to load one of my save games. I've just been playing the single player so far, but when I try to load a previous save (from the main menu), the whole game freezes. I'm not sure if anyone else has seen this before, but I have some details:

When I drop some traces in the code, it gets all the way to serverevents.cpp line 1110

void sendSavedReport ( sSavedReportMessage &savedReport, int player )
{
    cNetMessage* message = new cNetMessage( GAME_EV_SAVED_REPORT );
    ...
    Server->sendNetMessage( message, player ); // <- LINE 1110
}

And when it tries to send the netmessage it seems to hang, possibly waiting for a response. A little more tracing showed me the message was probably not even arriving at all (which is weird).

Now, for the catch...
I dropped some breakpoints in visual studio and ran it again, stepping through this area slowly. And... success, it loaded correctly. Removing the breakpoints and trying it normally afterward caused it to fail again.

Any help would be appreciated, and I can also try to dig up some more information.

Thanks,
Jason