jacob1
67b87b1dab
palette now used for default elements again, with some fixes
...
palette now used in VIRS, fixes #460
2017-06-18 00:08:41 -04:00
jacob1
8f4e3a56bd
reduce ctrl+z snapshot memory usage
2017-02-09 22:55:05 -05:00
jacob1
d63c6012c6
force a stacking check when undoing (id:1997880)
2016-06-11 10:21:25 -04:00
jacob1
d334209027
loop edge mode: allow particles to have velocities greater than the size of the screen
...
Also, added terminal velocity for stickmen
2016-03-12 13:14:34 -05:00
jacob1
f6d82b6f8a
separate t and v argument in create_part, fix LIGH not defaulting to .life of 30 with clones / console
2016-01-11 22:38:42 -05:00
jacob1
5ba34021bc
jacksonmj: Reduce ETRD lag e7c4b989654e
...
Improvement isn't as good as the EMP one in normal cases, but for intentional lag bomb saves it is much better. Tested it and confirmed it worked just like before this commit. etrd_life0_count is hopefully valid, the accuracy may not be as good as in jacksonmj's fork
2015-12-19 01:39:03 -05:00
jacob1
bb9b35f01d
jacksonmj: EMP lag is hereby banished. eeef50c0fcba
...
EMP destruction loop now happens once per frame instead of once per EMP
particle.
2015-12-18 23:10:28 -05:00
jacob1
7fcc056cb6
fix really fast particles moving through EHOLE
2015-10-15 00:26:57 -04:00
jacob1
ed4678c9a8
add deco flood fill, flood fills based on color being close enough
...
flood fill brush is hidden when deco tools are selected like this because it gets in the way. Renderer::vid is compared here so there could definitely be issues, but it works fine when used under normal conditions
2015-08-30 01:38:32 -04:00
jacob1
8e7e8e0670
some changes to LIGH creation (mostly from lua)
2015-05-11 20:50:10 -04:00
jacksonmj
38e21c8236
Fix crash when STOR is next to PIPE and has an invalid tmp value ( http://tpt.io/~1768004 )
2015-04-10 14:23:58 +01:00
jacob1
a422e43beb
visual studio error fix + warning fix
2015-02-25 18:56:50 -05:00
jacob1
2c0287b71d
PARTICLEDEBUG define which turns on some particle debugging key shortcuts
...
Also fix particle updating bug
2015-02-06 20:33:10 -05:00
jacob1
3a52453561
move more stuff around, remove loop through particles to decrease life and put it in the pmap one instead (like in my mod)
2015-01-11 14:36:40 -05:00
jacob1
577ae3400f
move some stuff around (without changes) in Simulation.cpp, add sim.updateParticles function
2015-01-11 13:17:18 -05:00
jacksonmj
236ff08da9
Fix some problems noted in http://www.viva64.com/en/b/0298/
...
I've left some of the less important items, like SearchView.cpp "'then' statement is equivalent to the 'else' statement", and RequestBroker::Request::~Request, because I don't feel like spending a few days entirely rewriting those files at the moment (which is what I'd end up doing if I started fixing minor problems and refactoring...)
GameSave::readOPS - not changed. At some point we may have to move to a larger type for element IDs (probably two or four bytes), but PT_NUM isn't likely to be raised to the maximum value of that type immediately, so this check will be needed then. There should be an elements[partsData[i]].Enabled check in there too, but it might be a bit difficult - I'm not sure how to access a Simulation object from GameSave::readOPS...
Notes on changes:
Graphics::textsize, Element_FRZW::Element_FRZW - typos
Button::Draw - the extra case was originally used to invert the icon (draw it in black instead of in white) when the button was clicked. However, the icon colour is now automatically set depending on the background colour. (Note similar conditions "if(Enabled) { if(isButtonDown || (isTogglable && toggle)) " near the start of the function - same logic but in a different place, setting icon colour indirectly).
Simulation::transform_save - unused redundant function, everything uses GameSave::Transform which does much the same thing.
PreviewView::NotifySaveChanged - should be height==YRES/2, it's checking whether the preview image is the correct size, and resizing it if it isn't.
Element_FWRK::update - no idea why that line was there, even though it was my commit that originally added it...
2014-12-25 17:09:35 +00:00
jacob1
6ce2d5fe92
#define MAX_FIGHTERS + some fixes
2014-11-20 22:11:20 -05:00
jacksonmj
5e02073a2f
Fix TNT floodfill crash
2014-05-22 15:27:18 +01:00
mniip
69c9be0e99
implement generic property value as a union instead of void*
2014-01-16 11:00:47 -05:00
mniip
bf908bbfbf
Fix various warnings, remove silly useless NO_INLINE system, remove the need for -fkeep-inline-functions
2013-10-30 04:47:07 +04:00
jacob1
074a2226e1
remove useless and laggy lightning_recreate check
2013-09-11 21:41:54 -04:00
jacob1
f1145f31f5
new element: PROT (protons) TODO: proton colliders to produce heavier elements
2013-09-01 21:52:38 -04:00
jacob1
da7d107f60
remove specific delete for walls, doesn't work very well and it conflicts with specific delete for elements
...
Also prevent wall replace mode, could never do anything because walls already replace everything
2013-07-18 18:54:09 -04:00
jacob1
e0d982367b
fix bug where saving and loading elements in saves relied on the name being consistent between versions. The palette should only be used for lua elements
2013-07-15 17:42:43 -04:00
jacob1
a06202c78f
fixes to wall and particle floodfill. Wall fill ignores particles and always goes to the edges, while particle fill will only ignore walls it can't exist in, and flood particle erase won't check for walls / edges at all
2013-07-11 22:43:36 -04:00
jacob1
081c58990e
fix floodfill and prop floodfil with photons
2013-07-10 17:59:16 -04:00
jacob1
c1320d2007
fix sim.loadStamp return value, remove VINE_MODE
2013-06-27 12:10:55 -04:00
jacob1
43540eb7e4
Add back replace mode and specific delete *
...
* only usable by Lua
2013-06-22 22:48:51 -04:00
jacob1
3aac957e50
HUD displays the correct name of LIFE particles in the HUD, show mouse position in HUD on the edges of the screen
2013-06-20 20:29:20 -04:00
jacob1
8d7ab7f5e2
allow creating WIND lines from lua
2013-06-01 21:57:03 -04:00
jacob1
027649e858
lua simulation api functions for drawing with tools / deco
2013-05-16 19:33:30 -04:00
jacob1
ebe145b39f
soap lines show in nothing mode, some small changes to arguments for sim api drawing functions
2013-05-16 00:55:44 -04:00
cracker64
2f8574f62b
gol2 array is static size, adding new GoL won't increase memory usage.
2013-05-06 13:30:03 -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
3da733b027
fix PSTN bugs where FRME would still move even if all of it couldn't, fix PSTN going through walls, fix bug where the PSTN extention may not be created in some glitched cases
2013-02-21 23:35:44 -05:00
jacob1
74387040a1
fix CRAY INST mode ignoring length, fix CRAY going ignoring walls, fix CRAY + GOL particles, allow CRAY to create sparks
2013-02-20 18:36:00 -05:00
jacob1
b5de23433d
fix '=' resetting air heat, fix uninitialized ambient heat setting, a few LOLZ / LOVE changes
2012-12-17 21:11:33 -05:00
Simon Robertshaw
a1af662b8f
More accurate elementCount
2012-12-14 23:01:54 +00:00
jacob1
b84460d79b
visual studio compatibility, plus change text a little
2012-10-26 15:11:43 +01:00
jacob1
d159467b63
LOLZ and LOVE work again
2012-10-05 16:33:54 +01:00
jacob1
be1b9112e8
Fix some uninitialized variables, add back sandcolor changing
2012-09-30 20:43:38 +01:00
Simon Robertshaw
25d872ec48
MacOS X targets for Scons, Fix some inlines for clang
2012-09-25 17:53:48 +01:00
jacob1
f8f70a3f77
Visual studio compatibility
...
This removes some inlines when using visual studio to compile, uisng TPT_NO_INLINE. It also fixes many other problems visual studio has with the code
2012-09-07 00:52:56 +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
b6736f967e
Add EMP flash, fixes #137
2012-08-21 13:00:31 +01:00
Savely Skresanov
d6fe7fa2c8
Basic realistic heat and latent heat support.
2012-08-19 20:06:10 +07:00
Simon Robertshaw
7018e46fac
Remove disabled elements when simulating. Fix crash when kill_part is run on elements with invalid types
2012-08-18 17:08:24 +01:00
Simon Robertshaw
edad8f46af
Undo/Snapshots, fixes #118
2012-08-16 22:03:40 +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
810ea42f99
Only render gravity lensing if it's enabled, Ctrl and Shift to alter tool strength (Shift = x10, Ctrl = x0.1)
2012-08-10 14:03:23 +01:00
Simon Robertshaw
4ce22e4e77
Wall Edge option, fixes #70
2012-08-05 18:35:12 +01:00
Simon Robertshaw
351ce1525f
Update gravity walls, fixes issue #52
2012-08-05 14:03:54 +01:00
Simon Robertshaw
347c382e99
Allow PROP to set types from element name, fixes issue #48
2012-08-03 12:52:07 +01:00
Simon Robertshaw
1f914561b2
Better syncing for elementCount, fixes issue #21
2012-07-29 02:07:04 +01:00
Simon Robertshaw
f8766201a6
TPT: Optimization for GoL, Added brush size and mouse wheel to lua! e7035233fd
2012-07-25 19:32:36 +01:00
Simon Robertshaw
e36bc8e4ae
TPT: Gravity modes and Newtonian gravity for fireworks 31ce22f122
2012-07-25 17:44:29 +01:00
Simon Robertshaw
2189d298a7
TPT: Move INST flood fill into a separate function 36de2f19f5
2012-07-25 15:32:05 +01:00
Simon Robertshaw
603cf3149d
HUD improvements
2012-07-24 14:58:39 +01:00
Simon Robertshaw
e65e222f2c
Integer values for prefs, Default decoration colour, clear decoration
2012-07-24 13:03:28 +01:00
Simon Robertshaw
adc9cc0816
Move graphics into seperate folder
2012-07-06 16:06:26 +01:00
Simon Robertshaw
ab8f382acc
Sign tool can now edit existing signs
2012-06-25 13:57:23 +01:00
Simon Robertshaw
2aebc294e8
TPT: Run stacking check less often
2012-06-13 01:21:33 +01:00
Simon Robertshaw
3205df3a21
Saving and loading other flags from GameSave, remove old saveloader
2012-06-11 13:39: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
Simon Robertshaw
a247951115
Add missing header includer for C libraries.
2012-06-02 16:51:01 +01:00
Simon Robertshaw
bbf7851596
Seperate new/old CreateParts functions
2012-05-15 20:01:20 +01:00
Simon Robertshaw
45563e97e8
Make flood_prop use PropertyType from StructProperty, Property tool works
2012-05-15 00:10:10 +01:00
Simon Robertshaw
0b4ad4f25c
Add ability to introspect the Particle struct
2012-05-14 23:04:08 +01:00
Simon Robertshaw
7758fe52cb
DropDown UI component
2012-05-13 20:00:22 +01:00
Simon Robertshaw
724c99102e
Stupid git
2012-05-12 22:28:45 +01:00
Simon Robertshaw
c5798c7456
Tools implemented in a similar way to elements
2012-05-12 18:11:20 +01:00
Simon Robertshaw
16d3895e9c
Redo Wall IDs
2012-05-12 13:21:04 +01:00
Simon Robertshaw
51b17badf4
A bit of refactoring (elements)
2012-05-07 17:59:50 +01:00
Simon Robertshaw
10e3f176d2
TPT: REALISTIC - Latent heat. It may be buggy, and enthalpy table isn't filled, but it works 4b4830b5a4
2012-04-18 20:44:01 +01:00
Simon Robertshaw
c88079d084
Element sampling HUD thingy (No very good with MVC)
2012-04-08 00:11:21 +01:00
Simon Robertshaw
efddc12e5d
Stamps browser, placement + clipboard sampling and placement - No clipboard or stamp thumbnail generation, needs thumbnail generator from SaveLoader
2012-04-02 17:01:28 +01:00
Simon Robertshaw
e9770d8ee7
Clipboard and Stamp from selection (no way to paste/place yet)
2012-03-28 22:01:44 +01:00
Simon Robertshaw
3bbaa1a111
Decoration tools - no way to set colour yet
2012-03-03 21:38:22 +00:00
Simon Robertshaw
d520a70acf
Save loading and reloading
2012-01-26 16:18:43 +00:00
Simon Robertshaw
9e1be78bc2
I've got to a point where I can no longer be bothered to think of a proper commit comment
2012-01-26 01:13:33 +00:00
Simon Robertshaw
97b35bc470
Various
2012-01-24 20:19:19 +00:00
Simon Robertshaw
19c1fa5dcb
Brush class for drawing on simulation, more interface for game
2012-01-22 14:45:37 +00:00
Simon Robertshaw
8ec6aae617
Better cleanup for simulation - fix memory leaks
2012-01-21 13:19:10 +00:00
Simon Robertshaw
4949a5eac0
Fix case for header files
2012-01-20 22:10:42 +00:00
Simon Robertshaw
44639a6423
Some folder changes, started search and client
2012-01-19 13:44:59 +00:00