EAZYJ Posted February 2, 2022 Share Posted February 2, 2022 (edited) Hello everyone, I have made both an intro and a mission in my script, handled like missions with start_mission. The intro plays automatically at New Game start, and once it finishes the first mission starts. Here's the thing. How do you handle the transition between these two missions? My game crashes when it comes to start_mission 1. Yet I haven't forgot to define those missions and I didn't forget the mission_cleanup and the end_thread at the end of mission 0 (intro). So what could be the problem when mission 1 starts? What am I missing here? I should also mention that I made a variable to check if the intro is completed before it starts to mission 1: start_mission 0 :MAIN_6 wait 0 if and $INTRO_PASSED == 1 $ONMISSION == 0 jf @MAIN_6 wait 3000 start_mission 1 Thanks for any help Edited February 2, 2022 by EAZYJ Link to comment Share on other sites More sharing options...
HzanRsxa2959 Posted February 2, 2022 Share Posted February 2, 2022 Your best bet is using SCRLog to see where the error happens: Download and install Silent's ASI Loader. Download and install SCRLog. Play the game and cause it to crash. In the same folder as scrlog.asi, a file named 'scrlog.log' will be created. Open that file and go to the bottom. The code that caused the crash will be logged there. If you have trouble understanding, post it here. Link to comment Share on other sites More sharing options...
EAZYJ Posted February 2, 2022 Author Share Posted February 2, 2022 I didn't know such tool existed! Thanks for sharing it. I used it, but didn't manage to get any relevant information. Mission 1 script did not appear, probably because it didn't start. Here is what it says about the main thread. ******************************************** script main Local variables dump: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 73567 73567 ******************************************** 00025675&0: [00D6] IF 1 00025679&1: [0038] g412(1) == 1 // TRUE 00025686&1: [0038] g409(1) == 0 // FALSE 00025693&0: [004D] GOTO_IF_FALSE 25671 00025671&0: [0001] WAIT 0 Link to comment Share on other sites More sharing options...
ZAZ Posted February 2, 2022 Share Posted February 2, 2022 please post your script i mean the whole main.scm source text post it at pastebin if it is very big CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
EAZYJ Posted February 2, 2022 Author Share Posted February 2, 2022 I figured out the problem It didn't like formatted gxt in mission 1... I was using that cleo opcode temporarily for texts before replacing all the texts with the appropriate opcodes. Now that I'm using the right ones with gxt table it works again. Thanks for your help though Link to comment Share on other sites More sharing options...