Menu

Error with save/load?

northkid
2011-06-14
2012-10-09
  • northkid

    northkid - 2011-06-14

    Hi, im experiencing problems when trying to load a game.


    Microsoft Visual C++ Runtime Library

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.


    The game then closes. It seems that it start from rev 2379. looks like the
    format changed a bit there.

     
  • northkid

    northkid - 2011-06-14

    I tried messing around in game_io.cpp

    changing the block on line 750 to

    if(format < FORMAT_VERSION_2371)
    {
    msg.Pop(byte8); world.week_current = byte8;
    world.week_next = Week::WeekRand();
    }
    else
    {
    if(format < FORMAT_VERSION_2379)
    {
    msg.Pop(world.week_current.first);
    msg.Pop(world.week_current.second);
    world.week_next = Week::WeekRand();
    }
    else
    {
    msg.Pop(world.week_current.first);
    msg.Pop(world.week_current.second);
    msg.Pop(world.week_next.first);
    msg.Pop(world.week_next.second);

    }
    }

    seemed to work, but im not sure.

     

Log in to post a comment.