Commit Graph

3264 Commits

Author SHA1 Message Date
jacob1
16d686e949 fix replace mode semicolon shortcut 2019-02-19 21:53:44 -05:00
jacob1
08cd32abbe use scancode instead of keycode for most keyboard shortcuts
keys like 0-9, tab, enter, ctrl/shift/alt, ins, and del are still looking for keys instead of scan codes, just in case (but I expect them to be always equivalent anyway)
2019-02-19 21:46:56 -05:00
jacob1
0c6ce20880 Add "Force Integer Scaling" option for fullscreen
Also:
recreate the window when enabling resizable window, same workaround I applied to my mod for jacob1/The-Powder-Toy#24
recreate the window when toggling fullscreen, to work around some bugs where the window is sized incorrectly or the mouse position doesn't match where the cursor is
Don't capture mouse cursor when this is a debug build
2019-02-18 22:18:29 -05:00
jacob1
a979917744 Version 94.0.342 2019-02-17 14:08:04 -05:00
jacob1
46cd49ba24 Fix uncaught exception in console when trying to parse invalid numbers 2019-02-16 19:20:55 -05:00
jacob1
25c1b13bd4 improve find tool handling with GoL, can now find specific life elements
Reverts most of LBPHacker's previous commit, lol
2019-02-16 19:13:05 -05:00
Tamás Bálint Misius
4ff1dc0bc3 Fix a few more random PMAPBITS issues 2019-02-16 18:57:51 -05:00
jacob1
240bb3bd92 restrict saves to version 94.0 when they use newer elements / features 2019-02-10 22:02:17 -05:00
jacob1
edba703aab don't allow right click -> select a save when you aren't logged in 2019-02-07 23:30:09 -05:00
wolfy1339
a2bb531c46 Remove inclusion of deprecated C++ headers 2019-01-31 20:09:15 -05:00
jacob1
abce030d5d ignore mouse button 4/5 when drawing, fixes #626
perhaps in the future we'll add a use to these
2019-01-31 20:06:09 -05:00
jacob1
82bdf4a777 Fix macOS data directory (for real this time, I think) 2019-01-22 00:26:29 -05:00
jacob1
af20029e08 Files for new icon
Still not entirely final, may change android (circle) icon a bit, and not sure if the mac icon works
2019-01-20 12:53:39 -05:00
jacob1
87f17fd7c3 in mac version, download the update file using a browser
not possible to update executable inside app packages anymore
TODO: update website to serve .dmg link instead
2019-01-19 11:54:43 -05:00
jacob1
e8b4256503 Fix gravity sometimes persisting a frame after ctrl+z / clearing sim, fixes #571 2019-01-14 21:11:06 -05:00
jacob1
50a88c9c26 Fix whitespace 2019-01-12 12:50:28 -05:00
jacob1
655f4bb6d0 chdir to data directory on mac
May change this later if I decide to go back to using objective-c (or swift?) later to reimplement the rest of the mac features
2019-01-12 12:08:18 -05:00
jacob1
cc93479c4b Fix incorrect time format being used sometimes when not in UTC timezone, add day of month to "previous year" time format 2018-12-31 21:49:44 -05:00
jacob1
2d838087b5 minor fix 2018-12-30 13:49:00 -05:00
jacob1
08c22031e2 Add tpt.unregister_keypress to eventcompat.lua 2018-12-30 13:47:57 -05:00
jacob1
f3f1fbf77f switch back to normal dns (was only intended as a quick fix in a snapshot) 2018-12-29 14:00:04 -05:00
jacob1
10bee577a2 eventcompat.lua: Add shift mapping for us keyboard layout 2018-12-28 19:16:22 -05:00
jacob1
3b3775addf Add blur lua event, called when opening another interface window 2018-12-27 21:17:24 -05:00
Caeleron
9e94abb150 Transfer properties of COAL breaking into BCOL (Fixes #602)
Fixing a problem where decoration is not transferred from COAL to BCOL when broken. All properties of COAL should now be copied to the new BCOL particle, including if it is burning, decoration and discoloration caused from heating.
2018-12-25 17:12:56 -05:00
jacob1
87fb94ce94 Delete unused Thumbnail handling code 2018-11-27 22:13:29 -05:00
jacob1
d0dd9ec22f fix sim.brush being double size, fix compile warning 2018-11-21 12:38:26 -05:00
Tamás Bálint Misius
5a57c37ae9 Make close event trigger consistently 2018-11-20 21:06:59 -05:00
jacob1
b41f228c10 fix a few cases where the rng calls were converted improperly 2018-11-20 21:02:20 -05:00
jacob1
a3eae58120 fix (msvc) compile error 2018-11-17 19:33:16 -05:00
jacob1
2929264885 embed event api compatibility lua script
probably temporary, can't deprecate and remove an extremely common api in the same version.
lua script embed code mostly copied from my mod
2018-11-17 00:09:48 -05:00
Tamás Bálint Misius
e48bd482f6 Add close event 2018-11-16 23:02:05 -05:00
Tamás Bálint Misius
3de68c4346 Fix event objects not being freed 2018-11-16 23:02:05 -05:00
Tamás Bálint Misius
531229daa9 Move EventTypes inside LuaEvents to prevent global scope pollution 2018-11-16 23:02:05 -05:00
jacob1
a8489ba6f5 add new events api, replaces legacy event functions
event.register(event.mousedown, function(...) print(...) end)
event.unregister(event.mousedown, somefunc)

mouseclick event split into mousedown, mouseup, mousemove, mousewheel
keypress event split into keypress, keyrelease, textinput. key* events only contain keycode and scancode, don't attempt to represent a letter (was very broken at this before). Also have helpful shift/ctrl/alt flags passed in. textinput just represents inserted text, can probably even handle foreign characters.
register_step replaced with event.tick event

All legacy register_* and unregister_ functions are removed. There is a compatibility lua script, might embed it later. tpt.set_shortcuts / tpt.test also removed. event.getmodifiers added, just a misc function to get the currently held modifiers

Lots of code duplication to handle each event is removed, it's not handled in a more generic way. Although the Event class / child classes could use some work.
2018-11-16 00:07:26 -05:00
jacob1
48bc6e02ba Fix gcc 8 warnings 2018-11-03 19:36:07 -04:00
LBPHacker
5733073c33 Fix dray with tmp=0 acting weirdly 2018-10-30 21:28:57 -04:00
EchoHowardLam
813cab7af7 Hotfix endless air current
Fix issue #580
2018-10-30 21:04:52 -04:00
nunom2005
31b45312b2 Add a message a message while fetching the motd (#603) 2018-10-30 21:01:17 -04:00
jacob1
f7e8ade347 fix another single-pixel PIPE generation issue 2018-09-30 23:46:52 -04:00
jacob1
276098f9db fix crash when using elem.element on windows 2018-09-17 23:03:05 -04:00
jacob1
7f215a6a17 fix particle #0 not being removed from the photons map when moving 2018-09-09 10:53:02 -04:00
jacob1
3707ecd563 fix "publish" button in save browser 2018-08-24 23:11:09 -04:00
jacob1
bbef295fe3 fix default elements disappearing when loading saves if the identifiers don't match 2018-08-24 23:10:46 -04:00
jacob1
c1e4644dc8 It's that time of year again 2018-08-07 09:24:11 -04:00
jacob1
d435f30834 fix LDTC temp/airdrag 2018-07-22 00:05:03 -04:00
krawthekrow
bdc3f300ba show conv tmp as element name in hud 2018-07-21 22:36:06 -04:00
krawthekrow
d42d7486e7 allow prop tool to parse particle type for tmp 2018-07-21 22:36:06 -04:00
krawthekrow
d05e4b2d0b show ldtc tmp2 in hud 2018-07-21 22:27:11 -04:00
krawthekrow
711d65bbd5 rewrite ldtc to be less buggy 2018-07-21 22:27:11 -04:00
jacob1
1c1bcb0cdc fix stasis wall not having any blob mode effects 2018-07-21 21:26:14 -04:00
jacob1
92244f78bb initialize some variables to fix -Werror=maybe-uninitialized warnings
most aren't actually bugs, but gcc isn't able to determine that the paths it can follow guarantee they are initialized
2018-07-08 00:49:35 -04:00
jacob1
8e09edd188 fix typo in favorites menu 2018-07-07 21:41:36 -04:00
krawthekrow
143ba20191 check for correct prefix in hex property decoding 2018-07-07 19:12:12 -04:00
LBPHacker
a3a3b3be1a Make ctrl+shift+click toggle favorite status 2018-07-07 19:10:41 -04:00
LBPHacker
27f5ba199d Fix PIPE being reversed 2018-06-24 10:37:19 -04:00
krawthekrow
11d33d5b77 call rayt linear detector 2018-06-24 10:37:11 -04:00
Mrprocom
2935a94b27 Update in-game rules to match the new TPT rules 2018-06-24 10:37:01 -04:00
jacob1
9a707003aa fix blue line in smudge tool texture 2018-06-05 23:15:09 -04:00
jacob1
969e99c78c also fix SplitFromEndBy in String 2018-06-05 00:26:31 -04:00
jacob1
53f6807ea6 make fps update less often in hud 2018-06-04 23:48:40 -04:00
jacob1
01b9a7c7e8 fix Saves/ appearing before all saves in local save browser 2018-06-04 23:34:40 -04:00
jacob1
0e383e1045 fix scrolling in browsers being reversed 2018-06-01 00:22:06 -04:00
mniip
48a333f0de Fix some scrolling issues 2018-05-30 13:35:44 +03:00
jacob1
7393c577f8 fix double scale firstrun check. We shouldn't need this popup anymore though 2018-05-28 14:02:50 -04:00
jacob1
3ce906b25d even better desktop size detection, now accounts for taskbars / panels 2018-05-28 13:55:49 -04:00
jacob1
a40ab1e50d don't load invalid window positions, only load window pos on first run 2018-05-28 13:33:01 -04:00
jacob1
324602fe26 adjust for window border when loading window position too
fixes window moving up every time on windows, on linux the border size gets reported as 0 so nothing changes there
2018-05-26 17:38:01 -04:00
jacob1
743ec98e3f add resizable window and original fullscreen options 2018-05-25 21:19:44 -04:00
jacob1
58127f355b fix windows / renderer compile (renderer requires sdl for now) 2018-05-25 21:19:44 -04:00
jacob1
841022c907 recenter linux icon 2018-05-25 21:19:44 -04:00
jacob1
002ab799c5 whitespace fixes 2018-05-25 21:19:44 -04:00
jacob1
7ac7eec6cf more sdl2 fixes:
don't recreate window every scale / fullscreen change
better renderer handling, input scaling no longer needed even if window resizing is enabled
load/save window position (replaces old windows code to do this)
calculate initial mouse position on startup because sdl no longer does this for us
2018-05-25 21:19:44 -04:00
jacob1
802ec4d252 remove icon debug stuff 2018-05-25 21:19:44 -04:00
jacob1
bd8550c2d5 fix a few more sdl 2 bugs:
mouse movement captured outside the window when mouse is down
fullscreen now focuses the window (there is a bug where you have to click once to get mouse input, though)
add linux icon, will need to be redone properly because it's offcentered with a black border (mask isn't present)
allow typing ~ into the console + some other fixes
2018-05-25 21:19:44 -04:00
jacob1
ba362c1ab7 fix options menu crash 2018-05-25 21:19:44 -04:00
jacob1
e5230b5b9f upgrade to SDL 2
Still currently in process, there are some issues:
Windows version doesn't work, mac version might not work, opengl might not work
Icon doesn't work (on Linux at least)
Lua will need some changes, there are some sdl 1.2 hacks in there
When entering fullscreen, the window loses focus
When holding down mouse out of bounds, mouse move events stop being sent
When letting go of mouse out of bounds, mouseup event doesn't take into account double scale mode
Clicking on startup without moving mouse will draw at 0,0 for a frame
Renderer probably won't compile because USE_SDL doesn't entirely work

... and maybe others

Some nice things were done though:
no more blit2, sdl can do the scaling itself
3d effect removed, no reason to support this joke any longer
No need to support copy/paste ourselves, sdl does it now
text handling done much better now, separate events for key presses and text input
when a new window is shown, all events ignored until next tick (ignore textinput event if window shown from key press event like console)
2018-05-25 21:19:44 -04:00
jacob1
38fac7046a add #define NOMINMAX before windows.h includes 2018-05-17 21:49:46 -04:00
jacob1
e8373ffa4c mac compile fix 2018-05-17 21:31:26 -04:00
jacob1
3b428789c7 fix selecting another element turning off find tool 2018-05-17 20:59:37 -04:00
jacob1
6ef0f065a6 fix .what methods on exceptions 2018-05-17 20:55:29 -04:00
mniip
aa389dbbfd Add missing locale header 2018-05-14 05:38:10 +03:00
mniip
30dd49235d Add ToLower/ToUpper 2018-05-14 05:12:32 +03:00
jacob1
36a545124e fix setting element properties in legacy lua api 2018-05-13 16:16:14 -04:00
mniip
9f6f43cf90 Fix float parsing in the PROP tool 2018-05-13 04:49:31 +03:00
mniip
22e1de3fe8 Work around a thread_local bug in MinGW with the WIN32 threading model 2018-05-13 04:32:28 +03:00
mniip
a87acf56b7 Replace strdup with mystrdup 2018-05-10 10:34:45 +03:00
jacob1
8a8cbb81e4 fix getting/setting description in elements api 2018-05-10 00:27:55 -04:00
mniip
b8c9888d87 ...Fix opengl renderer compilation too 2018-05-09 20:16:28 +03:00
mniip
67df4fd963 Fix renderer compilation 2018-05-09 20:15:26 +03:00
mniip
3781b36c31 Merge branch 'data' 2018-05-09 19:28:58 +03:00
mniip
12e79ea111 Fix compilation on windows 2018-05-09 19:05:39 +03:00
mniip
f30215bb83 Merge remote-tracking branch 'origin/master' 2018-05-08 08:36:15 +03:00
mniip
f8da7452c6 Remove codecvt 2018-05-08 08:35:06 +03:00
mniip
32aaafee94 Move data into either cpp files or const arrays 2018-05-08 07:38:55 +03:00
jacob1
190107c1b2 fix CLNE 2018-05-08 00:01:34 -04:00
mniip
deaa17a947 Work around some holes in the BitmaskType specification 2018-05-08 06:05:12 +03:00
mniip
d404f4a538 Fix some C++14-isms.
Apparently C++11 is more strict regarding default argument and return
value conversions. Also return brace-initializer construction has had
little support.
2018-05-08 05:48:32 +03:00
mniip
ea1d574caf Add copy-paste to the font editor 2018-05-08 03:58:30 +03:00
mniip
954086fb86 Fixx macos compilation 2018-05-08 03:10:19 +03:00
mniip
51adf37853 Fix order and composition of String(char[]) operators to make clang happy 2018-05-07 08:10:50 +03:00
mniip
e0af41350a Add String/Format commentary 2018-05-07 06:22:24 +03:00
jacob1
56cba4595c Merge branch 'unicode' 2018-05-06 20:15:23 -04:00
jacob1
49703404be change almost all the rest of the rng calls to .chance/.between 2018-05-05 11:56:17 -04:00
mniip
f8586ea3a2 Remove ByteString::Stream 2018-05-04 23:10:39 +03:00
mniip
e29d2c58c2 Copy the Format interface too 2018-05-04 21:12:47 +03:00
mniip
1485ae5a21 Fix incorrect uses of String(char[]) 2018-05-04 20:05:26 +03:00
mniip
d6a92bdab5 Copy the String interface to ByteString 2018-05-04 14:45:57 +03:00
jacob1
ef2a0c2c81 fix single pixel pipe, remove ugly color bit hack 2018-05-03 21:40:48 -04:00
jacob1
44a8665f6f update rng functions in a lot of element files to use .between/.chance
conversion is still very incomplete
2018-05-02 23:53:15 -04:00
mniip
7f5c164d22 Fix partial name element search 2018-05-03 05:22:05 +03:00
mniip
730cf0806a Fix number to string conversion failing after a failed string to number
conversion
2018-05-03 04:55:20 +03:00
mniip
5d80d77f55 Remove String::Stream and with it the locale hacks.
Also fixes the crash when compiled with -O
2018-05-03 04:18:40 +03:00
mniip
ecb41661f8 Fix String::{Begins,Ends}With and with it a bunch of stuff 2018-05-03 04:12:09 +03:00
mniip
5ff8cefca4 Replace String::Stream parsing with number splitting 2018-05-03 04:11:43 +03:00
mniip
1ea7a035d1 Add Number parsing facilities 2018-05-03 02:54:32 +03:00
mniip
4b92926f0d Fix partition again 2018-05-03 00:45:22 +03:00
mniip
2f9cab7e54 Move "big" methods out of the header. Also fix Partition 2018-05-03 00:34:47 +03:00
mniip
d1610c5127 Add string partitioning methods 2018-05-02 23:42:34 +03:00
mniip
6c9cb174fb Change some uses of String::Stream to StringBuilder 2018-05-02 22:11:41 +03:00
mniip
7523c14252 Reword the Format interface 2018-05-02 08:45:50 +03:00
mniip
eeacc90fc5 Add StringBuilder formatters 2018-05-02 06:54:28 +03:00
mniip
f864f81a76 StringBuilder mockup 2018-05-02 05:38:08 +03:00
mniip
ced7b0c993 Move the ConversionError class 2018-05-02 02:22:10 +03:00
mniip
a121c62c3b Add some helper methods and rewrite some of the string manipulation code 2018-05-02 01:32:04 +03:00
mniip
833383b121 Move TPT's icons to the (real) Private Use Area of the unicode 2018-05-01 07:03:48 +03:00
mniip
b8c5e94a41 Add blocks/gaps to the font format 2018-05-01 05:57:03 +03:00
mniip
9d927cbd6f Add an auxiliary font reader class to reduce code repetition 2018-05-01 02:21:34 +03:00
mniip
ff27d69424 Switch from std::string to String/ByteString in most of the code
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00
mniip
4912674bfe Add unicode/byte string classes which are supposed to eventually phase
out std::string
2018-04-29 22:55:00 +03:00
mniip
c0c550e920 Add a new font editor 2018-04-29 18:49:40 +03:00
jacob1
d2e0986bf6 fix occasional issue where deleting the particle RAYT is detecting would delete the particle it is sparking instead
only happened when unpaused and only if the spark was in a certain state. part_change_type was called with the wrong coordinates, which confused pmap and put the sparked particle on top of pmap in the detected particle for a frame
2018-04-29 00:48:53 -04:00
mniip
04c875120a fix some tools' icons breaking their bounding box 2018-04-29 04:23:03 +03:00
mniip
16acc95621 Enlarge the font by adding 2 pixels above the cap height 2018-04-29 04:08:03 +03:00
jacob1
67132c9925 fix another out of bounds crash relating to stasis wall 2018-04-28 11:45:16 -04:00
jacob1
be57130c7a fix crash when particles are out of bounds 2018-04-28 00:27:03 -04:00
jacob1
777cb967a5 add M_PI definition back 2018-04-28 00:26:43 -04:00
jacob1
db8b32363e remove tpt-math.h includes 2018-04-28 00:09:14 -04:00
jacob1
29920c8999 remove trig tables, they are unused and alternatives are faster 2018-04-28 00:04:42 -04:00
jacob1
d56a4ee378 make RNG a singleton, update a few calls and start using between/chance functions 2018-04-28 00:01:08 -04:00
jacob1
f9211c2f90 msvc compile fix 2018-04-23 22:46:28 -04:00
jacob1
de757bc2c3 made sure the windows version actually compiled 2018-04-23 22:32:03 -04:00
jacob1
601af1feff fix compile warnings, remove ugly PRTI/PRTO hack 2018-04-23 21:57:30 -04:00
Saveliy Skresanov
1c600249dc Remove a useless header. 2018-04-23 22:55:22 +07:00
Saveliy Skresanov
7afd82469e Use vector math in cyclone. 2018-04-23 22:48:10 +07:00
Saveliy Skresanov
cda029ff42 Use xoroshiro128+ random generator (everywhere besides BSON code). 2018-04-23 22:47:44 +07:00
jacob1
fbe81baca3 make Platform::ExecutableName return std::string (fixes minor memory leak)
update code is untested
2018-04-21 19:28:47 -04:00
Vgr E. Barry
90cfd1f70f Add inverted mode for TSNS and PSNS with .tmp == 2 2018-04-21 12:36:25 -04:00
jacob1
9211fab9f7 fix memory leak when saving stamps 2018-04-21 00:34:49 -04:00
jacob1
6731fa16b7 fix memory leaks when loading stamps ('l') and viewing saves 2018-04-21 00:15:15 -04:00
moonheart08
22b9bf4953 Adds RAYT (#540) 2018-04-10 21:32:19 -04:00
krawthekrow
64b7fcf334 fix single-particle PSTN bug 2018-04-08 20:10:51 -04:00
jacob1
70b02301ff fix compile error 2018-04-05 23:40:21 -04:00
jacob1
11b2f58db7 define M_PI in tpt-math.h 2018-04-05 23:31:28 -04:00
jacob1
34e73e4d7d remove asin/acos because they aren't necessary and don't work 2018-04-05 23:07:29 -04:00
jombo23
564a9dfc48 Add ultrafast semi-accurate trig functions and update Cylone to use them. (#547) 2018-04-05 23:04:57 -04:00
jacob1
7f985b47dc whitespace fixes + description change 2018-04-03 22:33:25 -04:00
moonheart08
3f99a59cb2 Adds STASIS wall. (#556) 2018-04-03 22:24:38 -04:00
wolfy1339
27f6a6b297 Strip whitespace from files in repo (#553) 2018-04-03 21:46:01 -04:00
wolfy1339
31fcb1bfaa Fix some errors produced by clang 2018-04-03 21:02:23 -04:00
jacob1
f812d7194b fix obscure division by 0 issue that only QuanTech would ever be affected by 2018-04-02 23:06:51 -04:00
jacob1
9f1d676391 Version 93.3 build 340 2018-04-01 17:19:03 -04:00
jacob1
07868ba2b7 Adjust SOAP links to non-SOAP particles properly when saving 2018-04-01 16:04:38 -04:00
jacob1
dfc5bd1d85 don't restrict containing certain new 93.0 features to 93.0 (so renderer can render them) 2018-04-01 15:28:54 -04:00
jacob1
67bc12de97 Fix issue where TPT was bought by EA 2018-04-01 15:26:13 -04:00
jacob1
71c96dd060 fix salt issue, for future reference 2018-04-01 15:06:33 -04:00
jacob1
9c5876f0b4 fix crash when can't purchase back, fix debug info in tampering message 2018-03-31 23:38:53 -04:00
jacob1
fdd6618896 fix buying erase tool in a pack, increase price of erase tool to 5000 2018-03-31 23:09:11 -04:00
jacob1
17c79f1661 fix bug where purchases always succeeded 2018-03-31 22:44:15 -04:00
jacob1
40d2850ff7 TPT has now gone free to play! Many elements are unlocked by default, but by using Powdercoins you can unlock new elements and promote your saves to front page! 2018-03-31 22:40:23 -04:00
jacob1
1f97199df6 fix solar panels sometimes not working 2018-03-25 18:34:25 -04:00
jacob1
1b658a3022 version 93.1 build 338 2018-03-25 12:29:16 -04:00
jacob1
b89ea68acd remove fromNewerVersion TODOs in GameSave.cpp 2018-03-24 14:38:26 -04:00
jacob1
fac996722b save stickmen rocket boots / fan flag in saves 2018-03-24 13:09:02 -04:00
jacob1
3bd35ce83f fix STKM + fan wall 2018-03-21 23:58:27 -04:00
jacob1
126acb7db5 change TSNS/HSWC/PSNS/PUMP .tmp to 0 in older saves 2018-03-18 19:59:48 -04:00
jacob1
f76d10df4d remove unused cpu check 2018-03-18 10:25:52 -04:00
jacob1
f45d0d1683 save palette now works for elements stored in ctype/tmp/tmp2 2018-03-17 21:46:35 -04:00
jacob1
96de9bbc36 don't use _update in update filename because of windows "feature" 2018-03-13 22:13:15 -04:00
jacob1
01741b05ce betas should still look for stable updates 2018-03-12 23:32:37 -04:00
jacob1
6d515c3009 remove debug thing, blame jacob1 2018-03-11 23:03:11 -04:00
jacob1
138410c41f blame simon
render compatibility stuff, allow renderer to open saves with elements it doesn't understand, because something is better than nothing
2018-03-11 23:02:12 -04:00
jacob1
3b95ff7983 93.0 save loading fix (todo: remove this stuff on 93.0 release) 2018-03-10 20:30:20 -05:00
jacob1
c861d69f9c add RESTRICT_VERSION check to digitation stuff, update readme date 2018-03-10 17:03:44 -05:00
jacob1
f2ac8a951c add ctrl+q shortcut to exit the game from anywhere 2018-03-10 16:01:14 -05:00
jacob1
ab4cdf2aa1 minor efficiency fix 2018-03-10 15:43:25 -05:00
jacob1
ad5b12fe6d part_change_type now returns true if it killed the particle 2018-03-10 15:39:39 -05:00
jacob1
b07e8d93d5 When finding particles, show how many were found in HUD 2018-03-07 23:19:55 -05:00
jacob1
5a61e6a619 a bunch of fixes to heat/pressure digitation
add limits so that you don't get impossible temp or pressures
only undigitize from FILT 1 pixel away
ensure everything only works through FILT, not sometimes PHOT or BRAY
HSWC with .tmp of 1 no longer conducts heat to FILT
2018-03-07 23:03:10 -05:00
jacob1
5eb0d1bd27 add hidden settings for not including/loading pressure in saves, closes #524
If I ever redo the options menu, there will be an actual checkbox for these
2018-03-06 21:01:49 -05:00
Novocain1
68efe49a5b Digitization (PSNS) and Application of Digitized Pressure (PUMP) (#532) 2018-03-03 23:04:51 -05:00
jacob1
c3ff761288 my editor decided to use spaces here for some reason 2018-03-03 22:07:36 -05:00
jacob1
bd7f9fa247 prevent people from stealing the 404 save 2018-03-03 22:05:08 -05:00
jacob1
5dd01e9976 I guess if we're trying to save instructions, we should do it like this 2018-03-03 21:36:11 -05:00
jacob1
d666559481 more accurate O2 fusion calculation, fixes #505
seemed to only be 3% slower in my tests with a full screen of heated pressurized O2
2018-03-03 21:15:28 -05:00
jacob1
2adae64041 fix ambient heat going to high negative values with high life LIGH, fixes #536 2018-03-03 20:58:39 -05:00
jacob1
f9b5c6bb1a use std::string instead of c strings for sign stuff, fixes #545 2018-03-03 20:44:03 -05:00
jacob1
5f4c5fb118 Fix &255 usage 2018-02-28 22:01:49 -05:00
krawthekrow
d7e26e8c03 fix free particle list messing up during particle debug 2018-02-24 18:24:07 -05:00
jacob1
a0a7281cc7 add TOOL_CYCL lua constant, change ID to 7 2018-02-14 22:19:31 -05:00
jombo23
0a63e1afb5 Add Cyclone Tool and Brush X/Y Arguments (#542) 2018-02-13 00:08:00 -05:00
Nikolay Marchuk
30b8078ad2 fix undoing changes in gravity mask 2018-02-13 00:06:55 -05:00
jacob1
257fe6f61b
Fix debug print in PLNT causing lag 2018-02-12 00:09:35 -05:00
jacob1
1237b49e37 allow compiling renderer with --msvc in scons 2018-02-11 14:47:36 -05:00
jacob1
0d1c3f5f49 ctrl+p shortcut to select prop tool 2018-02-03 17:39:23 -05:00
jacob1
3d66b7e263 remove hardcoded op 2018-02-03 17:38:47 -05:00
jacob1
25ef5b19fd fix STOR to PIPE 2018-01-07 20:27:54 -05:00
jacob1
1405c10046 fix STOR->PRTI transfer 2018-01-03 00:13:06 -05:00
jacob1
5012c3cfe6 fix build error when UPDATESERVER is defined 2018-01-01 12:12:43 -05:00
jacob1
07988147b9 prevent compiling if pmap doesn't have enough space, make lua elements favor 1 byte IDs 2018-01-01 00:31:44 -05:00
jacob1
b5159ab74e Changes to save format and PIPE
Update save format to optionally store type as two bits
PIPE now stores element in ctype
Disallow uploading saves using two bytes in type or other fields
update save format to store pmapbits and automatically convert data
2017-12-31 23:55:41 -05:00
jacob1
0c8c4de125 convert all of the rest of the things except GameSave.cpp and pipe/ray elements
also add sim.PMAPBITS and sim.PMAPMASK constants
2017-12-29 21:01:28 -05:00
jacob1
20e1abd840 update Simulation.cpp to use new macros 2017-12-29 17:34:19 -05:00
jacob1
da45e0e469 last src/simulation/element changes
PSTN, CRAY, and possibly some others will need to be modified to account for this without breaking saves. The save format will need to include PMAPBITS and adjust properly
2017-12-28 21:27:01 -05:00
jacob1
208cf14ce8 convert r&0xFF in src/simulation/elements 2017-12-28 13:00:23 -05:00
jacob1
4b1c929f58 use macros for the rest of the necessary >>8/<<8 in src/simulation/elements 2017-12-28 12:18:44 -05:00
jacob1
ac24810da5 add some defines to reduce usages of hardcoded r>>8 2017-12-28 12:03:26 -05:00
jacob1
fbf7210814 fix division by 0 in PHOT+C5 interaction, shoot the photon off at 90 degrees instead 2017-12-27 18:11:33 -05:00
jacob1
c31267b06f use unique_ptr in GameSave::readPsv, rename variables 2017-12-27 16:57:32 -05:00
jacob1
ae9b416f2f use c++11 (unique_ptr) in GameSave::readOPS 2017-12-27 13:00:48 -05:00
jacob1
70bbb16f37 sort local saves alphabetically, accounting for uppercase/lowercase 2017-12-27 11:50:28 -05:00
jacob1
887d60628d use c++11, use unique_ptr in GameSave::SerializeOPS 2017-12-27 11:50:09 -05:00
jacob1
23c68b1db1 fix issue loading manually created SOAP bubbles in some saves 2017-12-19 22:15:32 -05:00
jacob1
553eaf9524 fix loading saves with stacked particles 2017-12-19 21:15:19 -05:00
krawthekrow
68af269b76 sort local saves alphabetically 2017-12-19 21:15:06 -05:00
jacob1
e956e7c5fd fix issue where stamps would stack if you loaded multiple in one frame
sim.loadStamp in the console, or a lua script
2017-12-03 19:30:21 -05:00
jacob1
63c13bda89 fix use of deprecated luaL_getn function 2017-11-23 22:34:22 -05:00
jacob1
c2064b48c3 fix comment 2017-11-23 22:23:56 -05:00
jacob1
3529f6f468 fix ambient heat not loading in ctrl+c paste, fix pressure resetting to 0 when loading saves without pressure 2017-11-23 22:09:33 -05:00
jacob1
78fb27b354 fix SOAP links not saving/loading properly 2017-11-23 21:53:21 -05:00
jacob1
1971efe8b8 include tpt-minmax in the rest of the files it is needed in 2017-11-23 16:21:19 -05:00
jacob1
c9d9f5b71d more include fixes (CoordStack.h) 2017-11-23 16:06:09 -05:00
jacob1
2ccbec1d05 include tpt-minmax header in Simulation 2017-11-23 15:12:47 -05:00
jacob1
a674dc93e2 include tpt-minmax header in Renderer 2017-11-23 15:01:04 -05:00
LBPHacker
a12785cd5d Use a dropdown instead of a textbox
Textboxes don't mix well with error messages fired from from keypress handlers.
2017-11-23 12:24:34 -05:00
LBPHacker
be29fad7e8 Add support for window scale modes other than 1 and 2
Window scale can now be anything between 1 and 10 (suggest something other than 10 for maximum scale?). This required a number of subtle changes:

 * made blit2 (PowderToySDL.cpp) handle scale modes correctly (it really only handled scale:2 correctly before)
 * replaced `bool scale` with `int scale` everywhere in the options view/model/controller
 * replaced the _large screen_ checkbox with a _window scale_ textbox in the options view

The new scale is only checked and applied when the options view is closed. There's no reason to not apply it live, I just chose not to.

This commit does *not* make TPT able to figure out an optimal scale mode at first run. It still suggests using scale:2 if it makes sense though.

I had doubts about using a second loop in blit2 but it doesn't seem to be an issue. If there's a more optimal way of going about what blit2 does, I haven't figured it out.

(Sublime seems to have eaten a few trailing spaces, hence there are a few seemingly identical pairs of lines in the diff.)
2017-11-23 12:24:34 -05:00
krawthekrow
62d57cc1de fix indentation 2017-11-23 00:42:42 -05:00
Novocain1
db6fb5461d Adds ways to digitize temperature and ways to turn that digitization to an actual temperature. (#525) 2017-11-23 00:28:12 -05:00
wolfy1339
255ca13fab Remove unused code in src/Config.h (Fixes #516)
- Remove commented out code as it was not used anywhere in the code
2017-11-23 00:18:44 -05:00
wolfy1339
87f3ada7b0 Remove stuff from Config.h that doesn't belong 2017-11-23 00:12:48 -05:00
jacob1
6cfaed0e1b fix compile warnings, fix tooltips fading in too slowly 2017-11-23 00:10:15 -05:00
RobertBScott
4c3b4dab47 Implemented tooltip element descriptor display in element search. 2017-11-23 00:10:15 -05:00
jacob1
b5bc4ad3d2 potential crash on exit fix (can't tell if it actually fixes it or if it is related) 2017-11-18 17:11:46 -05:00
jacob1
1b19e042b2 fix crash when using tpt.start_getPartIndex 2017-11-04 13:22:22 -04:00
Matthew Moore
7d4010d2df Fix Newtonian Gravity Tooltip 2017-10-24 22:30:39 -04:00
jacob1
3c2de70564 fix compilation / ensure this check only runs when compiling on windows 2017-10-13 00:03:35 -04:00
wolfy1339
536b20b164 Fix pthread deprecation warning, fixes #502 2017-10-12 23:33:05 -04:00
QuanTech0
c52c2d7a6f Expanding vocabulary.
:)
2017-10-07 17:32:28 -04:00
jacob1
97c4123533 translate wall grids when shifting stamps by more than 4 pixels 2017-10-04 21:07:00 -04:00
jacob1
4ff0a9f52c only expand stamp in the direction you are moving 2017-10-04 21:07:00 -04:00
krawthekrow
ca542b1ef1 autoexpand save when particles are translated out of boundaries 2017-10-04 21:07:00 -04:00
jacob1
17c9340434 CRAY wall checking fix 2017-10-02 21:38:15 -04:00
jacob1
77b6f44c74 fix issue with molten STKM that could break the simulation and cause crashes 2017-09-28 23:12:16 -04:00
jacob1
631570cbd0 mac luajit fix, version 92.5.336 2017-09-20 20:42:24 -04:00
jacob1
834e966842 Version 92.2.333 2017-09-04 23:08:52 -04:00
jacob1
6bd068713e recording improvements
remove 'r' record shortcut
add tpt.record function. Still gives the user a confirm prompt
recordings now go into recordings/<timestamp>/, where timestamp is the time the recording was started. <timestamp> is returned by the tpt.record function. Each new recording starts the filenames over at 0 again.

you probably still need a lua script to use the recording feature, this should make it easier for those
2017-09-04 14:06:28 -04:00
jacob1
e4089a276a fix illuminati symbols appearing when rescanning stamps 2017-09-04 12:51:28 -04:00
QuanTech0
07e879e74c fix buffer overflow in opt_meth_setoption (#496) 2017-09-03 19:48:28 -04:00
jacob1
c34b54d974 add sim.takeSnapshot lua function 2017-08-31 23:48:00 -04:00
MrZacbot
be786d85a7 Added a bounds check for BOMB reading pmap (#497) 2017-08-29 20:44:14 -04:00
jacob1
1ceae1ba43 fix interface api in lua5.2 2017-08-20 18:13:46 -04:00
LBPHacker
ce58c4aadf Fix Simulation::Restore decrementing life values
Simulation::Restore used to call Simulation::RecalcFreeParticles. The problem with that was that RecalcFreeParticles does more than just what its name suggests: it also decrements life values. Restore shouldn't do that. The solution is to tie decrementing life values to an argument in RecalcFreeParticles. This is also makes to code more future-proof as it lets everyone know that they have to keep their eyes peeled when invoking RecalcFreeParticles.
2017-08-17 00:23:37 -04:00
jacob1
eb1bcf1b95 Revert "Temporarily use IP addresses instead of dns (untested)" fa322902bf 2017-08-11 20:54:36 -04:00
jacob1
fa322902bf Temporarily use IP addresses instead of dns (untested) 2017-08-07 12:51:12 -04:00
jacob1
3045125a88 Version 92.1.332 2017-08-06 21:56:58 -04:00
jacob1
1dd4b00ec6 minor gravity transition fix 2017-08-06 19:41:04 -04:00
jacob1
55b31d6f0e my mod uses -1 for this 2017-08-05 21:47:39 -04:00
jacob1
6fca44fd70 fix newtonian gravity state transitions flashing 2017-08-05 17:53:41 -04:00
jacob1
fd91fa4438 'enter' closes SaveIDMessage interface after uploading a save 2017-08-03 23:27:58 -04:00
jacob1
26f70331de fix debug thing breaking pressure display in HUD, fixes #494 2017-08-03 23:12:03 -04:00
jacob1
6931f35520 hold shift when saving or loading stamps to not save / load pressure, closes #491 2017-08-03 00:13:06 -04:00
jacob1
99c568f136 ensure air doesn't "leak" out of TTAN containers when loading stamps and saves 2017-08-02 23:49:51 -04:00
jacob1
ac489c9295 hide .tmp in HUD for RFRG and RFGL 2017-07-29 22:54:39 -04:00
jacob1
7e9124033b fix RFRG description typo (use more common spelling) 2017-07-29 22:49:40 -04:00
jacob1
c4e1f49618 fix BOMB explosion - wasn't creating circle EMBR, and too much velocity EMBR 2017-07-29 22:47:07 -04:00
jacob1
8fe3ca0f5c don't use std::pow here 2017-07-29 11:26:53 -04:00
jacob1
2a829c2394 fix ctrl+f shortcut not working with particle debugging enabled 2017-07-29 00:32:22 -04:00
jacob1
a278892267 make XCNTR / YCNTR not hardcoded
Alexwall request
2017-07-29 00:15:09 -04:00
jacob1
b38b2047e6 some changes to sign handling (attempt to fix crash that I can't reproduce) 2017-07-28 21:19:06 -04:00
jacob1
adb39b91a9 attempt to reduce "script is not responding" when debugging (valgrind / breakpoints) 2017-07-28 20:32:46 -04:00
jacob1
b02a72a77b add length limit to authors on saving/loading, fix type issue causing mass duplication
When making a local save, then stamping and loading the stamp (without doing anything else in between), issues with the code would cause the unsigned int in the json to turn into a normal int. It would then think the authors data from the stamp was from something else and append it. For users that do an excessive amount of stamping, this causes duplication in the authors links that shouldn't have ever happened.
2017-07-28 20:00:19 -04:00
jacob1
cbad202ac2 fix brush when CELL is changed to 1 2017-07-28 19:40:50 -04:00
jacob1
8064d3b467 remove useless debug print in !set 2017-07-25 20:11:57 -04:00
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
8c7729de85 "failed to x" messages in save browser are no longer arbitrarily yellow 2017-07-23 23:20:43 -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
1cfd9d8fc7 only display updates based on build number, not version number 2017-07-23 16:41:38 -04:00
jacob1
aad8eba5df Version 92.0
also update README, and make ctrl+a moderator only shortcut
2017-07-23 10:58:52 -04:00
jacob1
ddce20da5b authors clipboard fix
MergeStampAuthorInfo prevents some duplication now, don't need this
2017-07-16 21:33:49 -04:00
jacob1
971e405462 don't add null stuff when loading old stamps without author info 2017-07-16 15:52:18 -04:00
jacob1
ad5a2a0972 tpt.parts: only prevent writing to dead particles, not reading 2017-07-16 11:43:50 -04:00
jacob1
b8ce522779 sim.signs.delete() api function 2017-07-16 10:42:53 -04:00
jacob1
6d141b0722 add new PhotonReflectWavelengths property, add reflection color for POLO 2017-07-16 00:07:32 -04:00
jacob1
08ba035a53 fix nesting checks 2017-07-15 16:27:11 -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
f3a7d966d2 potential fix in sim.partCreate, also 2017-07-13 20:55:03 -04:00
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
8e5b0c760e Add logging inside saves which remembers which other saves material was taken from
The logging is saved inside the bson data in all online saves, local saves, stamps, and clipboard pieces. It is loaded back when reloading each of those.

See #474 for the format of the data. It is the same format for the bson data. Note that "links" is an array of objects. It can be recursive.

There is some effort to not duplicate information, we don't care if you loaded a stamp 10 times or if you are using the clipboard in your own save. Extra information is mostly not saved for your own stuff, only when you take material from other saves.

Press ctrl+a in debug builds to show what info it is currently saving in Client. Also enabled in snapshots for now.

There is one unrelated change in here, which fixes a crash pointed out by QuanTech. It was also save related and it was too close to the other changes to separate it into another commit. It fixes a crash when saving signs with invalid unicode. the BSON library doesn't like this, it was returning an error but we ignored it, which caused a crash. It now notices those errors. I also had to update several Serialize calls to check if it actually returned save data, or else it then would have started crashing there instead.
Also some debug prints were removed
2017-07-13 00:19:35 -04:00
jacob1
be6ac1d91e workaround for incorrect 404 save 2017-07-01 21:38:57 -04:00
jacob1
057435baa6 Differentiate between created date / updated date in save preview
still only shows most recent date, this just changes the text
2017-06-30 21:21:09 -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
jacob1
c1e91260eb fix deco colors being 1 R/G/B value less than they should be
The proper way would be to divide by 255, but that is slower than >>8. This is a better approximation (or perhaps equivalent?)
2017-06-17 21:02:52 -04:00
iczero
42b8f52611 Add type for POLO, closes #458 2017-06-17 20:34:57 -04:00
jacob1
714ee8ff65 clear redoHistory memory on exit 2017-06-14 00:16:44 -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
d8edb3c2e0 make sure STKM / other particle graphics aren't drawn over the menus 2017-06-13 10:00:35 -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
d4a0ff9ac8 draw_image can now draw images with x<0, fixes #433
this isn't used at all in the source
2017-06-11 22:01:11 -04:00
jacob1
0ea5c1d0e0 Fix #438
I didn't actually notice any difference with this change
2017-06-11 21:26:42 -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
LBPHacker
2c0468ef2e Sign justification is now called pointer alignment 2017-06-09 23:58:06 -04:00
cppxor2arr
12d2af7925 Removed unnecessary CleanString() function (#443)
Two `CleanString()` functions with the only differing thing the first parameter (`const char*` vs `std::string`); removed the one with `const char*` since `std::string` can be constructed with `const char*`.
2017-06-09 23:57:12 -04:00
jacob1
3d9d57e0ff don't allow loging in using email as username
(actually, just don't allow @ in usernames)
2017-06-09 23:54:43 -04:00
jacob1
25b3244d6c add warning messages when certain words are found in comments 2017-06-09 22:19:54 -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
572e432045 update snapshot save restriction code 2017-06-04 18:10:07 -04:00
jacob1
35ce9570d6 make Mrprocom's name blue 2017-06-04 17:48:31 -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
f54189a97f fix PHOT/PLSM not following the correct heat scale, fixes #336
Still many issues if you manually add on other effects to heat mode, but at least now the default graphics are fine
2017-05-09 22:43:53 -04:00
jacob1
ec417095b9 add sim.TOOL_MIX, fixes #414 2017-05-09 21:59:15 -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
0f40db4ef9 proper ctrl+backspace support 2017-05-08 23:45:18 -04:00
jacob1
abf60508cd fix ambient heat being reset when creating saves 2017-05-06 23:57:27 -04:00
LBPHacker
e1d8e814a5 Restrict type check to type field 2017-05-06 20:45:50 -04:00
LBPHacker
e15bfac60f Moving conditional branches around 2017-05-06 20:45:50 -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
8d492ef549 meant to move those functions into GameSave class 2017-04-25 00:05:15 -04:00
jacob1
5ce60b5f5f clean up massive repeated code in GameSave.cpp 2017-04-24 23:59:47 -04:00
jacob1
c98f63bd89 save ambient heat in saves, if it is enabled 2017-04-24 22:29:45 -04:00
jacob1
184777ed12 GameSave.cpp 2D array cleanup 2017-04-23 22:44:31 -04:00
jacob1
ddd326eafd fix LSNS 2017-04-23 12:51:40 -04:00
jacob1
6d6a615a37 msvc min/max fixes 2017-04-23 12:30:39 -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
0dd1cbf050 Add C5 to phot HUD list, fixes #401 2017-04-21 20:32:12 -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
LBPHacker
3fbfb83b0e Fix cache value from Lua graphics functions being ignored 2017-04-17 23:46:03 -04:00
jacob1
e712a8dbec make last 3 arguments to sim.brush optional, for convenience 2017-04-17 23:28:12 -04:00
LBPHacker
e9d80fe52a sizeof(unsigned char) 2017-04-17 23:28:12 -04:00
LBPHacker
5cf3fa3f5b More parameters for sim.brush 2017-04-17 23:28:12 -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
jacob1
1af4fa912f fix debug portal lines to the highest ID particle not working, fixes #393 2017-04-08 09:54:45 -04:00
Me4502
bda17dd62e Fixed favorites being able to be added multiple times. 2017-04-08 09:51:50 -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
LBPHacker
becd92bfc2 Fix downvote button not being reset when opening a local save 2017-03-19 23:16:39 -04:00
Mark Theng
1c12d1ec16 Take history snapshot before setting save (#358) 2017-03-19 23:15:08 -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
287d5f9534 minor text fixes 2017-03-05 10:56:11 -05:00
jacob1
83657e8773 disable experimental elements in mods, intro text fix for mods 2017-03-04 23:54:03 -05:00
jacob1
cd448a5747 fix Misc.cpp file_load (this function isn't used anywhere) 2017-02-27 22:28:03 -05:00
jacob1
d5347b0906 Fix test error 2017-02-26 14:02:38 -05:00
jacob1
b01e7a6a36 put #ifdef around denormal functions, they only exist when using SSE/SSE3 2017-02-20 19:15:41 -05:00
jacob1
ca792f12b5 misc compiler warning fixes (multiple compilers) 2017-02-20 19:14:50 -05:00
Issue tracking bot
d9115fc3fe Fix -Werror=misleading-indentation (#369) 2017-02-20 18:51:10 -05:00
jacob1
ac8c01ae57 ensure floating point denormals aren't used, they can massively lag the air sim 2017-02-19 19:29:41 -05:00
jacob1
08a7dfebea move undohistorylimit config pref, change default to 5 2017-02-18 23:58:14 -05:00
jacob1
61e19a3237 fix crash when undoing if there were no snapshots 2017-02-18 23:41:52 -05:00
jacob1
51eeaf218d fix crash when doing Textbox.new() 2017-02-13 17:43:48 -05:00
jacob1
6040ccd27e ugly fix for two empty snapshots being created on startup 2017-02-09 23:08:44 -05:00
jacob1
787939db3d add ctrl+shift+z alternate shortcut for redo 2017-02-09 22:57:31 -05:00
jacob1
8f4e3a56bd reduce ctrl+z snapshot memory usage 2017-02-09 22:55:05 -05:00
jacob1
a1431b6d2b Fix memory leak 2016-11-14 10:19:49 -05:00
jacob1
389159728c Configurable undo history
Note: Each undo adds 16.7 MB of RAM usage, max is 200 (3.4GB), but don't set it to this
2016-11-14 10:03:09 -05:00
jacob1
25a2d9b5b5 some modifications to ctrl+z/ctrl+y
allows infinite undoing / redoing, improvements when history limit is greater than one
2016-11-14 10:03:09 -05:00
krawthekrow
95d2014724 allow redo with Ctrl-Y 2016-11-14 10:03:08 -05:00
krawthekrow
63b2227802 add ctype-based filt shift modes (#351) 2016-11-07 18:06:43 -05:00
Tamás Bálint Misius
57f5d0f84f Add sim.brush (#350) 2016-11-07 18:00:34 -05:00
Mark Theng
3a3254f38b fix debug zeroth particle (#352) 2016-11-07 17:43:20 -05:00
krawthekrow
477d2be92c always calculate tool button offsets directly from mouse position 2016-11-07 17:39:13 -05:00
krawthekrow
f5ede49362 combine GameView DoMouseMove into OnMouseMove 2016-11-07 17:39:13 -05:00
jacob1
c1fad5ebf9 linux compiling fix 2016-10-14 09:30:29 -04:00
jacob1
9e33906858 VS 2015 compiling fixes
note, wiki guide still doesn't work unless you also have vs2013 installed
2016-10-13 22:32:52 -04:00
jacob1
5370f07bf0 Don't control STKM when placing stamps, fixes #320 2016-10-13 20:29:10 -04: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
Mark Theng
8e0708daad fix particle debug when unpaused (#343) 2016-09-30 23:54:03 -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
797f9357ff fix float detection in console, fixes stuff like !set type all 0.8C 2016-09-10 12:46:15 -04:00
jacob1
86fef64309 Fix potential build error, fixes #333 2016-09-04 21:53:41 -04:00
jacob1
fc451e5385 don't allow publishing E182 saves 2016-09-04 21:49:24 -04:00
jacob1
9277839f11 enable E182 in snapshots 2016-09-04 21:47:45 -04:00
jacob1
8a130aaab4 add log message when particle debugging is advanced due to unpause 2016-09-04 21:42:48 -04:00
Mark Theng
8de12d616e fix resume simulation/reload in the middle of subframe debugging (#330) 2016-09-04 21:33:33 -04:00
jacob1
2df333c99f TPT is now shown in desktop menus when installing on linux
uses powder-48.png as icon + 3rd .desktop entry
2016-09-04 21:27:55 -04:00
jacob1
b405674d3d minor updates to .desktop files 2016-09-04 20:17:35 -04:00
SopaXorzTaker
968116bcad Typo in BRMT's description (#319) 2016-09-04 19:47:10 -04:00
jacob1
a7d108593c convert spaces in BSON lib to tabs 2016-08-14 18:23:45 -04:00
jacob1
89e7238f3b fix invalid read in BSON.cpp when loading some kinds of invalid saves 2016-08-14 18:18:59 -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
86b83798f7 More graceful exit when X11 is not available on Linux 2016-08-07 13:17:17 +01:00
Simon Robertshaw
30c7c9107d Experimental element - extra high thermal conductivity 2016-08-06 17:35:06 +01:00
jacob1
9a855cc8cb fix some commas in HTTP.cpp that should be semicolons 2016-08-02 08:31:33 -04:00
jacob1
07e06efbe0 New version: 91.5 (330) 2016-07-26 22:21:28 -04:00
jacob1
8cfe2af6ca I think the word "for" made more sense before 2016-07-26 21:12:18 -04:00
cxi
e313e4bf3d Add reporting because of tags to report dialog (#316) 2016-07-26 21:10:40 -04:00
jacob1
59ac872d5f restrict saves using newer features of elements 2016-07-26 19:33:04 -04:00
jacob1
647ad902fa take ctrl+z snapshot before placing a stamp, not after 2016-07-26 19:08:57 -04: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
jacob1
adb200d3f7 remove commented out code, heart icon shows even when element is selected 2016-07-24 22:43:54 -04:00
jacob1
8efe8853de allow favoriting / ctrl+alt selecting elements in element search ui 2016-07-24 22:31:31 -04:00
jacob1
ae247a2d2b Fix uglyness with how Favorites menu was done 2016-07-24 22:30:56 -04:00
jacob1
fe4653c30e Fix crash when BuildMenus() is run with elements in the favorites menu 2016-07-24 17:30:00 -04:00
jacob1
9cae1f0fe7 HTTP.cpp: parsing headers shouldn't be case sensitive 2016-07-24 16:28:20 -04:00
jacksonmj
f6615deed2 Fix uninitialised variable (sim->player(2).rocketBoots) 2016-07-24 20:09:28 +01:00
jacob1
70b7fee8b7 New version: 91.4 (build 329) 2016-07-24 12:41:50 -04:00
jacob1
f0f104097d finish / fix ecb08952e5
must have accidentally reverted Keys.h halfway through making it?
2016-07-23 19:15:07 -04:00
jacob1
21e0c4079c Fix LIFE tool sampling 2016-07-23 15:07:49 -04:00
jacob1
0c95c33da0 reorder deco tool IDs (to match my mod for tptmp) 2016-07-23 12:34:11 -04:00
jacob1
2b15024818 allow using C/F for temperature in PROP tool 2016-07-23 12:15:49 -04:00
jacob1
8fe78eacd8 add help text to favorite's menu tooltip when the list is empty 2016-07-23 11:58:20 -04:00
jacob1
ecb08952e5 Add SDL_keysym.h, Use official SDL constants 2016-07-19 22:42:10 -04:00
jacob1
95fde9d699 MIX won't mix together elements with different states now 2016-07-18 22:01:44 -04:00
wolfy1339
b65e94900e Use C++ includes (#308)
Replaces stdio.h, stdlib.h, string.h, math.h, time.h, limits.h and othters with their C++ equivalents.
2016-07-17 23:37:24 -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
b8cdf4ae2f 3 dots doesn't need to be a separate icon (running low on icon space) 2016-07-17 17:13:52 -04:00
SopaXorzTaker
17398dd201 RPEL's ctype sets the element it repels 2016-07-17 16:47:43 -04:00
Simon Robertshaw
85bdeae694 Merge branch 'master' of https://github.com/simtr/The-Powder-Toy 2016-07-17 21:34:29 +01:00
Simon Robertshaw
3b106b7c22 Crash fix for wall drawing when OpenGL is enabled. 2016-07-17 21:33:54 +01:00
cxi1
0c972469b8 Improve consistency of error messages, use InformationMessage instead of ErrorMessage 2016-07-17 16:27:13 -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
jacob1
bc1dd6748c Fix double screen mode fail 2016-07-13 00:15:57 -04: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
Simon Robertshaw
5b525852b4 More OS X compatibility fixes with OpenGL 2016-07-12 22:34:31 +01:00
Simon Robertshaw
6cfaeb9c5c OpenGL UI fixes for on OS X/all platforms
- Reinitialise textures after SDL_SetVideoMode
 - Fix header includes and remove GLEW setup on OSX
2016-07-12 21:31:29 +01:00
Simon Robertshaw
b66ca770da Performance optimisation for blitting loops and depth3d 2016-07-12 19:48:58 +01:00
jacob1
8146598967 fix blank screen when hitting "Cancel" on double screen dialog 2016-07-10 17:38:19 -04:00
jacob1
a3865c8f49 remove debugging stuff 2016-07-09 19:07:03 -04:00
jacob1
16b93083d4 Changes to support starcatcher build server with updates
Cherry-picked from 3ddaec7b2a
3ddaec7b2a
3ddaec7b2a
3ddaec7b2a
3ddaec7b2a
3ddaec7b2a
2016-07-09 19:00:54 -04:00
jacob1
b75c8318e4 add tpt.num_menus and tpt.menu_enabled functions 2016-07-08 20:33:01 -04:00
jacob1
88097496af Allow hiding menusections
Cherry-picked from 75437c7d4c
2016-07-08 19:58:21 -04:00
jacob1
111468c672 Fix not being able to turn off FIND tool when a life element is selected 2016-07-08 19:41:55 -04:00
jacob1
e68dd74b68 less scary report message 2016-07-03 12:51:40 -04:00
jacob1
ecddfcbc0d don't reset edge mode when saving local saves 2016-06-30 08:16:53 -04:00
jacob1
dfdee7afeb delete UTF-8 BOMs 2016-06-25 12:16:40 -04:00
jacob1
4190946de5 fix warning+exit crash, fix menusection offset resetting when menus are rebuilt 2016-06-25 11:56:03 -04:00
Matthew Miller
083d488566 Added a favorites menu. (#298)
Added a favorites menu.
2016-06-25 11:55:18 -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
7e4924e7ab windows pthread_t is uncooperative, just check this instead 2016-06-11 13:08:27 -04:00
jacob1
5b5390f822 attempted error fix 2016-06-11 12:57:13 -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
0af4b54bc3 extra NULL check
It is undefined behavior what happens when you try to call pthread_join on a NULL thread (which will happen if you close the game before opening the save browser). Seems to be harmless, but make sure we don't do that just in case --jacob1
2016-06-11 10:46:59 -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
SopaXorzTaker
fbd75c6293 This effect is called "3D anaglyph" (#292) 2016-05-26 18:48:18 -04:00
jacob1
ce55c8e58b Fix --opengl-render option. Please NEVER use this option though 2016-05-14 09:44:49 -04:00
jacob1
63ac47a270 update .life properly when using particle debug shortcuts 2016-04-30 10:50:48 -04:00
jacob1
64f81000cd Fix typo 2016-04-27 00:00:28 -04:00
jacob1
a8427ef33a only use -Wno-unused-result on Linux, also actually fix the unused results that we could possibly care about
Fixes cross compilers, TODO: I don't think scons can check if a flag exists but might support adding a test for that, even if through hacky means, like CheckFramework
2016-04-26 23:55:14 -04:00
jacob1
6624550dc1 fix a ton of build server warnings (they were all the same) 2016-04-26 23:28:52 -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
jacob1
57be4ef498 'character' is always 0 in sdl keyup event, so just send 'key' instead to lua keyup events 2016-04-26 22:42:57 -04:00
jacob1
6b6bd67a9f extra debugging thing for visual studio
I think this prevents random "exited with code 3" errors, but I can't remember ...
2016-04-23 11:39:06 -04:00
jacob1
5cab8f45f2 Fix 'n' toggle also resetting air 2016-04-23 11:39:06 -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
1171c308e1 Fix warnings, fix crash when ctrl+click opening a save 2016-04-02 20:47:50 -04: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
21e3a50096 91.3.328 2016-04-02 00:44:38 -04:00
jacob1
623d9ca4b9 save double scale mode setting on exit 2016-04-02 00:39:51 -04:00
jacob1
51ff868935 use user-set edge mode when saving powder.pref, not the one from the open save 2016-04-02 00:25:05 -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
aa99258101 more cleanup so that 3D can stay a more permanent thing 2016-04-02 00:10:15 -04:00
jacob1
30e82851bc Fixes to 3D mode (mostly fixes it on OS X) 2016-04-01 22:06:21 -04:00
jacob1
4c066cd7a7 another blind compile fix 2016-03-31 22:50:03 -04:00
jacob1
0ebe2ed2b8 add newline to the end of tpt-thread.h because windows cross compiler really hates the lack of one 2016-03-31 22:38:47 -04:00
jacob1
0fbb3bb27f fix compile error with renderer 2016-03-31 22:38:28 -04:00
jacob1
33aad70294 Version 91.2.327 (hopefully updating works) 2016-03-31 22:10:18 -04:00
jacob1
46d096206f Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience 2016-03-31 22:08:04 -04:00
jacob1
535ade0ec4 InformationMessage expands like the other dialogs, "numeric" textboxes now allow negative numbers 2016-03-31 22:05:55 -04:00
jacob1
ad49bfbb82 ALL CAPS R COOL 2016-03-27 11:46:30 -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
49fac83995 New version: 91.1.325 2016-03-23 20:28:55 -04:00
jacob1
81c68c46b0 Check for beta updates even if not a beta
The site has been updated to not send beta update information unless user is enrolled in beta updates
2016-03-13 23:35:29 -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
1ef8b0c08b Fix progress disappearing on hover in the local save browser, fixes #287 2016-03-09 23:30:05 -05:00
jacob1
66aeb84354 disable HIGH_QUALITY_RESAMPLE when compiling debug builds for OS X
crashes my compiler ...
2016-03-07 21:01:33 -05:00
jacob1
16ee8711bb update version number to 91.0.324 2016-03-05 21:51:52 -05:00
jacob1
10262b87da remove PARTICLEDEBUG define and replace it with tpt.setdebug(0x8) to activate the key shortcuts 2016-02-24 22:06:43 -05:00
jacob1
983ed4eb53 use json page when publishing saves from save browser 2016-02-24 22:06:43 -05:00
jacob1
be170fe73d prevent errors being printed to stderr when opening saves
adding a hack onto a hack
2016-02-13 16:23:57 -05:00
jacob1
926f556bcc fix compile error 2016-01-31 22:59:29 -05:00
jacob1
36e8f6d900 show confirm dialog for double screen mode in case of false detections 2016-01-31 22:30:39 -05: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
28598a43be another compiler fix (include <stdexcept> manually) 2016-01-26 00:31:05 -05:00
jacob1
4e484ae2a4 compiler fixes, apparently using [] as intended is ambiguous ... 2016-01-26 00:24:14 -05:00
jacob1
ac03162cc2 remove cajun library 2016-01-25 23:53:00 -05:00
jacob1
855d735b50 replace the rest of the cajun references with jsoncpp 2016-01-25 23:52:46 -05:00
jacob1
df1a2243fd use jsoncpp for ParseServerReturn and startup check 2016-01-25 22:58:09 -05:00
jacob1
5c1cc0c0fb rewrite powder.pref handling to use jsoncpp instead of cajun
cajun is a hard to use library with many necessary features missing. It also has been causing the windows version, and probably the mac version, to randomly crash.

Other json stuff still uses cajun (TODO: remove)
2016-01-25 22:30:43 -05:00
jacob1
82dc5e1f71 don't save powder.pref in a .plist file on OS X
untested, but it didn't make sense how we were doing it anyway. Also, it was spelled wrong
2016-01-24 15:44:13 -05:00
jacob1
3cf5395697 make jacobot / boxmein have blue nicks in save comments (hack) 2016-01-16 11:39:04 -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
d3c44dbffa fix deco color being reset to 0x00000000 when loading a lua element 2016-01-10 22:48:45 -05:00
jacob1
7073c1bf9c remove unnecessary / broken if statements 2016-01-10 22:32:18 -05:00
jacob1
226a66a860 add ctrl+f shortcut to easily locate elements in red from my mod
doesn't support walls or better life finding because tools are much harder to work with here
2016-01-10 22:23:06 -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
c73d81b277 fix renderer trying to use SDL 2015-12-19 16:36:17 -05:00
jacob1
2725a32b8e Fix NTCT / PTCT / INWR triggering EMP blasts ... 2015-12-19 02:44:20 -05:00
jacob1
d92f356f8d probably fix compile error 2015-12-19 02:12:15 -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
37eb674d40 fix being unable to set floating point values in element.property
broken in e92bbac700
2015-12-18 18:21:04 -05: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
76aeef24a4 ctrl+a support in Labels 2015-12-18 00:33:40 -05:00
jacob1
762093371b fix crash from previous commit 2015-12-16 14:06:44 -05:00
jacob1
8d4e333986 Overwriting a local save now updates the reload button save, add message to confirm that local save was successful, fixes #274 2015-12-16 14:02:03 -05:00
jacob1
16e3532980 fix 'large screen' description 2015-12-15 02:27:55 -05:00
jacob1
f63c3072a4 fix crash when doing simulation = nil in the console 2015-12-11 12:05:00 -05:00
jacob1
6930d830bf shouldn't return an error in whatever case this is (reverted from commit ec99fcdf5d) 2015-12-02 11:25:24 -05:00
jacob1
ec99fcdf5d shouldn't return an error in whatever case this is 2015-12-01 01:15:30 -05:00
jacob1
5afb95dcf1 change shift+wind tool to not always act like alt was pressed 2015-11-30 19:19:50 -05:00
jacob1
9cab6959b6 fix flood fill delete on normal particles also deleting photons 2015-11-30 14:20:37 -05:00
jacob1
998f5a4cad fix infinite loop error message sometimes always coming up on startup 2015-11-29 01:59:36 -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
d1dcae5574 Only show wavelengths in HUD if there is at least one valid wavelength 2015-10-29 07:15:02 +00:00
jacob1
9a9f80fefa don't add extra newlines when downloading scripts via tpt.getscript 2015-10-23 00:18:41 -04:00
jacob1
dc679d7eb0 Add more elements to .tmp2 list, use local varibles instead of constantly accessing sample.particle.type 2015-10-22 21:39:12 -04:00
jacob1
46dc5da455 fullscreen only blocked on OS X when not using SDL 1.2.15 (untested) 2015-10-22 20:14:56 -04: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
jBot-42
6ee0bc4cda remove stor and pipe 2015-10-18 18:36:22 -07:00
jBot-42
cf615c323f Show Tmp2 in HUD for elements that use it 2015-10-17 18:18:19 -07:00
jacob1
7fcc056cb6 fix really fast particles moving through EHOLE 2015-10-15 00:26:57 -04:00
jacksonmj
bb455ea893 Add more breaks.
Fixes tmp values being set to 0 for CRAY.
2015-10-13 10:23:19 +01:00
jacob1
31b1e6aace only require version 91.0, will add note on snapshot page about possibly breaking 2015-10-12 21:52:26 -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
59377e49e5 fix 'Prev' button placement 2015-10-11 02:05:49 -04:00
jacob1
f435cf3881 fix edge mode not loading properly in saves, options menu uses edge mode from Simulation and not GameModel 2015-10-10 18:10:17 -04:00
jacob1
a8c141c144 show more specific error when catching json exceptions 2015-10-10 17:39:47 -04:00
jacob1
da53e7de78 fix error parsing json with \u 2015-10-10 17:37:36 -04:00
jacob1
3cc27a7c9b Reupload -> Re-upload (cracker64 complaint) 2015-10-10 01:22:39 -04:00
jacob1
66863b7578 update last tool and drawMode when clicking too, fixes some issues 2015-10-10 01:17:19 -04:00
jacob1
d4e3196070 fix wall brush displaying incorrectly when drawing boxes 2015-10-10 00:53:21 -04:00
jacob1
bff6dedd48 show cursor when drawing even when mouse is out of bounds 2015-10-10 00:34:27 -04:00
jacob1
286dd02dad Ignore "Unspecified Error" when searching for saves 2015-10-10 00:32:09 -04: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
63843c2bd7 add new minimumVersion setting in saves, can restrict the smallest version of TPT that is able to open the save. Uses major/minor version for this
Also add RESTRICTVERSION macro to help when adding restrictions later
Also show errors when opening broken stamps now too
2015-10-02 21:25:15 -04:00
jacksonmj
1bd861719f Turn "save from newer version" back into an error, until an improved method of checking compatibility can be devised 2015-10-02 21:10:06 +01:00
jacob1
cd3d54d3bd use a ScrollPanel in ConfirmPrompt (supports longer changelogs) 2015-10-01 23:32:17 -04:00
jacob1
91cf20e521 prevent tool buttons from being longer than 7 characters
for i=1,250 do elements.property(i,"Name",(("ALL BASE BELONG TO US "):rep(20)..(" "):rep(120)..string.char(10)):rep(70)) end

Could prevent it from lua, but too much work for no reason. Still allows SPWN2 button to work.
2015-10-01 22:55:32 -04:00
jacob1
55d20f1bb2 Adding a comment updates the comment total / number of pages 2015-10-01 22:26:23 -04:00
jacob1
b184c78cff "Save from a newer version" is now just a warning (OPS format never changes)
Also, actual save errors now prevent you from clicking "Open" (which allowed you to vote and do other stuff even though the save was never loaded)
2015-10-01 21:35:40 -04:00
jacob1
9c44fc641c fix crash with sim.floodWalls(1,1,4,0) 2015-09-29 00:09:41 -04:00
jacob1
1f7b6a6bb4 fix wind line from lua changing brush size, allow setting wind tool strength 2015-09-28 23:53:14 -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
93d6816740 Send username with alternate update server request 2015-09-26 16:50:02 -04:00
jacob1
cae8c9e095 fix some compile errors with last commit, remove snapshot version info from HUD and add to intro text instead, add tpt.version.snapshot 2015-09-26 14:56:37 -04:00
jacob1
908f60d47a support alternate update servers, and optional changelogs 2015-09-26 11:47:51 -04:00
jacob1
cf5ec57ab3 prevent 'z' keypresses while doing stamp stuff, add skipDraw variable to prevent wasted drawing calls 2015-09-25 15:43:13 -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
b2840de173 mouse drawing triggered on mouse move, flood fill triggered on mouse down/move/up 2015-09-25 13:17:24 -04:00
jacob1
610cd82f0d remove bad wind tool exception, make sure UpdateDrawMode() is called on zoom mouseups
should be pretty easy to remove any remaining tptmp syncing issues now. There are still a few possible bugs in my list but they require a mouse to test ...
2015-09-24 02:14:56 -04:00
jacob1
5acf366d70 fix terrible mouse bug from last commit, redo tool strengths to be less buggy and only ever have an effect on normal drawing (not lines / boxes) 2015-09-24 01:39:20 -04:00
jacob1
e5ef3cd4a8 More changes to ensure that switching between selectMode stuff works properly (won't get stuck or trigger on mouseup when it shouldn't)
Hopefully no bugs but lots of the previous commits had bugs.
Also, remove wasd shortcuts for shifting stamps because they conflicted with being able to press 's' to switch selectMode at any point.
2015-09-24 01:11:49 -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
dab25160cc last commit was buggy, this tiny rewrite should be perfect 2015-09-22 22:52:25 -04:00
jacob1
a81a41b67f fix being able to change between box/line/flood fill while drawing (by releasing keys), a bunch of other extremely obscure fixes 2015-09-22 21:40:19 -04:00
jacob1
13a71b611a more tptmp mouse fixes, fix buttons and menusection buttons staying highlighted sometimes 2015-09-22 19:59:31 -04:00
jacob1
f230ac8945 send fake lua key release event when going into another interface 2015-09-21 19:50:03 -04:00
jacob1
cacef125c6 tptmp mouse syncing fix
mouse lines now end on the point where the mouse is lifted up as intended, instead of at the point where the mouse is at the end of the frame
also remove unneeded variable
2015-09-21 19:33:27 -04:00
jacob1
6fc787502c remove debug logging from last commit 2015-09-21 02:14:45 -04:00
jacob1
6ae3593465 remove pointQueue, replace with something that works properly
No longer draws a single point by itself at the start, and draws a final line to the point where the mouse is released
2015-09-21 02:13:01 -04:00
jacob1
16781bcb8e two new lua mouse up events (4 & 5) for some corner cases
Also fixes mouse held event being stuck in one of those cases
2015-09-20 21:40:00 -04:00
jacob1
cd97d6364b add comma before Newtonian Gravity in HUD 2015-09-20 17:29:30 -04:00
jBot-42
78c700a62b Added ambient heat to the HUD 2015-09-20 17:26:38 -04:00
jacob1
9b9555226b fix compiling in visual studio, fix maybe bug with updates? 2015-09-20 00:59:37 -04:00
jacob1
722b9d93d6 a few minor improvements so that stamps are more consistent in tpt++ / my mod 2015-09-19 21:19:17 -04:00
jacob1
71d75e37e3 you can now press any key while loading / saving stamps
This means you can do stuff like press 'l' while saving a stamp, pressing 'k' while placing a stamp, press 's' while copying an area, and it will cancel the old action and start a new one
also, 'l' doesn't reset mouse to DrawPoints state
2015-09-19 20:51:54 -04:00
jacob1
6230bc70b1 fix some buttons remaining visible in the stamp browser while covered up 2015-09-19 20:33:30 -04:00
jacob1
8ecb2682aa modifier keys are now checked when doing stamp stuff 2015-09-19 20:20:32 -04:00
jacob1
bbdbb67079 fix tpt.brushx returning incorrect value when brush is updated with tpt.brushID 2015-09-19 20:01:53 -04:00
jBot-42
146fc4d5fa Move GBMB to Force Menu 2015-09-18 15:46:53 -04:00
jacob1
f5774ad9b9 update tpt.getscript to use starcatcher.us 2015-09-18 13:00:01 -04:00
jacob1
e9043c93aa fix lua windows to allow -1 for position again (centers the window) 2015-09-16 01:48:15 -04:00
jacob1
81b2efaf5b fix textbox crash, fix ctrl+c / ctrl+x to not copy an empty string when the textbox is empty 2015-09-11 13:08:56 -04:00
jacob1
a629979d8b fix tpt.reset_spark to also reset WIFI 2015-09-10 23:59:13 -04:00
jacob1
f827e125cb fix sim.loadStamp / tptmp crash 2015-09-10 13:07:52 -04:00
jacob1
fee8516157 new function tpt.confirm (confirm prompt which returns true or false) 2015-09-08 01:27:20 -04:00
jacob1
cd9d13503a render modes interface can be exited with ESC 2015-09-01 13:31:28 -04:00
jacob1
b0ce2ee615 only automatically use scale 2 if there is a little more space than required (just in case) 2015-09-01 12:39:58 -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
fbbc755283 resetting sparks resets any sparks in WIFI too 2015-09-01 01:27:03 -04:00
jacob1
476c2cce06 new sim.signs api
It is a metatable that can set/read text, x, y, and justification; and also read displayText, screenX, screenW, width, and height

There is also a function sim.signs.new, it returns the new sign id or nil if it can't create a new sign
2015-09-01 00:57:31 -04:00
jacob1
df854f72a6 only print 'Loaded autorun.lua' to screen (not to console/stdout.txt)
All the other debug output was already removed in earlier commits
2015-08-31 23:51:50 -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
jacob1
282d1fbf0c fix: CRAY from older saves should set .tmp2 to 0 2015-08-30 19:03:01 -04:00
jacob1
48dbc4182d Add CRMC from my mod 3dd3fb2f7801 92f0301295f6 2015-08-30 18:29:21 -04:00
jacob1
4af4ae3656 allow an extra tool button to show on the left edge when cut off
electronics, explosives, and solids all have just one extra element, now you can always see it without scrolling. The only other scrolling menu is GoL
2015-08-30 01:55:48 -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
4cc753edc1 fix crash from last commit (OnResponseFailed needs to check if it is a valid listener) 2015-08-29 15:20:50 -04:00
jacob1
9f9fef6cad Add new function ParseServerReturn, try to properly display all http errors
Also fix crash with invalid ptsave link, and fix some cases where it wouldn't ever tell you it errored
2015-08-29 13:14:17 -04:00
jacob1
052681ef2b fix crash when using LIGH (base class should be ElementTool, not Tool) 2015-08-28 16:12:45 -04:00
nucular
c2ba1d24d4 Fixed compiling on mingw-w64 2015-08-26 22:59:05 +02: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
15537d4eff "Enabled" setting of button is now the old unused "Locked" setting of Components, also fix graphical bug with disabled buttons 2015-07-15 00:49:06 -04:00
jacob1
37f8038fcd fix freeze when hovering over a massive amount of portals 2015-07-15 00:20:00 -04:00
jacob1
e990eead10 add CleanText function from my mod, used when copying / pasting / loading signs 2015-07-10 00:05:58 -04:00
jacob1
67bcd5e863 style improvements in Window.cpp / Window.h 2015-07-09 22:59:01 -04:00
jacob1
f65c4363b1 hovered / focused components are always drawn last 2015-07-09 22:58:19 -04:00
jacob1
85ce852cbc Auto scroll profile viewer when textbox expands, add 20000 character limit 2015-07-09 22:50:01 -04:00
jacob1
906b4a973f profile viewer now shows age, website, and save stats
Also, add Multiline type textboxes (allows pressing enter) and fix some other bugs
2015-07-09 20:17:04 -04:00
jacob1
c786640c74 always use a ScrollPanel in the profile viewer
also fix Textbox autosize. TODO: add a bunch more info to the profile viewer
2015-07-09 14:25:01 -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
eb7aacc478 make walls less glowy, make streamlines less laggy, style improvements 2015-07-07 00:26:42 -04:00
jacob1
732e5b8730 fix some very minor memory leaks 2015-06-30 19:06:18 -04:00
jacob1
580b6101c4 fix interface.removeComponent being an alias for interface.addComponent 2015-06-29 16:25:39 -04:00
jacob1
ab1226c58b fix FIRE not burning things inside of walls 2015-06-28 17:33:45 -04:00
jacob1
7b904c6840 fix DLAY delay in older saves 2015-06-27 21:05:28 -04:00
jacob1
6a88e42580 Add tooltip when hovering over any kind of link sign 2015-06-27 20:44:48 -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
jacob1
f95186d3b9 fix zoom window staying up if you are holding ctrl while placing it
press z -> ctrl, then release z -> ctrl
2015-06-26 11:48:56 -04:00
jacob1
80bf240ced fix coordinates when placing stamps 2015-06-26 11:48:56 -04:00
jacksonmj
d08621a0f6 Remove unused register_extension()
(Client::DoInstallation is used instead)
2015-06-17 20:36:33 +01: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
cee08b2024 On first run, set scale to 2 if screen size is large enough 2015-05-14 23:22:20 -04:00
jacob1
0a2b60627f change left tooltip when a local save is open 2015-05-14 22:34:28 -04:00
jacob1
8e7e8e0670 some changes to LIGH creation (mostly from lua) 2015-05-11 20:50:10 -04:00
jacob1
fef767335f remove loggedIn variable, small change to tooltips 2015-05-11 10:53:05 -04:00
jacob1
16b7f7d7bf Merge pull request #254 from boxmein/offline-saving
Save to HDD by default when not logged in
2015-05-11 10:51:11 -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
boxmein
7145cacbb9 implement HDD saving by default in GameView. update tooltips to describe behaviour. 2015-05-01 15:55:22 +03:00
boxmein
424d1d4b47 when you're not logged in, displys a not-highlighted HDD save button 2015-05-01 15:54:41 +03:00
boxmein
bf001dfd77 enable Ctrl behaviour (eg sae to HDD) without highlighting 2015-05-01 14:44:51 +03:00
boxmein
56d04fcde8 add new form of enableCtrlBehaviour for un-highlighted HDD saving 2015-05-01 14:44:22 +03: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
jacksonmj
8f57c9a6c7 Correct return type for TPTScriptInterface::parseInt
so that large integers don't get changed into slightly different values by rounding caused by conversion to a float and back again.
2015-03-01 15:52:15 +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
b06af530a5 fix lua5.2 compiling (that isn't defined until we include the headers ...) 2015-02-14 00:01:31 -05:00
jacob1
57d1b4916d fix last two PVS-Studio bugs, closes #232 2015-02-13 21:45:22 -05:00
jacob1
316d0f1ace --luajit and --lua52 compile options
no longer looks for lua 5.2 unless you tell it to
2015-02-13 18:20:52 -05: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
6cb78186be sim.framerender function to simulate a certain number of frames
also remove particle debugging lua function now that there are key shortcuts
2015-02-06 20:34:07 -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
1840f4e39c fix crash when uploading save 2015-02-04 00:37:25 -05:00
mniip
4fa02965bf Clean up the EngineProcess loop 2015-02-04 04:13:51 +03:00
jacob1
b7fe998252 fix mouse coords at startup being 0,0, fix glitch that could make background windows fade completely to black 2015-01-31 14:09:50 -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