Hard Light Productions Forums

Modding, Mission Design, and Coding => The Scripting Workshop => Topic started by: Reprobator on November 23, 2007, 02:42:47 pm

Title: beginning LUA scripting issue
Post by: Reprobator on November 23, 2007, 02:42:47 pm
Hi ,

I'm at the very beginning with lua scripting, so I've read the wiki part to write a hello world ( http://www.hard-light.net/wiki/index.php/FS2_Open_Lua_Scripting#Quick.2C_a_full_example.21 )
I've created the scripting.tbl in the correct place, copy / paste the code given in the wiki, launched my game and...nothing , no hello world appears at splash screen.

So I wonder if I done all the necessary, I started to debug ( debug version of executable + debug windows ) but didn't give me more infos about why my script doesn't work.

Help !!
Title: Re: beginning LUA scripting issue
Post by: Wanderer on November 23, 2007, 02:54:11 pm
What build are you using? Hmmm... on a closer look there seems to be a problem with that example script (i haven't written or tested it...). It seems like the hooks mentioned in that example havent been added to the code... odd.

Here is something i wrote earlier and it should work... IIRC http://www.hard-light.net/wiki/index.php/Tutorial_-_Basic_Scripting
Title: Re: beginning LUA scripting issue
Post by: Reprobator on November 23, 2007, 03:34:02 pm
The HUD hello world works fine, thanks =)
Title: Re: beginning LUA scripting issue
Post by: WMCoolmon on November 23, 2007, 06:22:09 pm
Should be fixed in CVS now; I committed my local codebase. See the build (http://www.hard-light.net/forums/index.php/topic,50601.0.html).

Scripting.html increased in size by 8% (65kb to 70kb) :D
Title: Re: beginning LUA scripting issue
Post by: Nuke on November 24, 2007, 02:14:15 am
new build, cool. il take a look later and see what kind of damage i can do :D