• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Prevent new game if a save has already been loaded

LarryHookins

Buccaneer
Staff member
Storm Modder
Since the reinit code doesn't clean everything up, we need to keep the player from starting a new game unless he's just started the program. This only takes effect after a saved game has been loaded.

In the file seadogs.c in the OnLoad() function:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->//ImportFuncTest();

InterfaceStates.Buttons.New.enable = false;        // LDH can only start new game if you restart the program - 19Apr09

InterfaceStates.Buttons.Resume.enable = true;
InterfaceStates.Buttons.Save.enable = true;
InterfaceStates.Buttons.Load.enable = true;<!--c2--></div><!--ec2-->

This seems to work but someone else should test it before it's released.

Hook
 
Now THERE's a good idea! <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
Quick test: seems to work. Started the game, "New Game" button is enabled. Loaded a savegame, "New Game" button goes gray.
Closed the game and started it again, "New Game" button was enabled again. Should we do this with the "Options" button too?
 
<!--quoteo(post=315207:date=Apr 22 2009, 03:29 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 22 2009, 03:29 PM) <a href="index.php?act=findpost&pid=315207"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Should we do this with the "Options" button too?<!--QuoteEnd--></div><!--QuoteEEnd-->
I thought about that at the time but I'm undecided. Let me think some more.

Hook
 
<!--quoteo(post=315207:date=Apr 22 2009, 10:29 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 22 2009, 10:29 PM) <a href="index.php?act=findpost&pid=315207"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Quick test: seems to work. Started the game, "New Game" button is enabled. Loaded a savegame, "New Game" button goes gray.<!--QuoteEnd--></div><!--QuoteEEnd-->

Cue dozens of "I can't start a new game" posts <img src="style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
<!--quoteo(post=315357:date=Apr 23 2009, 11:31 AM:name=Death: Extra Crispy?)--><div class='quotetop'>QUOTE (Death: Extra Crispy? @ Apr 23 2009, 11:31 AM) <a href="index.php?act=findpost&pid=315357"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->What happens if you start a new game after you load a game?<!--QuoteEnd--></div><!--QuoteEEnd-->

Total mayhem, since the game currently doesn't reinitialize correctly, so some stuff from your last game will spill over. It's the same when you try to change options during a running game.
 
I think I did this with my game. The game is freaking out on me. The stuff won't load properly.. Sometimes the game will even hang. If this is what is causing it, how to do I fix the problem? Do I just start a new game? Do I need to re install PoTC?
 
delete all the old save files start a the game reset options to default tweak them! and here i suggest exiting the game and then back in.
Then make a new game <i><b>Do not change options when you've started a game that tends to screw it rather nastily over</b></i><u></u>

<img src="style_emoticons/<#EMO_DIR#>/guns.gif" style="vertical-align:middle" emoid=":2guns" border="0" alt="guns.gif" /> Surrender The Boot <img src="style_emoticons/<#EMO_DIR#>/guns.gif" style="vertical-align:middle" emoid=":2guns" border="0" alt="guns.gif" />
 
The main clear issue I noticed when starting a new game is that quest characters got random names instead of their intended names.
This was in Build 14 Alpha 9, of course. This problem is easily avoided by closing down the game before starting a new game.
Hook's above line of code forces you to do that.

Would it be possible to add some sort of explanation box saying something like "Start New Game disabled until you close down the game to prevent mess-ups"?
 
What I'd prefer to see is one button that's labelled either New Game or Resume Game depending on the situation.

Hook
 
That IS a good idea! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
Is it just me or is this no longer preventing you from starting a new game if a game has already been loaded?
I just checked, started a storyline and the "New Game" button didn't gray out. Strange, because I know it worked before. <img src="style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
Been wondering about that, too.
The funny thing is, after a while I can not start a new game. If it is because of changing locations or just time passed, I dont know.
 
Back
Top