summaryrefslogtreecommitdiff
path: root/src/luaconsole.c
AgeCommit message (Collapse)AuthorFilesLines
2011-08-27Remove blocking walls from pmapjacksonmj1-5/+5
2.5% speed increase on a screen full of water
2011-08-25Added autorun option to tpt.getscript()Bryan Hoyle1-3/+13
2011-08-25Improvements to getscriptSimon Robertshaw1-44/+69
2011-08-24Use HTTP instead of socketsBryan Hoyle1-55/+27
2011-08-24Small ui for confirming script download as to make script downloads within ↵Bryan Hoyle1-0/+3
scripts noticable
2011-08-24Changing server address for script repositoryBryan Hoyle1-1/+1
2011-08-24Merge remote branch 'origin/master'Bryan Hoyle1-11/+17
2011-08-24Working tpt.getscriptid(<string: id>). Retrieves and runs a script from onlineBryan Hoyle1-0/+79
2011-08-22Stray bracket, not cat+keyboardSimon Robertshaw1-1/+1
2011-08-22Lua keyevents bug, int keycode is cast to a charSimon Robertshaw1-2/+3
2011-08-22Fix electrode when in replace mode or specific delete modejacksonmj1-1/+1
Also fix bomb when SLALT != 0
2011-08-20Changes to unify mouse and keyboard events for LuaSimon Robertshaw1-9/+14
2011-08-16Revert "Revert "added lua command: tpt.setfpscap(int FPSCap)""Bryan Hoyle1-0/+7
This reverts commit a5db1d53da133a78493be443b0ec9094ea3eeb65.
2011-08-16Revert "added lua command: tpt.setfpscap(int FPSCap)"Bryan Hoyle1-7/+0
This reverts commit aa56eca5c01359732f7331d2a572ce31d7ff3c23.
2011-08-16added lua command: tpt.setfpscap(int FPSCap)Bryan Hoyle1-0/+7
2011-08-11Debug info for particles allocationSimon Robertshaw1-0/+7
2011-08-11OS X doesn't like the 'd' suffixSimon Robertshaw1-1/+1
2011-08-11Fire intensity from LuaSimon Robertshaw1-1/+9
2011-08-060 is a valid menu number (walls)jacksonmj1-2/+2
2011-08-06Added tmp2 for tpt.get_property and tpt.set_propertycracker641-0/+7
2011-08-05Mouse and keyboard events, replace luaL_openlib() with luaL_register() and ↵Simon Robertshaw1-18/+166
move mousex and mousey out of the global table and into the 'tpt' table
2011-08-04Revert "allowed secret menu via lua"Simon Robertshaw1-1/+1
This reverts commit 6c8d62389cccf1c17143d4cffb70bfb060bfda88.
2011-08-04allowed secret menu via luame45021-1/+1
2011-08-01Ensure menu ID is valid for active_menuSimon Robertshaw1-5/+5
2011-08-01Edited src/luaconsole.c via GitHubSimon Robertshaw1-1/+4
2011-07-31Lua has a garbage collector, it may dispose of strings while we're using ↵Simon Robertshaw1-3/+8
them, make throw_error a little more safe
2011-07-31me4502 added tpt.throw_error and tpt.heat as lua commandsBryan Hoyle1-0/+17
2011-07-24Disable old life elementsjacksonmj1-3/+1
2011-07-22Fix new luaconsole functions.cracker641-5/+5
2011-07-22me4502 luaconsole functions, edited from github.cracker641-0/+52
2011-07-03Some fixes for non-existent particles in Luajacksonmj1-1/+15
Return 0 for get_property("type", ...) instead of erroring, to make checking for particles easier. Also stop x coordinate being used as a particle index if no particle exists at that location.
2011-06-25Check photon map in Lua functions, and allow any ctypejacksonmj1-14/+19
Also add some extra checks on ctype in the rest of the game
2011-06-25Check particle exists in tpt.set_property, and sdl_scale mouse coords for ↵jacksonmj1-1/+3
Lua step
2011-06-25added functions to iterate through all particlesief0151-18/+61
+ tpt.start_getPartIndex() --starts the iteration + bool tpt.next_getPartIndex() --increases the iteration, returns true if there are more particles to iterate through + int tpt.getPartIndex() --get the current iteration value
2011-06-08message_box and input for Lua API, also autorun.luaSimon Robertshaw1-0/+43
2011-06-08console_error now optional for console_parse_typejacksonmj1-3/+3
Prevents lua step functions from clearing console_error in calls to console_parse_type, hence preventing luacon_eval errors from being shown
2011-06-08Make step function registration work properlyjacksonmj1-8/+29
2011-06-08Fix tpt.get_name and limit tpt.log message lengthjacksonmj1-3/+3
2011-06-08Loads of error messages for lua, and hopefully fix lua stack overflowjacksonmj1-48/+108
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-04Added the ability to use legacy commands (prepend with a \!)Simon Robertshaw1-1/+7
2011-06-04Fix setting of temp, x and y particle propertiesSimon Robertshaw1-6/+6
2011-06-03Better step function registrationSimon Robertshaw1-10/+41
2011-06-02tpt.set_property implementationSimon Robertshaw1-4/+111
2011-06-01Add gravity field manipulation to Lua api, move gravity processing to after ↵Simon Robertshaw1-4/+67
the particle update (Means a delay of 1 frame, but we get the ability to manipulate the field with Lua)
2011-05-31Pass mouse coordinates (mousex, mousey, mouseb, mousebq) and Lua click handlingSimon Robertshaw1-5/+11
2011-05-31implement create and delete functionsSimon Robertshaw1-6/+32
2011-05-30Fix buffer overflow with huge error messageSimon Robertshaw1-2/+6
2011-05-30Step code registration, just an example at the momentSimon Robertshaw1-1/+12
2011-05-30Many methods for Lua consoleSimon Robertshaw1-1/+287
2011-05-30Defaults for tpt.drawtext methodSimon Robertshaw1-5/+5