Zolika1351 Posted September 15, 2017 Share Posted September 15, 2017 (edited) if(DoesScriptExist("load_ig_roman")) { LogInfo("DoesScriptExist passed"); RequestScript("load_ig_roman"); LogInfo("RequestScript passed"); while(!HasScriptLoaded("load_ig_roman")) { Wait(0); LogInfo("Waiting for load"); } LogInfo("Loaded, starting"); StartNewScript("load_ig_roman", 1024); LogInfo("Started script"); MarkScriptAsNoLongerNeeded("load_ig_roman"); LogInfo("Marked as no longer needed"); Wait(250); } Running this code crashes the game. load_ig_roman.sco exists, so I have no idea why this happens. Adding the LogInfos made me see that it crashes after "Loaded, starting" and doesn't log "Started script" so StartNewScript is the problem. Any ideas, anyone who still checks this section? Edited December 4, 2018 by Zolika1351 undid hax Link to comment Share on other sites More sharing options...
C1aude_III Posted October 1, 2018 Share Posted October 1, 2018 On 9/15/2017 at 10:15 PM, Zolika1351 said: if(DoesScriptExist("load_ig_roman")) { LogInfo("DoesScriptExist passed"); RequestScript("load_ig_roman"); LogInfo("RequestScript passed"); while(!HasScriptLoaded("load_ig_roman")) { Wait(0); LogInfo("Waiting for load"); } LogInfo("Loaded, starting"); StartNewScript("load_ig_roman", 1024); LogInfo("Started script"); MarkScriptAsNoLongerNeeded("load_ig_roman"); LogInfo("Marked as no longer needed"); Wait(250); } Running this code crashes the game. load_ig_roman.sco exists, so I have no idea why this happens. Adding the LogInfos made me see that it crashes after "Loaded, starting" and doesn't log "Started script" so StartNewScript is the problem. Any ideas, anyone who still checks this section? Load a new game and try again Link to comment Share on other sites More sharing options...