View Full Version : Can't script... Lua troubles...

01-08-2008, 12:01 AM
What exaclty do I need to have/download in order to use Novashell? I can only access the map editing features, I cannot do any scripting or editing really. I downloaded Lua, did nothing. What can I do?

01-08-2008, 12:27 AM
I realize that was unclear... My problem is this, I cannot open an existing script within Novashell, I cannot open a new script to create, and I cannot add coding to any items. I need to know what to do.

01-08-2008, 02:37 AM
You don't need anything other than the main Novashell installer. Did you go through the tutorials on the novashell website?

What OS are you using? If it's linux there is no automatic shelling out to a text editor, you have open the scripts manually (which are text files, like mychar.lua) with a text editor.

01-08-2008, 10:47 AM
I'm on Windows Vista... It tends to screw things up. Whenever I try to open any of the scripts, error messages say "Windows doesn't know how to open this file. You need to use explorer to associate this file with a program." Or something almost exactly like that...

01-09-2008, 12:08 PM
I assume it works the same in Vista as it does in XP. If that is the case, do this (from part 4 of the tutorial (http://www.rtsoft.com/novashell/docs/getting_started_part4.html)):

If you double click a .lua text file, it should open in your favorite editor. If it doesn't, you'll need to associate it by right clicking the file from Windows Explorer, choosing "Open With->Choose Program..." and selecting your favorite text editor. Check the "always use the selected program to open this kind of file" box before clicking OK.

01-10-2008, 04:03 AM
So I could open Lua files in notepad? Am I misunderstanding?
Regardless, thanks for all of the help.

01-10-2008, 04:22 AM
Yes, you can open it with Notepad. All the code is in plain text.

I've gotten Context (http://www.context.cx/) (suggested in the tutorial if I remember correctly), and downloaded a Lua highlighting file thingy (http://www.context.cx/downloads/highlighters/lua.chl) (put it in ../Context/Highlighters/), so if I open the .lua file in Context instead of Notepad, it'll make it somewhat easier to work with... I think anyway, I only set up Context when I had already gotten to the last part of the tutorial, so I'm not that experienced with it yet.

And you're welcome :)