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
ce054bfc3f
fix misc. errors reported by clang static analyzer
2017-05-06 20:02:23 -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
6d6a615a37
msvc min/max fixes
2017-04-23 12:30:39 -04:00
jacob1
40972f9434
pressure and air velocity are now saved in saves
2017-04-22 17:06:28 -04:00
jacob1
fc451e5385
don't allow publishing E182 saves
2016-09-04 21:49:24 -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
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
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
jacob1
9a855cc8cb
fix some commas in HTTP.cpp that should be semicolons
2016-08-02 08:31:33 -04:00
jacob1
59ac872d5f
restrict saves using newer features of elements
2016-07-26 19:33:04 -04:00
jacob1
9cae1f0fe7
HTTP.cpp: parsing headers shouldn't be case sensitive
2016-07-24 16:28:20 -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
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
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
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
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
1171c308e1
Fix warnings, fix crash when ctrl+click opening a save
2016-04-02 20:47:50 -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
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
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
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
4e484ae2a4
compiler fixes, apparently using [] as intended is ambiguous ...
2016-01-26 00:24:14 -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
adf0fa72df
Actually use .Properties instead of .Falldown for wall blocking
2015-12-30 23:45:05 -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
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
jacob1
59377e49e5
fix 'Prev' button placement
2015-10-11 02:05:49 -04:00
jacob1
a8c141c144
show more specific error when catching json exceptions
2015-10-10 17:39:47 -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
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