Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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)'

Posted (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 by ajax
Posted

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

Posted

And my apologies to Rapier. I mean, who would have thought ED would introduce a reduced character limit for text without telling anyone.:protest:

  • Recently Browsing   0 members

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