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
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
9b9555226b
fix compiling in visual studio, fix maybe bug with updates?
2015-09-20 00:59:37 -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
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
nucular
c2ba1d24d4
Fixed compiling on mingw-w64
2015-08-26 22:59:05 +02:00
jacob1
e990eead10
add CleanText function from my mod, used when copying / pasting / loading signs
2015-07-10 00:05:58 -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
7b904c6840
fix DLAY delay in older saves
2015-06-27 21:05:28 -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
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
a422e43beb
visual studio error fix + warning fix
2015-02-25 18:56:50 -05: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
57d1b4916d
fix last two PVS-Studio bugs, closes #232
2015-02-13 21:45:22 -05:00
jacob1
1840f4e39c
fix crash when uploading save
2015-02-04 00:37:25 -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
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
dce874484a
fix all the gcc warnings in the element files (except one in PSTN) + all the unused variable warnings
2015-01-10 22:43:33 -05:00
jacob1
b2954a7f0a
Publish button in browser (replaces Unpublish button when unpublished saves are selected)
...
Works using the html page and isn't really the best way until @simtr implements Delete.json&Mode=Publish or something
2015-01-10 18:18:28 -05:00
jacob1
1a50217acd
better fix for thumbnails getting mixed up (static int instead of rand), fixes #96
2015-01-10 15:45:35 -05:00
jacob1
4a3a6dee30
improve .desktop file installed on linux
...
escape Exec properly so paths with spaces or quotes work, and add Path key so that it starts in the right working directory
2015-01-10 00:14:38 -05:00
jacob1
0ad225d1fc
update VIBR randoms, fix any VINE in old saves also
2015-01-07 19:32:49 -05:00
Martin Ettl
34c85c262c
Fix potential memory leaks.
...
(Merging pull request #234 , amended by jacksonmj: some leaks already fixed in develop branch.)
2014-12-29 16:37:04 +00:00
jacksonmj
236ff08da9
Fix some problems noted in http://www.viva64.com/en/b/0298/
...
I've left some of the less important items, like SearchView.cpp "'then' statement is equivalent to the 'else' statement", and RequestBroker::Request::~Request, because I don't feel like spending a few days entirely rewriting those files at the moment (which is what I'd end up doing if I started fixing minor problems and refactoring...)
GameSave::readOPS - not changed. At some point we may have to move to a larger type for element IDs (probably two or four bytes), but PT_NUM isn't likely to be raised to the maximum value of that type immediately, so this check will be needed then. There should be an elements[partsData[i]].Enabled check in there too, but it might be a bit difficult - I'm not sure how to access a Simulation object from GameSave::readOPS...
Notes on changes:
Graphics::textsize, Element_FRZW::Element_FRZW - typos
Button::Draw - the extra case was originally used to invert the icon (draw it in black instead of in white) when the button was clicked. However, the icon colour is now automatically set depending on the background colour. (Note similar conditions "if(Enabled) { if(isButtonDown || (isTogglable && toggle)) " near the start of the function - same logic but in a different place, setting icon colour indirectly).
Simulation::transform_save - unused redundant function, everything uses GameSave::Transform which does much the same thing.
PreviewView::NotifySaveChanged - should be height==YRES/2, it's checking whether the preview image is the correct size, and resizing it if it isn't.
Element_FWRK::update - no idea why that line was there, even though it was my commit that originally added it...
2014-12-25 17:09:35 +00:00
jacob1
16ce3a68c0
more jacksonmj suggestions: save edgeMode in saves, BVBR absorption fix, life saving fix, DEUT graphics change, PROT fix, SOAP graphics fix
2014-11-21 15:41:22 -05:00
jacob1
1289465a2c
update stamps.def when deleting stamps, missing stamps show up as "error loading save" and can be deleted
2014-11-11 23:48:36 -05:00
jacksonmj
fb796c873b
PSTN: allow movement amount to be set by temperature. Requires major version increment.
2014-11-04 15:38:41 +00:00
jacob1
6463d04f6c
fix a few of the most spammy warnings (there are still hundreds of warnings though)
...
TODO: actually fix all the warnings
2014-10-23 00:42:13 -04:00
jacob1
c16caed5dd
fix level 1 msvc compiling warnings + initialize debugFlags
2014-10-08 00:15:51 -04:00
Simon Robertshaw
0d617ace7b
Decorate thread entry points in headers
2014-08-15 22:50:28 +01:00
Simon Robertshaw
a629eb9bfc
Force stack re-alignment for entry-points from phread_create with mingw & windows to fix SSE crashes in child threads
2014-08-15 21:42:33 +01:00
jacksonmj
c83945e281
Allow PHOT deco, in old saves only
2014-08-05 22:11:07 +01:00
jacksonmj
7fdc4dc83b
Mismatched new[]/delete in WebRequest::Process()
2013-12-23 19:16:04 +00:00
jacksonmj
4459bf5363
Also, mismatched new[]/delete in APIRequest::Process()
2013-12-23 17:21:14 +00:00
jacksonmj
aa74deb6d5
Mismatched new[]/delete for serialised GameSave data
2013-12-23 17:17:40 +00:00
Simon Robertshaw
e1616fdd82
Hotfix: Don't open saves larger than 200MB
2013-12-08 16:58:17 +00:00
Simon Robertshaw
c75a5a1f80
Remove debug logging for user pref reading/writing
2013-11-19 21:25:03 +00:00
Simon Robertshaw
fc25d5a466
Use NSUserDefaults for powder.pref storage on OS X, fix initial file open handling on OS X
2013-11-18 21:54:41 +00:00
mniip
4b914d12c2
fix tags order ( #141 )
2013-11-12 09:16:17 +04:00
jacksonmj
75b7b85703
Fix sign duplication when loading a save
2013-11-03 14:26:51 +00:00
Simon Robertshaw
e7ebbc0435
Hotfix: Authenticate all Web&ApiRequests to fix save loading/voting issues
2013-10-30 20:31:20 +00:00
mniip
41e058e3b2
Fix a few cpu time leaks in request broker and HTTP, also add a global sleep function
...
(and why did HTTP.c have it's own copy of mystrdup anyway)
2013-10-30 21:39:30 +04:00
mniip
bf908bbfbf
Fix various warnings, remove silly useless NO_INLINE system, remove the need for -fkeep-inline-functions
2013-10-30 04:47:07 +04:00
mniip
9183fa1755
apparently Ximon hates const; a lot;
...
added a bunch of const everywhere, had to modify a few functions to be const-compliant
2013-10-30 04:38:13 +04:00
jacksonmj
02a4c17d72
Ignore invalid walls in some old saves, so that they load correctly
...
E.g. save 10631 from old server
2013-10-17 16:09:38 +01:00
jacob1
aa2ec3d162
fix SOAP crashes by making sure particle id's are between 0 and NPART. Also cut off .life to between 0 and 65535 when saving
2013-09-12 14:35:10 -04:00
jacob1
332aa25bf6
save pavg[] in saves, for VIRS, PIPE, and STOR
2013-09-11 20:41:43 -04:00
jacksonmj
9eccad80b1
Missing breaks in readOPS
...
Causing some elements to be loaded incorrectly
2013-09-08 18:14:12 +01:00
jacob1
d38af2764c
move QRTZ .tmp into .tmp2 and .ctype into .tmp, fixes bug where sparking QRTZ resets .ctype and stops it from growing
2013-08-29 22:18:35 -04:00
jacksonmj
bebe9bd8fd
Add a way for photons to set the colour of FILT (major version bump required)
...
Also add some new FILT modes, and make FILT modes affect BIZR and
BRAY colour in the same way as they affect photon colour. Photons
passing next to DTEC will set the colour of all FILT in a straight
line starting from any FILT adjacent to the DTEC (a bit like an
ARAY beam), and the exact colour of the photon will be used for
FILT interactions instead of the colour based on temperature.
FILT tmp=4: red shift, tmp=5: blue shift. Size of shift determined
by FILT temperature. tmp=6: FILT has no effect on photon colour
(possible before by using invalid tmp modes, but here's a supported
method of doing it. Invalid tmp modes should be automatically replaced
in existing saves).
Also, FILT mode is now described in the HUD.
2013-08-29 17:19:07 +01:00
Simon Robertshaw
ddd51aed3d
Async Request methods for SaveInfo and SaveData
2013-07-28 10:30:01 +01:00
Simon Robertshaw
7a847e7a55
Fix request identifier tracking
2013-07-28 10:29:30 +01:00
Simon Robertshaw
3edee42971
Call OnResponseReady with an identifier for the request, add a WebRequest class
2013-07-27 12:38:52 +01:00
jacob1
aa59c89fa2
logging in in the save preview will update the login button on the main screen
2013-07-18 16:33:59 -04:00
jacob1
f4432b4759
give an error when a local save isn't saved properly, instead of exiting and pretending it worked
2013-07-15 14:59:15 -04:00
jacob1
8d5fe459fe
'n' to toggle Newtonian Gravity, quickoption tooltips show which keys you need to press to toggle them
2013-07-15 13:09:19 -04:00
jacob1
519d220101
save more settings in powder.pref like ngrav_enable, aheat_enable, pretty powders, and debug hud. Also save ambient heat in saves, and add a warning in the intro text in betas that you can't save publically
2013-07-02 15:09:00 -04:00
jacob1
c1320d2007
fix sim.loadStamp return value, remove VINE_MODE
2013-06-27 12:10:55 -04:00
jacob1
776b2f6607
fix version tagging in saves
2013-06-24 00:02:00 -04:00
jacob1
7a2114bc65
add error messages when errors happening while fav. / unfav.ing a save, deleting a save, or unpublishing one. Also don't use session key in url to add a comment since it isn't needed
2013-06-20 22:01:07 -04:00
jacksonmj
4e4bd9a11b
Signed integers can be negative, so prop>x does not always correctly indicate whether higher bytes are used
2013-06-11 00:26:41 +01:00
jacob1
1d00e712ad
save publishing info in the save upload ui
...
also fix the other crash when exiting the game from inside of one of these windows, because first Client::Shutdown would delete all active requests and only later ~Engine would delete _state, which delets the ServerSaveActivity window, which tries to close the active render request
2013-06-07 19:32:38 -04:00
jacob1
58f8451b9e
make saves private by default again
2013-06-07 13:08:45 -04:00
jacob1
8d7ab7f5e2
allow creating WIND lines from lua
2013-06-01 21:57:03 -04:00
jacob1
6f8e2c0345
remove unneeded / duplicate constants, fix SPC_AIR/other tools so it won't conflict with lua elements (the 11th one won't work right now)
2013-05-16 17:01:33 -04:00
jacob1
dfc33aaeea
finish return values for the legacy api, add sim.saveStamp and sim.loadStamp
2013-05-15 13:51:45 -04:00
mniip
4d9b9b17d7
D:
2013-05-11 15:08:32 +04:00
Simon Robertshaw
9abe51526c
Move all GUI source files into gui/
2013-03-22 14:14:17 +00:00
Simon Robertshaw
2c311b9a36
Use "http://" for update/startup check
2013-03-22 13:40:54 +00:00
Simon Robertshaw
e6db760205
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
2013-03-22 13:21:13 +00:00
Simon Robertshaw
700aff4784
Don't try to parse update check response if it's NULL!
2013-03-22 13:20:54 +00:00
jacob1
29e2604f57
fix compiling error
...
also bug, I had some weird formatting that broke the json parsing
2013-03-21 21:49:04 -04:00
Simon Robertshaw
c4a500aa21
Merge
2013-03-21 21:49:59 +00:00
Simon Robertshaw
81a34222d1
POST requests for APIRequest, allow saving user details from within the game, Asynchronous HTTP POST
2013-03-21 21:49:06 +00:00
jacob1
b617b8b656
fix compiling error
2013-03-16 14:00:11 -04:00
Simon Robertshaw
f05044ab68
APIRequest, Aync methods for client, Profile edit/viewer (WIP)
2013-03-16 17:45:18 +00:00
Simon Robertshaw
d383d6d7e5
Higher quality thumbnails for Renders
2013-03-16 11:25:13 +00:00
Simon Robertshaw
ca9ea8bb8a
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
2013-03-15 13:41:27 +00:00
Simon Robertshaw
73b6ff4efb
Use VideoBuffer in place of thumbnail
2013-03-15 12:59:55 +00:00
jacob1
2aa483e0a2
fix gravatars not showing for moderators
2013-03-14 23:58:09 -04:00
Simon Robertshaw
6b68c04cd6
Fix multiple free after merging multiple request objects
2013-03-14 12:10:56 +00:00
Simon Robertshaw
9479b7f330
Move requestbroker into new folder, make request process function a method of Request
2013-03-14 11:30:24 +00:00
Simon Robertshaw
7a055a9d90
More unnecessary string duplication
2013-03-12 21:29:27 +00:00
Simon Robertshaw
35b7f62d3b
Remove unnecessary string duplication (http_init creates an internal copy of the proxy string)
2013-03-12 21:27:42 +00:00
Simon Robertshaw
aae7113c81
Remove images from image cache on exit
2013-03-12 21:24:56 +00:00
Simon Robertshaw
de680a1e5c
Merge
2013-03-12 21:21:01 +00:00
Simon Robertshaw
86b7a11800
Make thumbnailbroker more general purpose, image requests for requestbroker, avatars in previewview
2013-03-12 21:17:19 +00:00
cracker64
f2823b0ee8
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
2013-03-10 23:27:22 -04:00
cracker64
2caa240d9d
Delete thumbnails on close.
2013-03-10 23:23:17 -04:00
jacob1
a65d93523d
fix small free/delete mismatch / a warning
2013-03-10 23:21:28 -04:00
jacob1
85d6c12721
fix stamp thumbnails not showing until you move the mouse, add a few new[]'s replacing some .c_str() pointers in client.cpp
2013-03-10 22:08:00 -04:00
Simon Robertshaw
e6bca489c9
AvatarButton/holder, rename ThumbnailBroker for more general purposes
2013-03-10 18:08:34 +00:00
cracker64
a9e66429d6
Fix some memory issues when closing preview UI too fast.
...
I'm not sure if this pthread usage is ideal, but it does seem to work on linux.
2013-03-09 22:47:08 -05:00
jacob1
189f96d35f
case insensetive local save searches, fix extention being counted in the match
2013-03-08 22:31:08 -05:00
jacob1
037618e6f8
remove auto generated comments from all files, fix some missing tabs, remove unused variables from config.h
2013-03-06 12:05:59 -05:00
jacob1
8b83ae9f95
PSTN ctype sets the element that stops it, FRME with a tmp of one is non-sticky (doesn't pull)
2013-03-03 16:36:37 -05:00
jacob1
b92bd245c8
fix 4 MB memory leak on every save
2013-02-24 15:23:34 -05:00
jacob1
0939494747
fix problems found with valgrind with shifting stamps and saving
2013-02-24 14:12:48 -05:00
jacob1
7379a6b5ba
fix crash when hovering the mouse over invalid wall types
2013-02-24 11:50:20 -05:00
Simon Robertshaw
5beb4255c8
Tag origin version info in save files
2013-02-17 11:30:53 +00:00
jacob1
01cd146ee9
fix mac compiling, fix renderer, fix other minor compiling issues
2013-02-14 23:31:31 -05:00
Simon Robertshaw
e7b174a78d
Revert "move version info to version.h, no longer needs full recompile on version change"
...
This reverts commit b3a2ab735b
.
2013-01-19 22:00:56 +00:00
jacob1
b3a2ab735b
move version info to version.h, no longer needs full recompile on version change
2013-01-15 11:28:28 -05:00
jacob1
41751da619
change some free/malloc's back to delete/new's
2013-01-12 21:06:52 -05:00
jacob1
5e20dd8545
allow directory search to find files with the extension repeated twice
2013-01-07 17:39:05 -05:00
jacob1
d1abfc313e
fix mismatched free()/delete's
2013-01-06 18:26:38 -05:00
jacob1
0159c2b5af
more scons fixes for windows
2012-12-29 12:45:43 -05:00
jacob1
e685e30d58
make sure that simulation variables are initialized, fixes things like water equalization always being on in old saves
2012-12-18 13:33:29 -05:00
jacob1
c06afff0a5
selecting a stamp moves it to the front of the list again (unless you hold ctrl)
...
attempted to do MVC right?
2012-12-18 12:20:52 -05:00
jacob1
672c5ee913
fix mismatched malloc() / delete [], fixes # 106
2012-12-17 23:57:55 -05:00
jacksonmj
9c6f3c7fbb
Fix crash in GameSave::serialiseOPS
...
Only particlesCount particles have been copied from the Simulation.
All the rest are uninitialised, and may have coordinates outside the
game area. Using those uninitialised coordinates in the index for
partsPosFirstMap may cause a crash.
2012-12-16 23:01:04 +00:00
Simon Robertshaw
d29c77b2d5
More detailed error when opening non-existent directory.
2012-12-16 16:41:30 +00:00
Simon Robertshaw
4d546b6818
Print errors regardless of build type
2012-12-16 16:40:29 +00:00
jacob1
06f8f88374
fix output appearing in stdout without DEBUG defined
2012-12-16 11:38:12 -05:00
jacob1
a85526bfac
fix comment error messages not showing
2012-12-15 23:12:54 -05:00
Simon Robertshaw
6e62a54952
Add missing URL Protocol registration on Windows
2012-12-15 16:56:55 +00:00
jacob1
d57fe7618c
fix walls loading incorrectly in extremely old saves. Fix some invalid save formats being loadable (it was onlychecking the 'O' in OPS)
2012-12-12 17:31:06 -05:00
Simon Robertshaw
38862a78d1
New Conversation notifications
2012-12-09 12:05:27 +00:00
Simon Robertshaw
6478ed121c
Use NotifyAuthUserChanged for GameController login, this will help users become aware when their sessions expire.
2012-12-09 01:25:05 +00:00
Simon Robertshaw
05148e8a8d
C++erific text cleaner function, also, it's a good idea to actually clean text coming from signs...
2012-12-09 00:14:48 +00:00
jacob1
e5a284a2ba
fix compiling warnings / error
2012-12-06 12:34:32 -05:00
Simon Robertshaw
b08812569c
Stop using persistent connections when we don't need them. Force shutdown of Thumbnailbroker before http lib close, fixes #84
2012-11-26 10:34:17 +00:00
Simon Robertshaw
483e907702
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
2012-11-18 18:02:34 +00:00
Simon Robertshaw
af29942117
Ensure directory enumeration works whether there's a path seperator at the end of the directory or not
2012-11-18 18:02:28 +00:00
jacob1
4654a2aaa0
update build number, which was incorrect. Add an easy way for mods to ignore updates
2012-11-18 12:43:11 -05:00
Simon Robertshaw
51a5af6d5d
Remove some debug printing
2012-11-12 10:48:20 +00:00
Simon Robertshaw
29189693b3
Element palette for automatic element ID/mod mapping
2012-11-12 10:22:16 +00:00
jacob1
3a29fc0268
Save local saves as current name option (overwrites them automatically). Fix filename not showing when first saving a local save
2012-10-26 15:15:38 +01:00
jacob1
fd07d35e34
limit the number of signs that can be placed
2012-10-26 15:13:00 +01:00
jacob1
5c59b9d6cb
don't render fire on stamps (reduces lag)
2012-10-05 15:49:54 +01:00
Simon Robertshaw
b35fd0298c
Flush stamps list to file when deletins, Rename stamps undelete function to rescan
2012-10-05 15:46:42 +01:00
jacob1
7313bd81ca
fix problem with last commit
...
there was no other missing stamps problem actually, just this
2012-10-05 15:23:24 +01:00
jacob1
d45dd605e9
Stamp fix button to bring back deleted stamps
2012-10-05 15:20:33 +01:00
jacob1
cb8efcd0f9
fix visual studio compiling errors (but not the dirent.h one)
2012-10-05 15:19:00 +01:00
Simon Robertshaw
58763f0900
Fix stamp library loading issue (wasn't loading beyond 512 bytes, readsome doesn't always reach eof before not reading n
2012-10-01 13:36:56 +01:00
Simon Robertshaw
0801497ed2
Fix wall clipping during stamp rotation
2012-10-01 12:02:04 +01:00
Simon Robertshaw
163fbde8af
Fix issue where thumbnails are sometimes the incorrect ones
2012-10-01 00:15:09 +01:00
jacob1
f652786557
fix saves getting corrupted when saving, fix error messages not showing (correctly)
2012-09-30 20:46:08 +01:00
jacob1
b3741cd67c
lock icon on unpublished saves
2012-09-29 23:03:02 +01:00
Simon Robertshaw
261c654ca0
HTTP/1.1: Allow multiple whitespace characters in header fields
2012-09-28 17:19:00 +01:00
Simon Robertshaw
25d872ec48
MacOS X targets for Scons, Fix some inlines for clang
2012-09-25 17:53:48 +01:00
Simon Robertshaw
5b52ac3675
Save history and new multiline formatter
2012-09-13 22:39:01 +01:00
Simon Robertshaw
771d5df5c9
Fix buffer overflow with HTTP headers caused by recent \r\n commit"
2012-09-11 13:13:24 +01:00
Simon Robertshaw
5da70ef8a6
Ensure errors are caught and displayed during tag operations. Fix some issues with the Tag ui. Fixes #157
2012-09-05 19:47:03 +01:00
Simon Robertshaw
7d9f8a0b1d
Use \r\n instead of just \n for HTTP headers
2012-09-03 17:37:58 +01:00
Simon Robertshaw
612dca950d
Move class definitions for ThumbnailBrokeer into header
2012-09-03 17:37:25 +01:00
Simon Robertshaw
b05f114174
Views in save Preview and use old vote bars. Fixes #171
2012-09-03 13:25:48 +01:00
Simon Robertshaw
1ac964d9ba
Ensure saves are expanded in memory when performing translate operations. Fixes #174
2012-09-03 12:38:09 +01:00
Simon Robertshaw
9751c962b1
No default description, fixes #153
2012-09-01 18:33:28 +01:00
Simon Robertshaw
0ca680f4c8
Enable decorations in renderer for local save items, disable for server save previews.
2012-08-27 13:32:17 +01:00
Simon Robertshaw
082072a05e
OPS: Fix byte order when unpacking 4 byte tmp fields
2012-08-25 16:29:27 +01:00
Simon Robertshaw
a8d4bdeb2d
Fix install crash (somehow, I commented out the bit the gets the current directory, leading to strlen op on a NULL pointer), fixes #145
2012-08-24 19:03:20 +01:00
Simon Robertshaw
62f067d29d
Fix stamps page count
2012-08-21 14:06:54 +01:00
Simon Robertshaw
b639da3692
Use collapsed saves when using stamp browser, fix memory leak when saving stamps
2012-08-21 13:30:30 +01:00
Simon Robertshaw
ba1ce66968
Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138
2012-08-21 01:09:22 +01:00
Simon Robertshaw
b318c3721a
TPT: Powered pipe, based on jacob1's commits
2012-08-20 16:48:03 +01:00
Simon Robertshaw
43ed72b4c5
Fix a few small (a lot of big) memory leaks associated with the stamps browser
2012-08-19 21:31:24 +01:00
Simon Robertshaw
9dd9d52564
Herp derp, forgot to call dealloc in GameSave destructor
2012-08-19 20:57:14 +01:00
Simon Robertshaw
c0c30bd305
Looks like calling the destructor manually is not a good idea.
2012-08-19 20:44:50 +01:00
Simon Robertshaw
b1df1e164c
Catch exceptions when loading initial stamp
2012-08-19 18:57:29 +01:00
Simon Robertshaw
97a819c79c
Fix autoupdate issue where temp file is not deleted, fixes #128
2012-08-18 12:44:07 +01:00
Simon Robertshaw
21f050800b
Load signs from OPS data
2012-08-17 17:08:24 +01:00
Simon Robertshaw
d24e439a1e
Red error, ensure residual actiondata is not read for RichLabel
2012-08-17 17:02:02 +01:00
Simon Robertshaw
fc1274f381
Fix crash caused by malformed preference files, fixes #110
2012-08-14 18:14:06 +01:00
Simon Robertshaw
a76e4d71a9
Name colour formatting in comments
2012-08-14 17:20:47 +01:00
Simon Robertshaw
4f3e03e317
Update gitignore, show votes correctly, fixes #97
2012-08-14 13:06:10 +01:00
Simon Robertshaw
c877e445b9
Remove temp files created by scheme handling
2012-08-14 12:36:50 +01:00
Simon Robertshaw
53b8e8ca78
ptsave scheme handling for Linux, addresses #97
2012-08-14 12:36:04 +01:00
Simon Robertshaw
b05a847e96
Fix crash when using search (std::remove doesn't seem to work as I expected), Add clickable author names for search. Fixes #95
2012-08-14 12:03:33 +01:00
Simon Robertshaw
651546b5bf
Fix bug where thumbnails would not always show in the search
2012-08-13 21:08:55 +01:00
Simon Robertshaw
074dcd0b42
Precompile some headers. Fix sconscript to prevent recompiling everything
2012-08-13 15:43:57 +01:00
Simon Robertshaw
8ca27520a4
Use forward declarations more to avoid excessive includes
2012-08-12 22:32:57 +01:00
Simon Robertshaw
5d3d1d4916
Message of the day and user session check on startup
2012-08-12 15:15:47 +01:00
Simon Robertshaw
cd051924d9
Installation with Ctrl+I, fixes #77
2012-08-10 15:41:39 +01:00
Simon Robertshaw
d352a10d80
PTsave opening
2012-08-08 21:32:10 +01:00
Simon Robertshaw
9f1301df5a
Perhaps FileExists shouldn't erase file contents...
2012-08-08 20:05:47 +01:00
Simon Robertshaw
346e9d2168
Proxy from command line arg
2012-08-08 18:34:37 +01:00
Simon Robertshaw
4ce22e4e77
Wall Edge option, fixes #70
2012-08-05 18:35:12 +01:00
Simon Robertshaw
5a2da01a5b
Tags, fixes #55
2012-08-04 20:55:59 +01:00
ntoskrnl
f94fabd999
Rename WIN32 preprocessor definition to WIN
2012-08-02 15:21:16 +01:00
Simon Robertshaw
cbefea85d7
Local Saving, Server Saving rewrite
2012-08-01 22:29:22 +01:00
Simon Robertshaw
1d258eab6b
ThumbnailBroker for background retrieval and rendering
2012-07-31 19:49:08 +01:00
Simon Robertshaw
6cc4648929
Filebrowser search, cleaner filenames
2012-07-29 01:33:28 +01:00
Simon Robertshaw
df3b1e2a62
Implement search for DirectoryList
2012-07-28 22:14:38 +01:00
Simon Robertshaw
c14a008d46
Corrections to GameSave to prevent conflicts in the Expanded state, improve Save preview comments display
2012-07-28 18:38:34 +01:00
Simon Robertshaw
aa774771a0
Collapse gamesave to save space in memory
2012-07-28 02:23:21 +01:00
Simon Robertshaw
5befe5c25f
Local file browser + some more interesting things like Progress bar UI component
2012-07-27 20:06:17 +01:00
Simon Robertshaw
e36bc8e4ae
TPT: Gravity modes and Newtonian gravity for fireworks 31ce22f122
2012-07-25 17:44:29 +01:00
Simon Robertshaw
5031291bf6
TPT: Save an extra tmp2 byte, for EXOT fed8b7b2cc
2012-07-25 17:16:56 +01:00
Simon Robertshaw
6585a4640b
TPT: Replace all explosion sparks with new element (EMBR) 1d5b081942
2012-07-25 17:12:15 +01:00
Simon Robertshaw
e65e222f2c
Integer values for prefs, Default decoration colour, clear decoration
2012-07-24 13:03:28 +01:00
Simon Robertshaw
97bf9a517e
Snapshot checking
2012-07-22 18:51:05 +01:00
Simon Robertshaw
5bf0a084ac
Prevent race condition when reloading local stamps, fix task so "after()" gets called and correct stamp name so they actually get deleted"
2012-07-21 13:09:59 +01:00
Simon Robertshaw
33de0482a2
Use exceptions instead of goto to corrup state. Fix Fan wall loading with PSV and New wall IDs with OPS
2012-07-20 19:39:38 +01:00
Simon Robertshaw
332fbfe590
Ensure GameSave internal pointers are NULL at the start
2012-07-20 17:43:08 +01:00
Simon Robertshaw
a8e4221f38
Working comment submission
2012-07-18 13:07:33 +01:00
Simon Robertshaw
2479b8664d
Add comment box to save preview - doesn't work yet
2012-07-17 19:14:05 +01:00
Simon Robertshaw
1b1963932e
Move array terminator for sign saving into if statement
2012-07-06 16:08:52 +01:00
Simon Robertshaw
adc9cc0816
Move graphics into seperate folder
2012-07-06 16:06:26 +01:00
Simon Robertshaw
eb52f759de
Success/Failure return from Asyn Task, Prompt to visit website upon update failure
2012-06-22 19:04:38 +01:00
Simon Robertshaw
beee75d9d1
Multiple pages of comments
2012-06-22 16:35:32 +01:00
Simon Robertshaw
2e48bd149c
Stage 2 of autoupdate working
2012-06-22 01:44:30 +01:00
Simon Robertshaw
3c91e526bb
Client now provides methods for reading and saving preferences - less powerful than raw access to Cajun, (no mixed type arrays, for example) but allows other save formats to be used, such as property lists on OS X
2012-06-22 01:04:55 +01:00
Simon Robertshaw
e81e18238d
Merge branch 'master' of github.com:FacialTurd/PowderToypp
2012-06-20 13:40:34 +01:00
Simon Robertshaw
2be9c92508
OpenGL canvas for Windows, Notifications for main Game, Update checker in Client (+ other client triggered events)
2012-06-20 13:40:18 +01:00
Simon Robertshaw
1fceab6e4a
Ensure partsSimIndex is freed upon success state of OPS parsing
2012-06-18 15:57:41 +01:00
Simon Robertshaw
fc86c24027
Better freeing for memory in GameSave
2012-06-18 15:54:55 +01:00
Simon Robertshaw
780682c22d
TPT: oxygen fusion, fix two small bugs
2012-06-12 19:26:47 +01:00
Simon Robertshaw
5144451b30
TPT: Check for version before enabling movable flag for sponge. 393d247312
2012-06-12 18:55:44 +01:00
Simon Robertshaw
318499350d
TPT: strncpy for loading sign text in OPS 433c1881bc
2012-06-12 17:13:30 +01:00
Simon Robertshaw
f2e1d38b58
TPT: Save soap bubbles 6717f4ff32
2012-06-12 17:06:38 +01:00
Simon Robertshaw
a270acfc54
OPS loading: don't replace existing particles twice, and clear soap c
2012-06-12 16:30:27 +01:00
Simon Robertshaw
74d7fb59c3
TPT: Save tmp2 for tron c8a1524d6b
2012-06-12 16:11:34 +01:00
Simon Robertshaw
117b1fb5c4
TPT: Fix includes for OSX and BSD a75da2c4c3
2012-06-12 16:05:02 +01:00
Simon Robertshaw
96ec616442
TPT: BSD Platform, -DBSD 9e18556ae6
2012-06-12 16:00:18 +01:00
Simon Robertshaw
5eb9370fc1
Uncomment bounds checking for stamp loading
2012-06-10 19:53:46 +01:00
Simon Robertshaw
fd572e9da6
Change stamp storage to a list, insert new stamps at the begining, 'l' loads the first stamp or the previously used stamp, 'k' shows the stamp browser
2012-06-10 19:52:24 +01:00
Simon Robertshaw
cdc4b4df86
Fix save rotation
2012-06-09 20:16:47 +01:00
Simon Robertshaw
26dbb9d309
Missing 'delete' on old blockMap data in save Tranformation
2012-06-09 19:43:35 +01:00
Simon Robertshaw
050ad82155
Unify stamp and clipboard placement code, GameSave translation and transoformation working (not particularly well)
2012-06-09 19:42:07 +01:00
Simon Robertshaw
c408e035fa
Preview: Wait for save to load before opening, Simulation: Correct block coords when reading wall data, replace existing particles when placing stamps on top, Game: Clear the simulation when loading a save
2012-06-09 14:54:58 +01:00
Simon Robertshaw
0ee1e1875d
Load save data when showing the save preview
2012-06-08 22:04:14 +01:00
Simon Robertshaw
61ed6e0276
Rename Save class to SaveInfo, introduce SaveFile for hanlding of local data (stamps and local saves). Rename Stamps browser to LocalBrowser, ready for sharing code with the local save browser
2012-06-07 14:23:26 +01:00
Simon Robertshaw
8fae7dbade
Saving and loading at position, yuse exceptions for parsing saves
2012-06-06 01:46:13 +01:00
Simon Robertshaw
7063587706
Fix bmap reading error caused by signed/unsigned comparison
2012-06-05 22:55:39 +01:00
Simon Robertshaw
49dafbfd26
Use a different method for decoding saves with uncompressed object in memory for stamps and clipboard, also allows for transformation (rotation), missing failure states and code for loading it into a Simulation
2012-06-05 20:08:35 +01:00
Simon Robertshaw
e0c9dab8cb
Move more SDL dependancies out of program, OpenGLCanvas for JNI and JNI methods.
2012-05-31 10:24:44 +01:00
Simon Robertshaw
136675b56a
Move style into Component
2012-05-15 18:13:17 +01:00
Simon Robertshaw
0bab640fe4
Fix warning in Client.cppcpppcppc
2012-04-20 01:45:43 +01:00
Simon Robertshaw
c4bace95bf
Allow deleting of stamps
2012-04-19 15:22:18 +01:00
Simon Robertshaw
900e23128a
Add ability to get favourites
2012-04-14 21:11:54 +01:00
Simon Robertshaw
4c6be4ff2c
Graphics:: Extra icons for Report and Favourite. Client:: Get favourite status in GetSave, FavouriteSave, ReportSave, Preview:: Failure state when loading save
2012-04-14 19:00:24 +01:00