jacksonmj
b5856bfa47
console_error now optional for console_parse_type
...
Prevents lua step functions from clearing console_error in calls to
console_parse_type, hence preventing luacon_eval errors from being shown
2011-06-08 12:48:44 +01:00
jacksonmj
b3e0085606
Make step function registration work properly
2011-06-08 12:48:28 +01:00
jacksonmj
22b3ae9275
Fix tpt.get_name and limit tpt.log message length
2011-06-08 12:47:46 +01:00
jacksonmj
e182e7422c
Loads of error messages for lua, and hopefully fix lua stack overflow
...
Also fix game exiting when an error occurs in a step function.
Returning -1 seems to prevent lua from restoring the stack to the
state it was in before the C function call - see bottom of
luaD_precall() in lua source (ldo.c)
2011-06-08 12:47:19 +01:00
Simon Robertshaw
fcb67622ff
Added the ability to use legacy commands (prepend with a \!)
2011-06-04 14:43:18 +01:00
Simon Robertshaw
b850abe347
Fix setting of temp, x and y particle properties
2011-06-04 12:10:14 +01:00
Simon Robertshaw
3f072d9bc3
Better step function registration
2011-06-03 13:58:48 +01:00
Simon Robertshaw
a7330b9b26
tpt.set_property implementation
2011-06-02 18:49:31 +01:00
Simon Robertshaw
3d600c6955
Add gravity field manipulation to Lua api, move gravity processing to after the particle update (Means a delay of 1 frame, but we get the ability to manipulate the field with Lua)
2011-06-01 12:16:33 +01:00
Simon Robertshaw
2c8c4bc567
Pass mouse coordinates (mousex, mousey, mouseb, mousebq) and Lua click handling
2011-05-31 18:38:13 +01:00
Simon Robertshaw
2327d9678d
implement create and delete functions
2011-05-31 17:07:38 +01:00
Simon Robertshaw
7a875dd846
Fix buffer overflow with huge error message
2011-05-31 00:05:01 +01:00
Simon Robertshaw
b0659e3dd1
Step code registration, just an example at the moment
2011-05-30 20:11:34 +01:00
Simon Robertshaw
d5f1a4cfd0
Many methods for Lua console
2011-05-30 19:44:17 +01:00
Simon Robertshaw
cad644824d
Defaults for tpt.drawtext method
2011-05-30 18:25:02 +01:00
Simon Robertshaw
d8051926c8
More descriptive error messages for lua console
2011-05-30 18:15:56 +01:00
Simon Robertshaw
65252aa002
drawtext for Lua
2011-05-30 16:45:39 +01:00
Simon Robertshaw
79a27c2c90
Basics for Lua
2011-05-30 16:22:39 +01:00