Frictional Games Forum (read-only)
Dev mode help? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Dev mode help? (/thread-27013.html)



Dev mode help? - Spazatron - 10-28-2014

I'm loading the debug menu (menu that's opened with F1) while I'm testing my custom story. I need this so that if I make any changes to scripts or maps, I can quickly reload them. But it resets my variables, so scripts get all messed up. For example, if I reload a particular map, the game thinks the whole game has been reloaded and it puts me to the start of the game and the intro starts playing. Is there a way to make it not reset the entire script? It's annoying as I have to keep replaying the story from the map before the one I'm testing, and even then sometimes new entities aren't loading properly so I have to play the story from the start which is time-consuming.


RE: Dev mode help? - Kreekakon - 10-28-2014

Put in random tibbits of script, or disable certain areas of script temporarily just for testing purposes so that you can more easily emulate a level the way that you want to test it at the current moment.


RE: Dev mode help? - FlawlessHappiness - 10-28-2014

Quick map reload?


Also

if(ScriptDebugOn() == true)
{
//DO STUFF WHEN TESTING
}


RE: Dev mode help? - Mudbill - 10-28-2014

Yes, as Flawless here stated, you should add something alone the lines of
PHP Code:
if(!ScriptDebugOn()) { //If debug mode is disabled:
    //Place your intro in here.
} else { //If debug mode is enabled:
    //If needed, add some quick loading here, like skipping certain quests by setting variables or teleporting the player.