Commit Graph

1092 Commits

Author SHA1 Message Date
jacob1
2b3fbbd50e fix -nan RFRG glitch 2017-07-24 21:55:16 -04:00
jacob1
541417008e fix FIGH spawning glitch: id:2165807 2017-07-24 21:44:37 -04:00
jacob1
16323320ce turned off HSWC acts as insulator for HEAC 2017-07-24 21:30:12 -04:00
jacob1
bf9014ac60 fix HEAC conducting to HSWC which is turned off 2017-07-23 21:17:21 -04:00
jacob1
3c4ca5cd4b ensure DMG turns WOOD to SAWD 2017-07-23 19:39:09 -04:00
jacob1
6d141b0722 add new PhotonReflectWavelengths property, add reflection color for POLO 2017-07-16 00:07:32 -04:00
jacob1
6efedcdd33 undo authors changes on ctrl+z, prevent excessive nesting 2017-07-15 16:21:16 -04:00
jacob1
5ee10d14e4 reduce unnecessary #include dependency chains
for example, elements no longer include Client.h or Graphics.h, and interface stuff won't include Window.h or Graphics.h unless requested
2017-07-13 23:24:35 -04:00
jacob1
781a90a970 CAUS.cpp whitespace fixes, closes #464 2017-07-13 21:07:08 -04:00
jacob1
711d15fe0c fix compile error, blame @moonheart08 2017-07-13 21:02:23 -04:00
moonheart08
a76afb0bfc Add the ability to make POLO from acceleration (#477)
tmp value of 310+ results in POLO.
2017-07-13 20:58:18 -04:00
QuanTech0
1ff280acb2 another typo fix... 2017-07-13 20:56:51 -04:00
jacob1
d0f1024f95 add BCOL + NEUT -> SAWD, closes #471 and #472 2017-06-30 20:10:15 -04:00
My main account
284e653aa5 Convert another if-elseif block to switch (#465) 2017-06-30 20:01:12 -04:00
QuanTech0
d0feba6445 Temp. displayed using {aheat} not in celsius
Since it is displayed in celsius for {t}, shouldn't it be for {aheat} too? Just a consistency thing.
2017-06-30 19:55:38 -04:00
jacob1
fb08400552 add PROP_LIFE_DEC back to GLOW, fixes #466 2017-06-22 22:50:20 -04:00
jacob1
2e4617c956 GAS+CAUS+pressure = RFRG, move HEAC to solids 2017-06-18 23:32:25 -04:00
My main account
5de384cfbc Fix CRAY creating FILT 2017-06-18 21:49:47 -04:00
iczero
3336209527 Fix STOR modded element processing
fixes #460, again
2017-06-18 09:02:20 -04:00
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
iczero
42b8f52611 Add type for POLO, closes #458 2017-06-17 20:34:57 -04:00
jacob1
4214f85599 HEAC now checks for heat insulators
Also testing c++ stuff, maybe reuse this function for GOLD later
2017-06-14 00:04:44 -04:00
jacob1
694bc6a9cb new reaction suggested by Skylark: RFRG+NEUT=GAS/CAUS 2017-06-11 23:07:52 -04:00
jacob1
32d834c351 fix VIBR asymmetric heat releasing, fixes #424 2017-06-11 22:47:05 -04:00
jacob1
510c33a986 fix BOMB issue from previous commit that deletes particle #0
also, code cleanup
2017-06-11 22:22:30 -04:00
jacob1
5ac66bda75 BOMB: use kill_part instead of delete_part, fixes #432
this was the only element to use delete_part. Only brush drawing should ever use delete_part
2017-06-11 22:08:30 -04:00
jacob1
1718fe9287 HEAC is now meltable via LIGH, fix HEAC hardness, fixes #441 2017-06-11 21:10:19 -04:00
jacob1
fb2431d99e replace some if-else with switch statements, code formatting, closes #444 2017-06-11 20:39:23 -04:00
jacob1
81259c5d11 remove PROP_LIFE_DEC from some elements that don't need it, closes #447 2017-06-11 11:29:42 -04:00
jacob1
4242e38968 update LSNS description + default temp 2017-06-04 21:56:12 -04:00
jacob1
1cb3917fcc Fix comment 2017-06-04 21:33:45 -04:00
jacob1
d73586c566 POLO fix (I can't count) 2017-06-04 19:46:59 -04:00
jacob1
2dbdc3109b new element description updates 2017-06-04 18:29:35 -04:00
jacob1
48a95ac5d5 more POLO fixes 2017-06-04 17:26:56 -04:00
jacob1
53bb1f4802 file renaming / deletion, code cleanup 2017-06-04 17:26:56 -04:00
moonheart08
649133ff41 Removed unneeded comments 2017-06-04 17:26:56 -04:00
moonheart08
94eb0a8ec2 Replace E182 with a real, functional element.
Implemented Polonium!
2017-06-04 17:26:56 -04:00
jacob1
1fb883a450 replace E181 with SAWD (sawdust), created by hitting WOOD with high velocity particles 2017-06-04 14:50:14 -04:00
jacob1
06b2631f8d rename E180 to HEAC (rapid heat conductor), now affects photons, code formatting 2017-06-04 12:56:25 -04:00
jacob1
fb1622da41 minor bugfix, this is a test
TESTING 123
2017-06-03 18:11:17 -04:00
jacob1
9bc19d9933 fix elementRecount parenthesis 2017-05-10 00:11:53 -04:00
jacob1
b0f3b2a36b Fix QRTZ killing life=0 PHOT, fixes #415 2017-05-09 21:56:01 -04:00
jacob1
b9c658ae20 elements are only recounted when unpaused, apparently 2017-05-09 21:52:40 -04:00
jacob1
2d7934bca6 fix elementRecount never being reset to false, fixes #417 2017-05-09 21:49:54 -04:00
jacob1
8830120479 use part_change_type in legacy fire update, closes #418 2017-05-09 21:45:42 -04:00
jacob1
abf60508cd fix ambient heat being reset when creating saves 2017-05-06 23:57:27 -04:00
jacob1
ce054bfc3f fix misc. errors reported by clang static analyzer 2017-05-06 20:02:23 -04:00
jacob1
9b954c7ed5 CRAY(LIGH) defaults to LIGH with .life 30 2017-05-06 19:40:22 -04:00
jacob1
cdc8f64896 fix clang compile warnings, fixes #406
also, sim.ambientAirTemp takes floats now
2017-04-27 23:08:06 -04:00
jacob1
c98f63bd89 save ambient heat in saves, if it is enabled 2017-04-24 22:29:45 -04:00
jacob1
ddd326eafd fix LSNS 2017-04-23 12:51:40 -04:00
Tamás Bálint Misius
0fe596f741 Make RFGL and RFRG a bit more realistic (#366)
* Make RFGL and RFRG a bit more realistic.

This means that they both more or less follow Gay-Lussac's law: T2 = T1 * P2 / P1. Simple heat transer mechanism, no playing around with .life, shared update function.

* Ditch weird pressure scale

* No /0 pls
2017-04-23 11:25:42 -04:00
jacob1
40972f9434 pressure and air velocity are now saved in saves 2017-04-22 17:06:28 -04:00
jacob1
866289c179 remove duplicate function, fix Simulation::GetParticleType, fixes #402 2017-04-21 20:24:24 -04:00
jacob1
01d17cb860 remove unused PSTN code (is this a sign of a bug?) 2017-04-20 21:16:25 -04:00
Nickolay
7078d7e528 Customizable FRAY and INVS (#390) 2017-04-20 17:37:09 -04:00
krawthekrow
c2642f35f8 fix FRME breaking when partially blocked 2017-04-17 22:58:11 -04:00
krawthekrow
446d4412ea fix pstn oddity 2017-04-17 22:58:11 -04:00
jacob1
076ec711a9 fix photon refraction on windows 2017-04-16 21:41:50 -04:00
jacob1
cf03731dc3 Skylark: make GRAV prettier 2017-04-11 23:15:23 -04:00
jacob1
d3f0896599 Changes by Skylark:
Double the preciseness of photon refracting
photon refracting efficiency improvement on GCC
CRMC now slightly scatters photons when reflecting
BGLA now scatters photons
PQRT scatters photons like QRTZ does
C5 frequency doubling, id:2087410
*slight styling changes by jacob1*
2017-04-11 23:15:01 -04:00
jacob1
bcebe7560e fix typo in Air.cpp 2017-04-10 23:30:56 -04:00
LBPHacker
804b33f389 Fix WIFI cooldown
For some reason WIFI would only add sparks to the spark queue
(sim->wireless[1]) if there was no spark added to it in the previous
frame (sim->wireless[0] in the current frame). Fixed.
2017-03-20 23:04:28 -04:00
Capacitor Set
2d4c195c86 Fix memory leaks 2017-03-19 23:05:39 -04:00
jacob1
0832caa4f9 fix typo, gasses -> gases 2017-03-18 00:35:33 -04:00
jacob1
83657e8773 disable experimental elements in mods, intro text fix for mods 2017-03-04 23:54:03 -05:00
Issue tracking bot
d9115fc3fe Fix -Werror=misleading-indentation (#369) 2017-02-20 18:51:10 -05:00
jacob1
8f4e3a56bd reduce ctrl+z snapshot memory usage 2017-02-09 22:55:05 -05:00
krawthekrow
63b2227802 add ctype-based filt shift modes (#351) 2016-11-07 18:06:43 -05:00
Tamás Bálint Misius
4aa58d6c0c Fix crash on SPRK(ctype=0) being killed by PROT (#344) 2016-10-07 09:37:25 -04:00
cxi
ef9ef5bbce Fix bug with conservation of energy in RFGL (#338) 2016-10-01 00:19:48 -04:00
jacob1
85e2516a42 missed movement code fixes from my mod? b7ef4c8f2b95 2016-10-01 00:16:50 -04:00
jacob1
e8b4f99644 delete old comment 2016-10-01 00:04:26 -04:00
jacob1
69d28bd7b0 Fix crash with really high speed photons, a check is needed here too 2016-09-24 10:07:53 -04:00
jacob1
2708c379a1 Update RFRG / RFGL element IDs 2016-09-10 13:12:39 -04:00
jacob1
f94b0489f5 fix formatting in RFRG and RFGL 2016-09-10 12:56:12 -04:00
cxi
6e6eb36bf5 RFRG and RFGL (#315) 2016-09-10 12:54:10 -04:00
cxi
ad4ef65cb3 Make CRAY copy its own life to particles it creates (#335) 2016-09-10 12:51:07 -04:00
jacob1
9277839f11 enable E182 in snapshots 2016-09-04 21:47:45 -04:00
Mark Theng
8de12d616e fix resume simulation/reload in the middle of subframe debugging (#330) 2016-09-04 21:33:33 -04:00
SopaXorzTaker
968116bcad Typo in BRMT's description (#319) 2016-09-04 19:47:10 -04:00
jacob1
6dc1c222bc catch potential ParseExceptions when loading saves, use bson error handler to prevent exit(-5) 2016-08-14 18:18:59 -04:00
Simon Robertshaw
97a9f41ab9 Another experimental elemement, E182, some kind of nuclear fuel. 2016-08-07 21:36:32 +01:00
jacob1
cd41aac1f7 allow snapshots to still publish saves, as long as they don't use new features 2016-08-07 15:31:28 -04:00
Simon Robertshaw
b8e2113b05 Another experimental element, floats on water, supports other structures 2016-08-07 16:15:30 +01:00
Simon Robertshaw
4a3f3e763c Rename experimental element 2016-08-07 16:15:01 +01:00
Simon Robertshaw
30c7c9107d Experimental element - extra high thermal conductivity 2016-08-06 17:35:06 +01:00
jacksonmj
4f8f97d04b Add control of gravity strength using tmp to WHOL 2016-07-26 23:26:37 +01:00
jacob1
6eb832207c PIPE: don't try to render stickmen graphics if stickmen are inside the pipe 2016-07-25 23:59:26 -04:00
jacksonmj
fdb539064d Prevent diffusion of stored water between GEL and SPNG if no water is stored
Reported by camtech56 in http://tpt.io/.293650
2016-07-26 00:59:41 +01:00
jacksonmj
f6615deed2 Fix uninitialised variable (sim->player(2).rocketBoots) 2016-07-24 20:09:28 +01:00
jacob1
0c95c33da0 reorder deco tool IDs (to match my mod for tptmp) 2016-07-23 12:34:11 -04:00
jacob1
95fde9d699 MIX won't mix together elements with different states now 2016-07-18 22:01:44 -04:00
SopaXorzTaker
17398dd201 RPEL's ctype sets the element it repels 2016-07-17 16:47:43 -04:00
jacob1
4ec4b32021 Add font editor from my mod, add two new icons for favorites menu 2016-07-16 21:10:03 -04:00
jacob1
443c81e67a extra sanity check (was needed in my mod) 2016-07-16 00:50:09 -04:00
jacksonmj
57a3121a51 Limit MERC tmp to valid range
This preents "anti-mercury" (negative tmp from console) and also
slightly reduces how overpowered it can be in walls (enormous positive
tmp from console).
2016-07-16 01:16:04 +01:00
cxi
7251f645e4 Increase speed of MIX tool and make it work with liquids (#306)
* Make MIX tool work with liquids and gases
2016-07-12 23:34:08 -04:00
Matthew Miller
083d488566 Added a favorites menu. (#298)
Added a favorites menu.
2016-06-25 11:55:18 -04:00
jacob1
337a929cc3 A few description updates from boxmein. Closes #282
I don't think we need to add the element name for elements like ACID in the description when it is already obvious
2016-06-11 11:00:06 -04:00
SopaXorzTaker
c85ac21d84 Fix gravity field appearing after ctrl+z even if gravity is off, Fixes #293 2016-06-11 10:29:09 -04:00
jacob1
d63c6012c6 force a stacking check when undoing (id:1997880) 2016-06-11 10:21:25 -04:00
jacob1
7a18f6ec09 maybe compile fix 2016-04-26 23:22:36 -04:00
jacob1
1c15b426d5 Fix ctrl+MIX not actually doing anything, and shift+MIX being too powerful 2016-04-26 23:15:33 -04:00
Simon Robertshaw
17cdf980cb Remove commented code from MIX.cpp 2016-04-17 21:56:39 +01:00
Simon Robertshaw
e7b0e3f90d Particle/powder mixing tool 2016-04-17 21:55:08 +01:00
jacob1
0b1ffbcfd6 probably fix uninitialized thing in VIBR, might spend longer later messing with d4zk1tty's fuzzer script 2016-04-02 01:04:13 -04:00
jacob1
59d69ac8d0 revert THDR being changed to an energy particle
was causing issues that I forgot already so it is easier to just undo it
2016-04-02 00:21:13 -04:00
jacob1
40c2ff27b0 Test using DownloadManager from my mod instead of RequestBroker
The crash when opening saves on mac is definitely something to do with the threading, and i'd rather just test this first to see if it fixes it

Copied from my mod almost entirely as-is, with the changes to HTTP.cpp included, also added locks into Download.cpp even though it is probably overkill
2016-03-27 11:41:36 -04:00
jacob1
15068552b5 really fix the remainders in loop edge mode 2016-03-12 13:54:50 -05:00
jacob1
0b0c73647a don't remder AMTR as a gas 2016-03-12 13:39:54 -05:00
jacob1
3a76c1cadf fix PBCN(LIGH) 2016-03-12 13:32:12 -05:00
jacob1
ccec5fbff4 that .5f should have been ouside the remainder_p
also fix random compile warning (error?)
2016-03-12 13:24:59 -05: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
13d3547211 Compiling fix for scons on windows
something is up with the pthreads library (dynamic compiles still broken), probably windows libraries all need to be recompiled and distributed separately like I did for visual studio
2016-03-12 00:36:11 -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
85d89e9f87 simpler version of 9a2b7749c7 (gravity wall change)
All gravity sources are now prevented, now just the specific elements that create gravity.
2016-01-05 23:12:12 -05:00
jacob1
adf0fa72df Actually use .Properties instead of .Falldown for wall blocking 2015-12-30 23:45:05 -05:00
jacob1
8630b0a926 change CRMC creation reaction from BREL + LAVA(CLST) to LAVA(QRTZ) + LAVA(CLST)
BREL didn't make much sense, and this one is funner
2015-12-27 21:28:57 -05:00
jacob1
c76ec2be43 PHOT going through turned off GPMP turns into GRVT
GRVT .tmp depends on the GPMP temp
2015-12-26 01:24:22 -05:00
jacob1
9a2b7749c7 Newtonian Gravity sources inside of a no gravity grav wall zone no longer generate gravity 2015-12-26 01:23:53 -05:00
jacob1
2725a32b8e Fix NTCT / PTCT / INWR triggering EMP blasts ... 2015-12-19 02:44:20 -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
af48997228 fix mistake in EMP.cpp, add license header in Probability.cpp 2015-12-18 23:23:44 -05:00
jacob1
52a22bc7d6 jacksonmj: Move EMP triggering into SPRK_update 6ae719deb70d 2015-12-18 23:17:25 -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
74b8ba8a07 fix for previous commit, make sure .ctype is valid 2015-12-18 20:05:52 -05:00
jacob1
139bdd7f4d fix STKM being unable to pick up most energy particles, or LOLZ/LOVE 2015-12-18 20:02:53 -05:00
jacksonmj
edf180b94e SPRK(ETRD): Check life value of destination before conducting
This prevents ETRD conducting to neighbours which are still in the
cooldown period after the previous spark. This is for consistency with
all other conduction rules, and to prevent behaviour being dependent
on particle order.
2015-12-18 23:39:03 +00:00
jacob1
07be209094 remove extra spacing in all the element files 2015-12-18 02:27:19 -05:00
jacob1
b9c3eeae92 Allow old lua scripts which use state to work 2015-12-18 02:07:16 -05:00
jacob1
95ab91e91d Remove .State property from all element files 2015-12-18 01:51:22 -05:00
jacob1
f1ea32516d jacksonmj: Stop using Element.State 618c4b5ce5cd 2015-12-18 01:14:31 -05:00
jacob1
bfc19d1fd7 revert pull request #258 (e308dd73bb)
Causes some issues with particle movement which was breaking some saves, and the previous commit still fixes these elements to move through gas wall instead of powder wall
2015-12-18 00:56:42 -05:00
jacob1
3226ce0ac2 jacksonmj: Always use Properties instead of Falldown to decide whether particles can pass through walls e52a62354473 2015-12-18 00:51:04 -05:00
jacob1
d2807cb28f Change AMTR and MORT to TYPE_GAS, and THDR to TYPE_ENERGY 2015-12-18 00:48:07 -05:00
jacob1
9cab6959b6 fix flood fill delete on normal particles also deleting photons 2015-11-30 14:20:37 -05:00
jacob1
5be9773eca fix another crash with invalid SOAP (soap was detached before SOAP update function ran) 2015-11-22 17:53:22 -05:00
jacob1
7a78b91f4f reformat ARAY.cpp because coding style was really hard to read 2015-11-22 00:12:10 -05:00
jacksonmj
d0cf82de03 PSTN: compatibility with old saves with non-PSTN particles layered on top of the starting PSTN particle
P.S. don't use layering, this commit is exactly why it's bad. Layering makes adding new functionality without changing existing behaviour much more difficult, and makes the code more complicated than necessary.
2015-10-22 22:39:08 +01:00
jacob1
7fcc056cb6 fix really fast particles moving through EHOLE 2015-10-15 00:26:57 -04:00
jacksonmj
d0445258c5 CONV tmp value can now be used to restrict which elements get converted. Requires version bump to 92. 2015-10-13 01:33:19 +01:00
jacksonmj
d88c18adaf Fix collision detection for liquids on top of streamlines 2015-10-13 00:49:42 +01:00
jacob1
bc112b54df initialize GoL variables, add sim.gspeed function 2015-10-10 00:03:04 -04:00
cracker64
9a65d60c6e Now with 100% less =( .
Hot FWRK less laggy.
Define more constant floats.
Pump will now work at x=4,y=4.
Revert a DEUT change
2015-10-08 12:48:56 -04:00
cracker64
3263c9437a Jacob's laziness made me do this again.
CELL checks +-1 aren't required.
Moo
2015-10-08 01:48:44 -04:00
jacob1
0a907c5177 fix bug if the first space after the DRAY was empty, fix bug with DRAY's ctype sometimes not working 2015-09-28 11:28:19 -04:00
jacob1
74471dcda4 DRAY only copies enery or non-energy particles, depending on the first one it sees 2015-09-25 13:52:59 -04:00
jacob1
a0c77fe6e8 fix it being impossible to select wall menu, add wall identifiers from my mod 2015-09-24 00:26:37 -04:00
jacob1
4594de57b0 allow DRAY to copy energy particles 2015-09-24 00:14:28 -04:00
jacob1
9b9555226b fix compiling in visual studio, fix maybe bug with updates? 2015-09-20 00:59:37 -04:00
jBot-42
146fc4d5fa Move GBMB to Force Menu 2015-09-18 15:46:53 -04:00
jacob1
5433766311 fix ETRD creating plasma as if it were created by the brush (-2) 2015-09-01 12:26:06 -04:00
jacob1
2e32fba4d9 fix GRAV and EXOT button colors
this also fixes GRAV with pretty powders on. TODO: maybe use old GRAV color cycling
2015-09-01 01:46:33 -04:00
jacob1
48dbc4182d Add CRMC from my mod 3dd3fb2f7801 92f0301295f6 2015-08-30 18:29:21 -04:00
jacob1
68b4f1efd6 MERC -> liquids, FUSE/FSEP -> explosives 2015-08-30 01:54:31 -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
2ebc522c36 add ERASEALL wall from my mod (erases walls, particles, and signs) 2015-08-30 00:18:06 -04:00
jacob1
12ef4ec79d ambient heat sign
maybe something that would replace all instances of {aheat} / {t} / {p} in a sign would be nice, but for now just do this.
2015-08-29 23:47:21 -04:00
jacob1
01afd69c17 STOR now automatically transfers to PRTI 2015-08-29 23:38:46 -04:00
jacob1
37794c01af .tmp2 for CRAY now sets creation offset (just like DRAY)
LIFE info moved into .ctype, no reason to use a whole extra variable for it
2015-08-29 22:02:05 -04:00
jacob1
5caf8bc8e1 allow longer signs, add 'None' justification where the pointer line isn't drawn
signs have a longer width limit and hard 45 character limit from the textbox and when loading saves
2015-08-29 18:56:38 -04:00
jacob1
3d8f871fc7 reset invalid SOAP links even when soap is frozen
fixes tpt save id:1834554
2015-08-11 22:45:29 -04:00
jacob1
e9d6519800 small improvement to 7d7bf5eff6 2015-07-07 20:22:03 -04:00
jacob1
f95db0278e really fix coordinates when placing stamps ... 2015-07-07 00:44:06 -04:00
jacob1
732e5b8730 fix some very minor memory leaks 2015-06-30 19:06:18 -04:00
jacob1
ab1226c58b fix FIRE not burning things inside of walls 2015-06-28 17:33:45 -04:00
jacob1
d67cb4b582 add new s: sign which does a save search
also change some searchController stuff to properly queue searches when one is already going on
2015-06-27 19:03:41 -04:00
Sourec
4e8335b070 Changed falldown values for FIRE, CO2, and SMKE to zero, reverted changes to collision/placement logic 2015-06-11 16:31:21 -04:00
Sourec
bbe0c34d3e Switched an OR to an AND
That was leftover from when I was rewriting a bit of this. Sorry!
2015-06-11 16:25:39 -04:00
Sourec
1494f8237c Fixed FIRE, SMKE, and CO2 passing through the powder-only wall. 2015-06-11 14:29:59 -04:00
Sourec
7d7bf5eff6 Fixed CLST tmp value carrying over when converted by water 2015-06-05 21:40:28 -04:00
jacob1
c9d5841101 fix DRAY with .tmp = 0 (broken in a115e78952) 2015-05-23 12:47:39 -04:00
Aditya Vaidya
13cc593d13 Fixed most spelling errors in code. 'originaly' is read as 'original Y', so not a typo 2015-05-18 15:16:01 -05:00
jacksonmj
34567bc496 Merge pull request #247 from ryanmjacobs:fix_pointer_checks 2015-05-16 02:19:08 +01:00
jacob1
8e7e8e0670 some changes to LIGH creation (mostly from lua) 2015-05-11 20:50:10 -04:00
jacob1
b1fc134204 fix crash with high speed photons in loop edge mode 2015-05-10 21:48:09 -04:00
jacob1
dd102c1f11 fix possible crash when PROT removes spark on disabled elements 2015-05-10 21:16:53 -04:00
jacob1
aa854557f7 fix WOOD sometimes creating water when burning 2015-05-10 20:55:03 -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
jacksonmj
72329af09d Fix DLAY delay changing during save+load
by rounding temperatures to nearest instead of always flooring.

Effect on DLAY delay:
Room temperature offset - loaded as whole number of degrees C, so rounding to nearest deg C gives the same number as flooring.
Full - loaded as whole number of K = original whole deg C - 0.15. Rounding to nearest deg C means the whole deg C delay from before saving is used as the number of frames to delay, instead of deg C - 1 if flooring was used.
2015-03-27 17:39:05 +00:00
jacob1
fc5f3671f1 new function sim.clearRect, plus fix rounding errors breaking ctrl+x 2015-03-12 00:54:27 -04:00
jacksonmj
84f6ede2b8 Fix for commit d71a0d98: also adjust melting point of BRMT(TUNG) based on TUNG HighTemperature value 2015-03-05 00:14:26 +00:00
jacob1
a422e43beb visual studio error fix + warning fix 2015-02-25 18:56:50 -05:00
jacksonmj
91e871d0ea PSTN: allow zero or negative contributions towards movement amount
Note that final movement amount < 0 means no movement, it will not reverse the movement direction. This is to keep interpretation of inputs simple - PSCN always extends, other conductors always retract.
2015-02-24 22:48:31 +00:00
jacksonmj
cd71a6dff7 Float rounding strikes again - set destination coords using integers when moving particles with PSTN
instead of adding a delta value to the current position, which might not give the correct result. Particles (except solids) were on rare occasions ending up at a point 1 pixel away from where they should be after being pushed by PSTN. This led to stacking, and in the case of save 1732622 after changing BIZS to a liquid, to disintegration of the save.

(TPT++ version of commit 2ad996dfe621887355f8532f1262c306421bc2de in jacksonmj fork)
2015-02-23 13:35:17 +00:00
jacksonmj
d71a0d98eb Allow TUNG melting point to be changed from Lua
Also set lava LowTemperature threshold to MAX_TEMP, to simplify changing melting points from Lua.
2015-02-23 13:24:27 +00: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
84f13cfe63 fix compiling error on windows 2015-02-10 23:39:15 -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
94e635b65d fix negative tmp sing possibly generating max particles 2015-01-17 14:45:20 -05:00
jacob1
8c1db513f6 make sure ELEC dies in ELEC+NEUT reaction 2015-01-17 14:06:38 -05:00
jacob1
b1a3c404b6 fix platform / sconscript flag specific warnings, --no-warnings no longer defaults to true 2015-01-16 23:39:42 -05:00
jacob1
ace9e36cc6 fix ALL the warnings
mostly just using more size_t. Also do some formatting around if statements
2015-01-16 22:35:32 -05:00
jacob1
efd69b208d fix a ton more errors in the interface code, including all the -Wreorder ones 2015-01-16 19:58:39 -05:00
jacob1
54d985f975 gcc warning fixes (up to lua files) 2015-01-16 17:26:13 -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
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
0ad225d1fc update VIBR randoms, fix any VINE in old saves also 2015-01-07 19:32:49 -05:00
jacob1
be6551ceea fixes to rndstore in VIBR/VIRS, remove goto in PROT 2015-01-07 19:04:11 -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
0f583f3bd8 fix PLSM spawning in fusion (allow some stacking), GRVT in O2 fusion 2014-12-15 15:52:08 -05:00
cracker64
6410171bd5 Fix IRON rust
Fix some randoms
2014-12-06 16:23:45 -05:00
cracker64
a115e78952 More element optimizations!
ACEL, changed a range check
DRAY, Fixed repetitive checking
GOLD, less rand()
PLNT, removed range checks, less rand()
PROT, used a switch()
VIBR, less rand()
VINE, less rand(), fixed growing along WOOD
VIRS, less rand()
2014-12-06 15:43:11 -05:00
cracker64
783b2c1736 Stop PIPE graphics from creating a particle every frame.
Remove temperature setting, this feature is beyond useless now, PROP+Lua are better ways to manually set pipe.
2014-12-06 01:16:04 -05:00
jacksonmj
e25fac5037 Less layering of particles in fusion
Fixes http://tpt.io/~1683916 - PLSM was created on top of DMND, which other particles then displaced, leading to lots of stacking and particles escaping through the DMND.
2014-11-30 17:22:56 +00:00
jacob1
70a815a8c7 fix crash when PIPE finds PRTI with an invalid channel 2014-11-29 00:30:05 -05:00
jacob1
6da5b08fd2 fix for fast particles moving through VOID 2014-11-22 13:04:04 -05:00
jacob1
aa8fe86735 fix DEUT graphics (accidentally changed something) 2014-11-21 16:40:46 -05:00
jacob1
16ce3a68c0 more jacksonmj suggestions: save edgeMode in saves, BVBR absorption fix, life saving fix, DEUT graphics change, PROT fix, SOAP graphics fix 2014-11-21 15:41:22 -05:00
jacob1
e20f6b101b jacksonmj: "Allow ELEC to pass through GLOW, fixes ELEC->PHOT reaction in GLOW." f162984e22e5 + some parts of "Misc small fixes" 95cf5bd67c2b 2014-11-21 15:41:22 -05:00
jacob1
a182e925fe some elementpallete fixes + fix SPAWN2 ToolButton 2014-11-20 22:44:02 -05:00
jacob1
6ce2d5fe92 #define MAX_FIGHTERS + some fixes 2014-11-20 22:11:20 -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
6066ae8341 prevent having multiple stickmen on the screen, also add playerst.spawnID 2014-11-20 18:51:33 -05:00
jacob1
8233b28820 Change GRVT flammability to 0 2014-11-19 22:49:20 -05:00
jacob1
c673f30e14 fixes suggested by jacksonmj in -dev
fixes bugs in DMG, LIGH, PHOT, and QRTZ, also makes deut explosions less laggy when they hit the particle limit
2014-11-14 12:48:06 -05:00
jacksonmj
b3b852249b Deco off (except black deco) for LCRY in save thumbnails 2014-11-09 21:33:08 +00:00
jacob1
a31f4df0a1 fix being unable to draw METL/PSCN/INST ctype on CRAY 2014-11-07 12:28:49 -05:00
jacksonmj
1eeed277a0 Fix initialisation of transitionOccurred 2014-11-06 00:46:15 +00:00
jacksonmj
829e2cca7d Flatter surface when liquids solidify 2014-11-06 00:32:25 +00:00
jacob1
43bab359db fixes to ELEC (missed from 6dc7eaf43e), FUSE (changed in 27e3e12518), and IRON (changed in 0d70547cf0) 2014-11-05 19:15:57 -05:00
jacksonmj
66a530f5a3 FRZZ and FRZW changes/fixes
Fix FRZW low temperature transition (accidentally turned into a high temperature transition in b661418d).
FRZZ now melts into FRZW, so that single pixels "form ice that always cools" as in FRZZ description.
ICE update function: was meant to be checking not setting parts[i].ctype. However, turning FRZZ into self-cooling ice seems a logical thing to do, so set ctype of parts[r>>8].ctype, and make all types of ice cause this reaction (not just ICE(FRZW) as was apparently the original intention of the ctype check).
2014-11-05 23:38:22 +00:00
jacksonmj
9e7ead9bcc Change melting point for snow with wrong ctype back to 273.15 2014-11-05 23:32:49 +00:00
jacksonmj
fb796c873b PSTN: allow movement amount to be set by temperature. Requires major version increment. 2014-11-04 15:38:41 +00:00
jacksonmj
57409b0b41 Change order in which particles are created by the rectangle and brush tools
to make liquid movement look less weird in normal gravity
2014-11-01 15:38:39 +00:00
jacksonmj
02e1969ef2 Fix SNOW(WATR) melting temperature
Broken by fixing SNOW(SLTW) melting temperature in a78bd78bfc
2014-10-31 16:39:30 +00:00
jacksonmj
f7b53d0231 Prevent fast particles from skipping over DESTROYALL wall 2014-10-27 17:50:58 +00:00
jacob1
ca0eecee80 pavg0 / pavg1 properties can be set through the console and prop 2014-10-26 18:11:46 -04:00
jacob1
12f00db240 loop edge mode from my mod (also works with stickmen) 2014-10-24 00:18:51 -04:00
jacob1
6463d04f6c fix a few of the most spammy warnings (there are still hundreds of warnings though)
TODO: actually fix all the warnings
2014-10-23 00:42:13 -04:00
jacksonmj
a78bd78bfc Fix SNOW(SLTW) melting temperature, and change ACID hardness value to make more sense on the wiki 2014-10-06 12:57:32 +01:00
jacksonmj
74dcd4074e Merge branch 'develop' of github.com:simtr/The-Powder-Toy into develop 2014-09-28 14:34:44 +01:00
jacob1
a78129adb9 Fix spelling mistake 2014-09-08 16:06:12 -04:00
jacksonmj
ba31457701 No black BIZR except by deco 2014-09-02 19:20:57 +01:00
jacob1
2140beb9cc make sure soap doesn't crash when messed with in the console 2014-08-25 19:05:32 -04:00
jacob1
f8782338d7 make tpt.selected* and tpt.brushx/y writable (replaces simstate branch) 2014-08-19 02:01:31 -04:00
jacob1
5ab1aa6989 fix RPEL internal name 2014-08-15 21:52:17 -04:00
jacob1
1314567c13 fix DRAY 2014-08-15 20:19:30 -04:00
Simon Robertshaw
0d617ace7b Decorate thread entry points in headers 2014-08-15 22:50:28 +01:00
Simon Robertshaw
a629eb9bfc Force stack re-alignment for entry-points from phread_create with mingw & windows to fix SSE crashes in child threads 2014-08-15 21:42:33 +01:00
jacob1
7e9c507e64 fix memory leak 2014-08-15 12:15:13 -04:00
jacob1
986b25b508 redo spark graphics, add spark render setting 2014-08-11 21:56:40 -04:00
jacob1
774fb88002 fix REPL crash (ignoring BOUNDS_CHECK for now) 2014-08-11 01:11:58 -04:00
jacob1
859fdece6a prevent PROT from rapidly changing portal temps 2014-08-06 11:49:57 -04:00
jacksonmj
c83945e281 Allow PHOT deco, in old saves only 2014-08-05 22:11:07 +01:00
jacob1
8f2a0d3eb3 fix compiling problems 2014-07-06 11:31:40 -04:00
jacob1
b59ecf2d65 add airblock wall 2014-07-03 14:30:12 -04:00