1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Infinite Autosave Loop

Discussion in 'Fall from Heaven Troubleshooting' started by James the Wise, Jun 5, 2010.

  1. James the Wise

    James the Wise Chieftain

    Joined:
    Nov 20, 2001
    Messages:
    62
    Wondering if anyone could help

    This is a 2 player LAN game. The problem is whenever we reach turn 292 the game goes into an infinite Autosave Loop whilst continually increasing turns and locking the player out of the game (with just a spinning globe loading cursor)

    We have tried loads of different solutions (turning off auto save, reloading/restarting game, changing current build and research, trying to play the game with just 1 player ingame rather than two) but nothing has worked

    I have attached the save game below (turn 291 and 292 just to be safe)
    This can be tested with just one person ingame and it does the same thing

    If anyone can help or has a solution it would be very much appreciated :)
    Thanks
    James

    Edit: This is on the latest Version 0.41n
     

    Attached Files:

  2. James the Wise

    James the Wise Chieftain

    Joined:
    Nov 20, 2001
    Messages:
    62
    UPDATE: Game hangs after 'Balseraphs' civilization destroyed
    The cause of the problem is every time 'Balseraphs" perpentach civilization is destroyed it causes the bug during the next turn

    No matter how they are destroyed, who is playing as them (AI or Player), what the last city they lose is (tested 3 of 3) the bug still occurs. For example
    Player vs Player, Player vs AI or AI vs AI all give the same result

    It does not matter who or what destroys them, as soon as they are out of the game it either says 'Autosaving' continually and the turns increase locking the player out of the game or it says '[Player Name] has retired from the game' on an infinite loop if a player was balseraphs and you try to play on without them


    I doubt but if there is any way i can simply remove this civ from the game (WorldBuilder!?) or if anyone could suggest a possible solution I would be extremely happy

    It's very frustrating and has ruined this game. I have spent alot of time trying to fix this to no avail. But at least the cause has been identified which may also help to fix and underlying problem with ffh2?
     

    Attached Files:

  3. James the Wise

    James the Wise Chieftain

    Joined:
    Nov 20, 2001
    Messages:
    62
    Update 2
    I tested this game as early as possible and the bug appears as early as turn 3!

    Load attached save game > Choose Ljoslofar > Attack/Destroy Baseraphs > End Turn

    I tried to reproduce this bug on a different LAN game (1 player, Duel map) and it did not appear
     

    Attached Files:

  4. snarko

    snarko DLLer

    Joined:
    Dec 9, 2003
    Messages:
    1,512
    Location:
    Sweden
    argh, browser ate my first post.

    This is a BtS bug that FfH 2 has inherited. It only happens in simultaneous team turn games when the first player lose. You can avoid this either by not playing simultaneous team turns or by having a human be the first player (if you won't continue if (s)he lose). Or wait until someone provide you with a fixed DLL/compile one yourself :p


    The bug is in CvGame::doTurn()
    Spoiler code :
    Code:
    	else if (isSimultaneousTeamTurns())
     	{
     		for (iI = 0; iI < MAX_TEAMS; iI++)
     		{
     			CvTeam& kTeam = GET_TEAM((TeamTypes)iI);
     			if (kTeam.isAlive())
     			{
     				kTeam.setTurnActive(true);
     				FAssert(getNumGameTurnActive() == kTeam.getAliveCount());
     			}
     
     			[B]break[/B];
     		}
     	}


    The break is supposed to be inside the if statement.
     
  5. James the Wise

    James the Wise Chieftain

    Joined:
    Nov 20, 2001
    Messages:
    62
    Thanks for the info but the only problem is that this game has 'Simultaneous Turns' switched off
     
  6. snarko

    snarko DLLer

    Joined:
    Dec 9, 2003
    Messages:
    1,512
    Location:
    Sweden
    When I saw simultaneous team turns in the code I assumed it was another option like simultaneous turns are. Turned out it's not, simultaneous team turns is what you get when simultaneous turns are off in a multiplayer game. So to avoid this turn on simultaneous turns :p
     
  7. CainStar

    CainStar Warlord

    Joined:
    Aug 15, 2007
    Messages:
    201
    Bump =) Anyway I'm having this same problem in a normal custom game against all AI opponents, is there away to fix this?
     
  8. Terkhen

    Terkhen King

    Joined:
    Aug 1, 2011
    Messages:
    911
    Gender:
    Male
    Location:
    Granada
    CainStar: Fall from Heaven 2 has not been updated for a long time. You may want to try More Naval AI, which fixes a lot of bugs like this one.
     

Share This Page