Jump to content

Mission Script Error


Starboy

Recommended Posts

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

 

 

 

scripterror.jpg

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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 : ( ) = ° * - _  ???  

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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 ?

Click here for tutorials for using Virpil Hardware and Software

 

Click here for Virpil Flight equipment dimensions and pictures.

.

Link to comment
Share on other sites

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

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 by Starboy
Link to comment
Share on other sites

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. 

init.jpg

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...