Starboy Posted May 4, 2021 Posted May 4, 2021 Hi everyone, I need help. I'm actually finishing a big mission that took me 2 months to do. Recently, after adding a lot of text, I got this error each time I play the mission ... but the mission still works. I try to find out what's the reason but I cannot find it. I only used mission editor and didn't touch any LUA files manually. First question : Are there some characters or symbols that's forbidden to use into text message/or message to groups , like one of those " ' ! ( * / * ° ? Second question : can anyone help me to find out where I need to look for, to solve the problem. In attachment you ve got the error message Thanks in advance for your help
HC_Official Posted May 4, 2021 Posted May 4, 2021 you best post the mission and maybe we can help you fix it No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Starboy Posted May 4, 2021 Author Posted May 4, 2021 15 minutes ago, HC_Official said: you best post the mission and maybe we can help you fix it the mission is more than 50 mb heavy ... a lot of audio, and so on ... the mission.lua would help ?
cfrag Posted May 4, 2021 Posted May 4, 2021 Quite likely, one of the last edits to a doscriopt or doscriptfile introduced the error. What you are seeing is possibly the result of a missing 'end' after an 'if..then..' The mission itself is probably still alright, all that needs to be posted here is the Lua code that causes it.
Starboy Posted May 4, 2021 Author Posted May 4, 2021 okay I'll post that when I'll come back from work. strange that a "END" is missing, because I always use the Mission Editor, ... so never had to write "if, then, end" ... and do you think it could come from any special symbol I wrote into text message like those one : ( ) = ° * - _ ???
Starboy Posted May 4, 2021 Author Posted May 4, 2021 Here is the mission files (just the code to avoid the 50 mb of audio) With the error msg I got, does it say where I should look ? Which line ? mission
Starboy Posted May 4, 2021 Author Posted May 4, 2021 When I look the code, at line 299 ["func"] = { [2] = "if mission.trig.conditions[2]() then mission.trig.actions[2]() end", [3] = "if mission.trig.conditions[3]() then mission.trig.actions[3]() end", [4] = "if mission.trig.conditions[4]() then mission.trig.actions[4]() end", Number 1 is missing ? Could it be the problem ?
HC_Official Posted May 4, 2021 Posted May 4, 2021 7 hours ago, Starboy said: the mission is more than 50 mb heavy ... a lot of audio, and so on ... the mission.lua would help ? ah ok , you not have drop box of google drive or some other file sharing facility ? No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Grimes Posted May 4, 2021 Posted May 4, 2021 You have the string "AP" in the initialization script line for some reason. Its on the triggers menu nearish the bottom. This line is meant to run lua code while the mission is loading. Since it isn't a valid lua statement it generates an error. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Starboy Posted May 5, 2021 Author Posted May 5, 2021 (edited) 7 hours ago, Grimes said: You have the string "AP" in the initialization script line for some reason. Its on the triggers menu nearish the bottom. This line is meant to run lua code while the mission is loading. Since it isn't a valid lua statement it generates an error. yes, I found at line 33695, this ["initScript"] = "AP", But I don't know anything in LUA code, so I don't know what to look for. Can I fix it in mission editor ? @HC_Official I don't have dropbox, but maybe I will upload it on a private server and share the link Edited May 5, 2021 by Starboy
Grimes Posted May 5, 2021 Posted May 5, 2021 10 hours ago, Grimes said: You have the string "AP" in the initialization script line for some reason. Its on the triggers menu nearish the bottom. This line is meant to run lua code while the mission is loading. Since it isn't a valid lua statement it generates an error. Just remove any text you have there. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Starboy Posted May 5, 2021 Author Posted May 5, 2021 ok I ll look at this, after my work. I wish it could be that easy to fix it
Starboy Posted May 5, 2021 Author Posted May 5, 2021 thhaannnk you you re right. ap was written there, i removed it and now it s working..... never looked there because i don t know how to use this. really thank you
Recommended Posts