Rapier-VCG- Posted June 6, 2014 Posted June 6, 2014 Been having a severe issue with copying scripts into a do script in the ME. Everytime I copy and paste a script, it look right in notepad, but once it his the ME window there is a bunch of boxes added in the paste that pretty much fubars the script. I can't get it to copy over exactly how it is written in notepad. Anyone run into this problem as well and know a way to correct it. Would much prefer to embbed my scripts as opposed to running script files.
dooom Posted June 6, 2014 Posted June 6, 2014 i get that too but just ignore the boxes... things seem to work fine for me. ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 "This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL
ENO Posted June 6, 2014 Posted June 6, 2014 You using just notepad or notepad ++? "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Rapier-VCG- Posted June 6, 2014 Author Posted June 6, 2014 You using just notepad or notepad ++? Using the notepad that comes with both windows 7 as well as windows 8.1
RagnarDa Posted June 6, 2014 Posted June 6, 2014 I believe they are just the (missing) symbol for tab-indents and can be safely ignored. The Hoggit-wiki has information about the difference between do script and load script: http://wiki.hoggit.us/view/Scripting_Engine_Introduction DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
Davis0079 Posted June 6, 2014 Posted June 6, 2014 moving to notepad++ is a better way...it free and works with lua files properly...consider this the correct answer to your situation... It only takes two things to fly, Airspeed and Money.
ENO Posted June 6, 2014 Posted June 6, 2014 I was using the same originally- I hadn't ever heard of ++ Notepad ++ is a fantastic tool that maintains syntax and minimizes the discomfort of change. I just "open with" and "set as default" to notepad ++ and the switch was seamless but the benefits are undeniable. give it a try! "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Rapier-VCG- Posted June 7, 2014 Author Posted June 7, 2014 Well tried both notepad and notepad++, and get the same result. Cut and paste a script into ME and still get all the little boxes in front where the spaces should be. Can't be ignored as they do pork the script. Get an error any time u try to load in game. Script Error message goes like this: [string "do..."]:1; unexpected symbol near 'char(30)'
ajax Posted June 7, 2014 Posted June 7, 2014 (edited) The little boxes are normal. They are just representations of special characters -- line feed, carriage return, etc. Lua doesn't care if you use carriage returns, line feeds, tabs, or spaces. All it cares about is that the keywords are separated by 'white space'. So, if you get an error, chances are there is a syntax error in the script. There is a free program for Windows called LuaEdit that I often use to check for these types of errors. Copy and paste your script into it and run the built in syntax checker.http://luaedit.sourceforge.net/ Edited June 7, 2014 by ajax
Rapier-VCG- Posted June 7, 2014 Author Posted June 7, 2014 Hey there ajax, Its not my script I am trying to run but Grimes iad script. Now if I go do script file, it runs fine. But if I copy and paste to a do script, I get that error
ENO Posted June 7, 2014 Posted June 7, 2014 Probably that 82 lines or more error I've been reading about. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Rapier-VCG- Posted June 7, 2014 Author Posted June 7, 2014 Probably that 82 lines or more error I've been reading about. And which error is that Eno?
ajax Posted June 7, 2014 Posted June 7, 2014 Yep, I just now got the same error on a script I was working on. Basically, there is now some limitation on the number of lines of text that can be used in various parts of DCS -- the briefing text, the DoScript text, and probably others. See: http://forums.eagle.ru/showthread.php?p=2085540#post2085540 http://forums.eagle.ru/showthread.php?t=125262
ajax Posted June 8, 2014 Posted June 8, 2014 And my apologies to Rapier. I mean, who would have thought ED would introduce a reduced character limit for text without telling anyone.:protest:
Recommended Posts