Hi all,
Lua scripting has been removed from the latest CVS release (as of 31 Jan, from
http://fs2source.warpcore.org/cgi-bin/cvsweb/cvsweb.cgi/fs2_open/configure.ac?f=h).
So I decided to drop the old version of configure.ac , 1.26, back in place.
Here are the lines dealing with Lua code from configure.ac:
---
AC_ARG_ENABLE(lua,
AC_HELP_STRING([--disable-lua],
[Disable Lua scripting support]),
[fs2_lua=$enableval],
[fs2_lua=yes],---
&
---
if test "$fs2_lua" = "yes" ; then
AC_DEFINE([USE_LUA])
FS2_CXXFLAGS="$FS2_CXXFLAGS -I../lua"
fi---
However, after I clean the folder of previous builds, run make and install the binary, the modifications I've loaded into the file
data/tables/scripting.tbl (as per
http://www.hard-light.net/wiki/index.php/FS2_Open_Lua_Scripting#Quick.2C_a_full_example.21 )
do not
ever load.
Quote:By this point, you may be bored of all this exposition. So here's your typical "Hello, World!" example.
For this amazing trick, we'll make our very own splash screen. Turn off all Freespace 2 mods, and create a file called "scripting.tbl" in your data/tables directory. Open that up in a text editor, and write:
#Global Hooks
$Splash: [
--Set the color to white
Graphics.setColor(255, 255, 255)
--Write "Hello, world!"
Graphics.drawString("Hello, world!", 5, 10)
]
+Override: YES
#EndNow, when you start up FS2_Open, you should see "Hello, world!" in the upper-left, as it loads. End quoteI've also been playing around with other settings, and discovered through trial and error that the one core component required for the Linux binary to run is
root_fs2.vp (I've moved the mediaVPs, original and 3.6.8 series, to their own folders, then symlinked them back to the data folder) ---
... then discovered to my shock that the root_fs2.vp file is just a huge set of plaintext tables.
....
So:
Why might the Linux binaries not run Lua-scripted files ?
And, if this is not changeable, should I modify a mediaVP file [I really, really, really hope not] ?