jacob1
fd550be6ae
fix invalid hex number detection also
2014-08-09 00:01:24 -04:00
jacob1
e388a4bbad
better float detection in old console
2014-08-08 22:18:01 -04:00
jacob1
298e0b63c3
fix bugs with previous commit using FloatType
2014-08-06 23:22:37 -04:00
jacob1
ccb3de7365
support floats in the console
...
There are some strange bugs with parsing like !set type all 3.5 or !set temp all moo but they aren't too important ...
2014-08-06 12:18:57 -04:00
jacksonmj
c83945e281
Allow PHOT deco, in old saves only
2014-08-05 22:11:07 +01:00
boxmein
7ab6a7e7d7
luatpt_getPartIndex now passes a negative (invalid) index when it fails
2014-06-13 00:25:22 +03:00
jacob1
c44e734abe
fix crashes when the selected element is NULL (via lua), add gfx.getHexColor (inverse of gfx.getColors)
2014-06-09 17:42:44 -04:00
jacob1
89ffa60529
New graphics api function: getColors, returns r, b, g, and a from a hex color
...
Also, remove generated/ and build/generated when using scons -c
2014-06-09 16:50:49 -04:00
jacob1
45862a1b9f
only use Application Support directory on OS X 10.9, probably fix crash on startup for macs
...
The original reason it broke on macs was because gFinderLaunch was broken
2014-06-08 20:37:44 -04:00
jacob1
6749c2547f
New SConscript (hopefully better)
...
Fixes a lot of bugs, also almost all options are no longer needed and are just auto-detected
2014-06-08 19:33:58 -04:00
jacob1
9bb4d92717
prevent setting invalid wall types with lua
2014-06-02 00:41:25 -04:00
jacksonmj
7b9f43b8bf
Fix some missing return values
2014-05-23 00:00:54 +01:00
mniip
ecf1f0e391
backport lua code highlighting from my console
2014-05-06 01:16:55 +04:00
jacob1
5b67c8ce68
elem.property and elem.element can read Identifiers
2014-03-15 14:20:40 -04:00
jacob1
258aaedb0a
add sim.reloadSave, tpt.selectedreplace
2014-03-13 14:44:39 -04:00
jacob1
3f65b47a5e
small change to sim.partProperty
2014-03-10 17:20:50 -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
jacksonmj
a5ea6555f1
Fix more bugs in the Lua API
...
Crash with sim.partKill(large number).
sim.neighbours() looking for particles in completely the wrong place.
Impossible to tell from sim.partID whether a particle exists, since it returns 0 both if there is no particle there and if particle 0 is there.
2014-03-04 23:34:51 +00:00
mniip
4152bb560e
Do not use loadstring to load autorun (who even wrote this?). Also print a message in case of successful autorun load
2014-03-04 15:26:35 +04:00
jacksonmj
64e16025d8
Fix bug in Lua API sim.neighbours() causing some particles to be missed out
...
Was excluding all particles with the same x or y as the centre instead of just the centre particle.
2014-03-03 22:42:21 +00:00
jacksonmj
224b25fae5
Fix Lua API sim.partNeighbours with 4 arguments
2014-03-03 20:09:35 +00:00
jacob1
4158581b21
fix error logging in lua key events
2014-03-03 13:46:46 -05:00
jacob1
d59253cfc7
fix sim.deleteStamp and sim.loadStamp (couldn't load/delete stamps with names like 530e908700)
2014-02-26 20:29:15 -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
nucular
8561976121
Fix (hopefully) most of the R/W errors inside the new Lua API
2014-02-22 10:13:09 -05:00
jacob1
71f90b5d59
new function: sim.deleteStamp
...
mostly for use in tpt multiplayer
2014-02-20 16:02:32 -05: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