DragonShadow Posted September 10, 2014 Posted September 10, 2014 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.
RagnarDa Posted September 10, 2014 Posted September 10, 2014 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.
Sabre-TLA Posted September 10, 2014 Posted September 10, 2014 Reported as a bug here. Also effects the mission briefing text. Anything less than 1.2.8.27915 update is ok. MapleFlagMissions - Read Our Blog for Updates
RagnarDa Posted September 10, 2014 Posted September 10, 2014 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.
RagnarDa Posted September 10, 2014 Posted September 10, 2014 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.
DragonShadow Posted September 10, 2014 Author Posted September 10, 2014 Reported as a bug here. Also effects the mission briefing text. Anything less than 1.2.8.27915 update is ok. Thanks Sabre, glad to hear it's getting some attention.
DragonShadow Posted September 10, 2014 Author Posted September 10, 2014 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.
Recommended Posts