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