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
6ddab5a96e
update scale info in readme
2017-11-23 16:37:57 -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
wolfy1339
d7a27cc682
FreeBSD build fixes ( #517 )
2017-11-23 14:38:47 -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
9c095ff3d7
don't use alternate PWT32_STATIC_LIB define in msvc either
2017-10-13 00:47:07 -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
jacob1
553b36b31c
fix generator.py call in scons 3
...
scons 3 still untested
2017-10-09 23:59:58 -04:00
jacob1
a97dad4db5
Mac luajit crash fix
...
Doesn't affect official because I added these flags properly before making SConscript do it
2017-10-09 00:12:26 -04:00
jacob1
940fa80047
revert 'Fix deprecation warnings from pthread ( #510 )' 7847a3ab11
...
not everyone will have the newer pthread and the deprecated define probably works on all versions of pthread
2017-10-07 17:45:28 -04:00
QuanTech0
c52c2d7a6f
Expanding vocabulary.
...
:)
2017-10-07 17:32:28 -04:00
wolfy1339
b3ee23e45c
Fix errors when using --msvc ( #509 )
2017-10-07 17:32:04 -04:00