PDA

View Full Version : Lua: A good scripting resource


CarbonX
2003.11.03, 05:25 PM
I am looking to impliment a scripting language of my making into Ground Zero so the users can create mods and conversions to the game. Does anyone know where there is a good resource on how to do scripting on the mac. e.g. loading files and gathering information from them.

OneSadCookie
2003.11.03, 05:36 PM
http://www.lua.org/

ededed
2003.11.04, 05:40 PM
LuaGL Scripter
Example code
http://www.geocities.com/ed72678954/index.html

CarbonX
2003.11.05, 05:12 PM
Pretty much All I need to know is how to read data into my programs from text files as variables and functions and stuff. (I don't know if this makes sense to you but it all makes sense to me in my head:))

w_reade
2003.11.05, 05:50 PM
Originally posted by CarbonX
(I don't know if this makes sense to you but it all makes sense to me in my head:))

In my experience, thinking this is a sure sign of pain to come ;).

If you just want to get data out of text files, that's pretty simple, but I'm too drunk to be sure I'll get anything right... so ask, and someone will tell you.

If you want a scripting language, Lua (linked above) is really rather pleasant to deal with. Read the docs and OSC's Smiley Tag source from last year's uDevGame, and you should get it pretty quickly.

If you really want to write your own scripting language... don't ask me.

As ever, flame if I'm gibbering ;).

igame3d
2003.11.05, 05:59 PM
Antack Source (http://www.idevgames.com/content/download.php?id=435)
Has a self created scripting language we implemented for uDevGame last year, 32 commands I believe.
Maybe that will help.

Antack the Game (http://www.igame3d.com/AntackMac.sit) for your reference and to see the scripts in action.

Hope that helps.