jacksonmj
75b7b85703
Fix sign duplication when loading a save
2013-11-03 14:26:51 +00:00
jacksonmj
02a4c17d72
Ignore invalid walls in some old saves, so that they load correctly
...
E.g. save 10631 from old server
2013-10-17 16:09:38 +01:00
jacob1
aa2ec3d162
fix SOAP crashes by making sure particle id's are between 0 and NPART. Also cut off .life to between 0 and 65535 when saving
2013-09-12 14:35:10 -04:00
jacob1
332aa25bf6
save pavg[] in saves, for VIRS, PIPE, and STOR
2013-09-11 20:41:43 -04:00
jacksonmj
9eccad80b1
Missing breaks in readOPS
...
Causing some elements to be loaded incorrectly
2013-09-08 18:14:12 +01:00
jacob1
d38af2764c
move QRTZ .tmp into .tmp2 and .ctype into .tmp, fixes bug where sparking QRTZ resets .ctype and stops it from growing
2013-08-29 22:18:35 -04:00
jacksonmj
bebe9bd8fd
Add a way for photons to set the colour of FILT (major version bump required)
...
Also add some new FILT modes, and make FILT modes affect BIZR and
BRAY colour in the same way as they affect photon colour. Photons
passing next to DTEC will set the colour of all FILT in a straight
line starting from any FILT adjacent to the DTEC (a bit like an
ARAY beam), and the exact colour of the photon will be used for
FILT interactions instead of the colour based on temperature.
FILT tmp=4: red shift, tmp=5: blue shift. Size of shift determined
by FILT temperature. tmp=6: FILT has no effect on photon colour
(possible before by using invalid tmp modes, but here's a supported
method of doing it. Invalid tmp modes should be automatically replaced
in existing saves).
Also, FILT mode is now described in the HUD.
2013-08-29 17:19:07 +01:00
jacob1
8d5fe459fe
'n' to toggle Newtonian Gravity, quickoption tooltips show which keys you need to press to toggle them
2013-07-15 13:09:19 -04:00
jacob1
519d220101
save more settings in powder.pref like ngrav_enable, aheat_enable, pretty powders, and debug hud. Also save ambient heat in saves, and add a warning in the intro text in betas that you can't save publically
2013-07-02 15:09:00 -04:00
jacob1
776b2f6607
fix version tagging in saves
2013-06-24 00:02:00 -04:00
jacksonmj
4e4bd9a11b
Signed integers can be negative, so prop>x does not always correctly indicate whether higher bytes are used
2013-06-11 00:26:41 +01:00
jacob1
6f8e2c0345
remove unneeded / duplicate constants, fix SPC_AIR/other tools so it won't conflict with lua elements (the 11th one won't work right now)
2013-05-16 17:01:33 -04:00
jacob1
037618e6f8
remove auto generated comments from all files, fix some missing tabs, remove unused variables from config.h
2013-03-06 12:05:59 -05:00
jacob1
8b83ae9f95
PSTN ctype sets the element that stops it, FRME with a tmp of one is non-sticky (doesn't pull)
2013-03-03 16:36:37 -05:00
jacob1
b92bd245c8
fix 4 MB memory leak on every save
2013-02-24 15:23:34 -05:00
jacob1
0939494747
fix problems found with valgrind with shifting stamps and saving
2013-02-24 14:12:48 -05:00
jacob1
7379a6b5ba
fix crash when hovering the mouse over invalid wall types
2013-02-24 11:50:20 -05:00
Simon Robertshaw
5beb4255c8
Tag origin version info in save files
2013-02-17 11:30:53 +00:00
Simon Robertshaw
e7b174a78d
Revert "move version info to version.h, no longer needs full recompile on version change"
...
This reverts commit b3a2ab735b
.
2013-01-19 22:00:56 +00:00
jacob1
b3a2ab735b
move version info to version.h, no longer needs full recompile on version change
2013-01-15 11:28:28 -05:00
jacob1
41751da619
change some free/malloc's back to delete/new's
2013-01-12 21:06:52 -05:00
jacob1
d1abfc313e
fix mismatched free()/delete's
2013-01-06 18:26:38 -05:00
jacob1
e685e30d58
make sure that simulation variables are initialized, fixes things like water equalization always being on in old saves
2012-12-18 13:33:29 -05:00
jacksonmj
9c6f3c7fbb
Fix crash in GameSave::serialiseOPS
...
Only particlesCount particles have been copied from the Simulation.
All the rest are uninitialised, and may have coordinates outside the
game area. Using those uninitialised coordinates in the index for
partsPosFirstMap may cause a crash.
2012-12-16 23:01:04 +00:00
Simon Robertshaw
00190b4aab
Don't print PSV debug information when compiled for release
2012-12-16 16:38:12 +00:00
jacob1
d57fe7618c
fix walls loading incorrectly in extremely old saves. Fix some invalid save formats being loadable (it was onlychecking the 'O' in OPS)
2012-12-12 17:31:06 -05:00
Simon Robertshaw
05148e8a8d
C++erific text cleaner function, also, it's a good idea to actually clean text coming from signs...
2012-12-09 00:14:48 +00:00
jacob1
e5a284a2ba
fix compiling warnings / error
2012-12-06 12:34:32 -05:00
Simon Robertshaw
51a5af6d5d
Remove some debug printing
2012-11-12 10:48:20 +00:00
Simon Robertshaw
29189693b3
Element palette for automatic element ID/mod mapping
2012-11-12 10:22:16 +00:00
jacob1
fd07d35e34
limit the number of signs that can be placed
2012-10-26 15:13:00 +01:00
Simon Robertshaw
0801497ed2
Fix wall clipping during stamp rotation
2012-10-01 12:02:04 +01:00
Simon Robertshaw
1ac964d9ba
Ensure saves are expanded in memory when performing translate operations. Fixes #174
2012-09-03 12:38:09 +01:00
Simon Robertshaw
082072a05e
OPS: Fix byte order when unpacking 4 byte tmp fields
2012-08-25 16:29:27 +01:00
Simon Robertshaw
ba1ce66968
Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138
2012-08-21 01:09:22 +01:00
Simon Robertshaw
b318c3721a
TPT: Powered pipe, based on jacob1's commits
2012-08-20 16:48:03 +01:00
Simon Robertshaw
9dd9d52564
Herp derp, forgot to call dealloc in GameSave destructor
2012-08-19 20:57:14 +01:00
Simon Robertshaw
c0c30bd305
Looks like calling the destructor manually is not a good idea.
2012-08-19 20:44:50 +01:00
Simon Robertshaw
21f050800b
Load signs from OPS data
2012-08-17 17:08:24 +01:00
Simon Robertshaw
074dcd0b42
Precompile some headers. Fix sconscript to prevent recompiling everything
2012-08-13 15:43:57 +01:00
Simon Robertshaw
8ca27520a4
Use forward declarations more to avoid excessive includes
2012-08-12 22:32:57 +01:00
Simon Robertshaw
cbefea85d7
Local Saving, Server Saving rewrite
2012-08-01 22:29:22 +01:00
Simon Robertshaw
c14a008d46
Corrections to GameSave to prevent conflicts in the Expanded state, improve Save preview comments display
2012-07-28 18:38:34 +01:00
Simon Robertshaw
aa774771a0
Collapse gamesave to save space in memory
2012-07-28 02:23:21 +01:00
Simon Robertshaw
5befe5c25f
Local file browser + some more interesting things like Progress bar UI component
2012-07-27 20:06:17 +01:00
Simon Robertshaw
e36bc8e4ae
TPT: Gravity modes and Newtonian gravity for fireworks 31ce22f122
2012-07-25 17:44:29 +01:00
Simon Robertshaw
5031291bf6
TPT: Save an extra tmp2 byte, for EXOT fed8b7b2cc
2012-07-25 17:16:56 +01:00
Simon Robertshaw
6585a4640b
TPT: Replace all explosion sparks with new element (EMBR) 1d5b081942
2012-07-25 17:12:15 +01:00
Simon Robertshaw
33de0482a2
Use exceptions instead of goto to corrup state. Fix Fan wall loading with PSV and New wall IDs with OPS
2012-07-20 19:39:38 +01:00
Simon Robertshaw
332fbfe590
Ensure GameSave internal pointers are NULL at the start
2012-07-20 17:43:08 +01:00
Simon Robertshaw
1b1963932e
Move array terminator for sign saving into if statement
2012-07-06 16:08:52 +01:00
Simon Robertshaw
1fceab6e4a
Ensure partsSimIndex is freed upon success state of OPS parsing
2012-06-18 15:57:41 +01:00
Simon Robertshaw
fc86c24027
Better freeing for memory in GameSave
2012-06-18 15:54:55 +01:00
Simon Robertshaw
5144451b30
TPT: Check for version before enabling movable flag for sponge. 393d247312
2012-06-12 18:55:44 +01:00
Simon Robertshaw
318499350d
TPT: strncpy for loading sign text in OPS 433c1881bc
2012-06-12 17:13:30 +01:00
Simon Robertshaw
f2e1d38b58
TPT: Save soap bubbles 6717f4ff32
2012-06-12 17:06:38 +01:00
Simon Robertshaw
a270acfc54
OPS loading: don't replace existing particles twice, and clear soap c…
2012-06-12 16:30:27 +01:00
Simon Robertshaw
74d7fb59c3
TPT: Save tmp2 for tron c8a1524d6b
2012-06-12 16:11:34 +01:00
Simon Robertshaw
cdc4b4df86
Fix save rotation
2012-06-09 20:16:47 +01:00
Simon Robertshaw
26dbb9d309
Missing 'delete' on old blockMap data in save Tranformation
2012-06-09 19:43:35 +01:00
Simon Robertshaw
050ad82155
Unify stamp and clipboard placement code, GameSave translation and transoformation working (not particularly well)
2012-06-09 19:42:07 +01:00
Simon Robertshaw
c408e035fa
Preview: Wait for save to load before opening, Simulation: Correct block coords when reading wall data, replace existing particles when placing stamps on top, Game: Clear the simulation when loading a save
2012-06-09 14:54:58 +01:00
Simon Robertshaw
0ee1e1875d
Load save data when showing the save preview
2012-06-08 22:04:14 +01:00
Simon Robertshaw
61ed6e0276
Rename Save class to SaveInfo, introduce SaveFile for hanlding of local data (stamps and local saves). Rename Stamps browser to LocalBrowser, ready for sharing code with the local save browser
2012-06-07 14:23:26 +01:00
Simon Robertshaw
8fae7dbade
Saving and loading at position, yuse exceptions for parsing saves
2012-06-06 01:46:13 +01:00
Simon Robertshaw
7063587706
Fix bmap reading error caused by signed/unsigned comparison
2012-06-05 22:55:39 +01:00
Simon Robertshaw
49dafbfd26
Use a different method for decoding saves with uncompressed object in memory for stamps and clipboard, also allows for transformation (rotation), missing failure states and code for loading it into a Simulation
2012-06-05 20:08:35 +01:00