Jump to content

Long lua scripts unreadable in 1.2.10 mission editor?


Recommended Posts

Posted

I started 1.2.10 and opened an earlier mission project of mine which makes extensive use of lua scripting. In this case the scripting is stored as a 'Do script' actions since there had been issues with loading external scripts earlier. I was attempting to copy & paste the script out of the mission editor into a text editor when I noted I had only gotten a partial copy of the script.

 

Looking back into the mission editor it appears that it is unable to display a script longer than ~4180-4200 something characters. The script does still exist inside the mission file if I unzip it, but it's not in directly usable form (Primarily it has a bunch of \\\ at the end of each line, easy enough to filter but..).

 

The same happens if I create a completely new mission, add a "Do script" action to it, paste in a long script, save and load the mission.

 

A few examples of the cut off lines in my scripts:

 

a)

-- Flag??_

 

b)

trigger.action.outTextForCoalition(coalition.side.BLUE, "Current " .. str??_

 

The lines seem to always be cut off with three special characters which appear as [][][] type blocks (single characters).

 

Is this a commonly noted problem and is there a quick conversion fix? Or would I really need to dig out all my scripting from my missions, filter and save them into external files?

 

I was hoping I'd get a little work done now that I had a moment to look into mission scripting again.

Posted

This has been a minor problem as long as I can remember. The issue with the added characters is because of a long time problem since I believe the 1980's that there isn't really a standardized end-of-line character. This issue can however be ignored from what I know as the sim will still be able to interpret those characters correctly (I think). What issues are you having with loading external scripts?

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Posted

I might have been a little quick to post. Still, I believe using Open Script File works OK for me atleast as long as you re-add it every time you make a change to the script. I have posted a request for it to reload the script automatically somewhere.

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Posted

Oh, and use Notepad++ because the files need to be in unicode.

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Posted
I might have been a little quick to post. Still, I believe using Open Script File works OK for me atleast as long as you re-add it every time you make a change to the script. I have posted a request for it to reload the script automatically somewhere.

 

Hi RagnarDa.

 

Thanks for the suggestions, this is not a linebreak character issue though. This is DCS mission editor failing to display long scripts, and apparently briefings if they are entered in the usual text fields in the mission editor. It just cuts out in the middle of a line once it reaches a certain amount of characters.

 

As to including scripts from external files with 'Script File', this has had an issue in the past where the script would not always be included in the mission every time it was saved. I'm not sure if this has been fixed yet or not.

  • Recently Browsing   0 members

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