LBPHacker
7dd538b82c
Fix tpt.parts being unsafe
...
`tpt.parts` does check whether the particle ID it gets is valid, but it doesn't check whether that particle ID is used. One could potentially modify the life property of dead particles to break the linked list of free particle IDs, thus potentially gaining the ability to read from or write to arbitrary addresses in memory.
2017-07-13 20:33:46 -04:00
jacob1
866289c179
remove duplicate function, fix Simulation::GetParticleType, fixes #402
2017-04-21 20:24:24 -04:00
jacob1
ecb08952e5
Add SDL_keysym.h, Use official SDL constants
2016-07-19 22:42:10 -04:00
jacob1
eafd8115b0
add onlyEnabled option to tpt.num_menus (probably useless)
2016-07-17 23:36:36 -04:00
jacob1
8a0496e60a
another fix for lua key events
2016-07-17 18:19:00 -04:00
jacob1
b75c8318e4
add tpt.num_menus and tpt.menu_enabled functions
2016-07-08 20:33:01 -04:00
jacob1
9a18338476
remove debugging thing
2016-06-11 23:50:46 -04:00
jacob1
2a541bd2f5
fix for lua keydown events, send 'j' when ctrl+somekey is pressed, not ^J
2016-06-11 15:54:19 -04:00
jacob1
aa108be3df
Pass in actual character sdl saw into keypress functions
...
Previously you couldn't detect what shift+somekey would do on alternate keyboard layours.
2016-01-31 21:39:39 -05:00
jacob1
b9c3eeae92
Allow old lua scripts which use state to work
2015-12-18 02:07:16 -05:00
jacob1
9a9f80fefa
don't add extra newlines when downloading scripts via tpt.getscript
2015-10-23 00:18:41 -04:00
jacob1
f5774ad9b9
update tpt.getscript to use starcatcher.us
2015-09-18 13:00:01 -04:00
jacob1
a629979d8b
fix tpt.reset_spark to also reset WIFI
2015-09-10 23:59:13 -04:00
jacob1
fee8516157
new function tpt.confirm (confirm prompt which returns true or false)
2015-09-08 01:27:20 -04:00
jacob1
9048a3c50e
new lua API: platform
...
you can get current OS / build information, exe name, restart tpt, open a link in the web browser, and use clipboard copy/paste functions
Also remove some older Platform.h file which wasn't really needed or used
2015-08-31 23:33:40 -04:00
Ryan Jacobs
55a30673c4
Remove unnecessary pointer checks.
...
There are *no* more spacing issues. I used tabs exclusively.
Also, I made changes off of the develop branch.
Here's the Ruby regex that I used:
text.gsub!(/(( |\t)*)if ?\((.*)\) ?{?\n?( |\t)*(free ?\(|delete |delete\[\] )(.*)\)?;/, "\\1\\5\\6;")
2015-02-14 22:13:26 -08:00
jacob1
03e07945e3
fix lua element update bugs, fixes #244
...
also add new mode for functions run before the normal update function
2015-02-13 14:18:55 -05:00
jacob1
54d985f975
gcc warning fixes (up to lua files)
2015-01-16 17:26:13 -05:00
jacob1
dce874484a
fix all the gcc warnings in the element files (except one in PSTN) + all the unused variable warnings
2015-01-10 22:43:33 -05:00
jacob1
a5797f6262
reset length when running step functions in case a step was unregistered, fixes first half of #210
...
also cleanup / make it easier to read
2015-01-10 20:10:42 -05:00
jacob1
c9cc2a1a6b
more accurate elementCount (part_change_type, pasting stamps, lua), prevent having multiple STKM / SPWN even more
2014-11-20 21:51:45 -05:00
jacob1
ca0eecee80
pavg0 / pavg1 properties can be set through the console and prop
2014-10-26 18:11:46 -04:00
jacob1
32328ad4fe
re-implement tpt.setdebug
2014-09-27 22:25:15 -04:00
jacob1
f8782338d7
make tpt.selected* and tpt.brushx/y writable (replaces simstate branch)
2014-08-19 02:01:31 -04:00
boxmein
7ab6a7e7d7
luatpt_getPartIndex now passes a negative (invalid) index when it fails
2014-06-13 00:25:22 +03:00
jacob1
9bb4d92717
prevent setting invalid wall types with lua
2014-06-02 00:41:25 -04:00
jacob1
258aaedb0a
add sim.reloadSave, tpt.selectedreplace
2014-03-13 14:44:39 -04:00
jacob1
7603da0242
fix tpt.set_property again
2014-03-09 15:31:32 -04:00
jacob1
21854df9f3
lots of random fixes to the legacy lua api
2014-03-04 20:44:25 -05:00
jacob1
4158581b21
fix error logging in lua key events
2014-03-03 13:46:46 -05:00
mniip
55284e6313
Fix most of clipboard-related memory leaks and potential crashes; Fixes jacob#23
2014-02-25 18:44:44 +04:00
mniip
a105ed9df8
Use system clock instead of used CPU time. Fixes key repeat and some
...
other stuff. close #206
2014-02-13 00:26:34 +04:00
jacob1
5b886fc51e
boxmein: Added clipboard support to Lua
2014-01-29 17:57:18 -05:00
jacob1
f66679e551
a little reorganization (maybe more later)
2014-01-20 13:52:53 -05:00