4014 Commits

Author SHA1 Message Date
Michael Martin 3e6f9cf5b1 Remove SDL_image and link against libpng directly 2019-08-10 13:34:16 -07:00
Michael Martin 18569ef896 Update Mac build instructions 2018-05-06 17:56:50 -07:00
Michael Martin 8b5cde896a Incorporate and alter framework IDs so the app bundle is fully self-contained 2018-05-05 21:27:14 -07:00
Michael Martin 29ed467363 Alter build flags on Mac to find dependent frameworks in /Library/Frameworks 2018-05-05 21:26:34 -07:00
Michael Martin 6428238e51 Update all problematic include guards.
All-caps identifiers that start with an underscore may be reserved
for compiler or library use, and recent versions of gcc or glibc
have been stealing symbols away from us.
2018-01-20 18:02:03 -08:00
Michael Martin 327e3f2566 Fix debug build on gcc7 2018-01-12 23:39:54 -08:00
Michael Martin 3d5ebf1fa4 Fix build on gcc7.x 2018-01-12 20:57:53 -08:00
Michael Martin cd3d430398 Fix includes for setuid and friends 2018-01-12 20:57:34 -08:00
Michael Martin 98ab7ef3dd Match include guard symbols 2018-01-12 20:05:40 -08:00
Michael Martin e6a0038646 Adjust library requirement for modern gcc 2018-01-12 20:04:24 -08:00
Serge van den Boom 7326ff096d Grouping ship properties together at the top of the ship .c files, from oldlaptop. 2013-11-02 21:59:56 +01:00
Serge van den Boom 573755dcb5 Alternative for Subversion '$Date$'. 2013-11-02 00:12:02 +01:00
Serge van den Boom f9d27fbbe6 Use internal libmikmod by default. 2013-10-23 21:51:13 +02:00
Serge van den Boom 80c67f9217 Merge branch 'master' of ssh://git.code.sf.net/p/sc2/uqm 2013-10-20 13:09:21 +02:00
Michael Martin c0e7a0268c Merge branch 'better-saves' 2013-10-19 17:12:38 -07:00
Michael Martin f66cbbcd89 Finalize the work on the new save file format.
Remove all references to state files from the format. Some still
leaks in in the GmSt chunk, but those are ignored or overwritten
by later loading phases.
2013-10-19 16:59:36 -07:00
Michael Martin f271e8270c Tentative loading logic for the new statefile format. 2013-10-19 15:52:19 -07:00
Michael Martin c30fd90cb4 Intermediate testing save format.
Rationalized statefile chunks are now written out alongside the
original statefile chunks. The loader still relies on the latter
for now. This will make correctness cross-checking a bit easier.
2013-10-19 01:29:02 -07:00
Michael Martin fe0a9a1126 Expose some of the statefile structure to load and save. 2013-10-18 22:38:39 -07:00
Michael Martin 9f3a70985e Update savefile spec based on new findings. 2013-10-13 23:22:20 -07:00
Michael Martin 60a9ca61cf Reorganize the GameState array.
This is preparation work so that when the state files are removed
from the savegame format (or possibly removed entirely) it will
not be a savegame compatibility-breaking change.

Legacy support has been modified so that the GameState bits are
reordered as part of load, so loading legacy saves still works.
2013-10-13 23:19:13 -07:00
Michael Martin 40dcd65afa Generalize the getGameState functions. 2013-10-13 18:49:54 -07:00
Michael Martin e7d30008a2 Endian safety in all savegame chunks except statefiles. 2013-10-13 16:36:41 -07:00
Michael Martin c8250d8b8b Documentation for the game state files. 2013-10-13 05:47:41 -07:00
Michael Martin 634ec1ae7d Document the new savefile format. 2013-10-13 05:44:09 -07:00
Michael Martin 7138aeca64 Major revision to save format
This accomplishes what I set out to do, but doesn't actually
solve the problem well enough given what I learned while doing it.

Documentation forthcoming in future commit.
2013-10-13 05:07:04 -07:00
Mika Kolehmainen 6c6bb6b100 OS X: Compiles now with Xcode 5. SDLMain updated to SDL 1.2.15, fixes input when running binary directly. 2013-10-10 00:52:53 +03:00
Mika Kolehmainen d2aeaf2c2e Added gitignore. 2013-10-10 00:52:11 +03:00
Serge van den Boom 34dab83ff6 Warn the reader that this file is outdated, with a referral to
doc/devel/resources.
2013-10-09 18:42:04 +02:00
Michael Martin eca23397c3 Output bytes now track field sizes.
This removes the clumsy local variable pointer stuff.
2013-10-09 00:34:35 -07:00
Michael Martin 876daf0827 Remove padding and unused data from savegame format. 2013-10-07 00:39:06 -07:00
Michael Martin 51fa5a7ae5 Save format refactoring: Uncompressed save format
Legacy files are handled by load_legacy.c, but this now should be
the only part of the code that still uses the custom decompression
library.

These save formats are very much interim and held for testing
purposes! Do not use these commits for actual play, or your saves
will be lost.
2013-10-06 23:28:31 -07:00
Michael Martin 78d6312a1e Make the UI for named saves acceptable. 2013-10-06 17:24:20 -07:00
Serge van den Boom d490f70016 Add an index to dialog string tables, so that we can refer to dialog lines by a string identifier instead of a volatile number. 2013-09-29 21:16:26 +02:00
Serge van den Boom c8527459c8 Expand inline documentation. 2013-09-29 20:55:45 +02:00
Serge van den Boom 145309927b Remove a few duplicate comments. 2013-09-29 19:09:30 +02:00
Serge van den Boom 15bafcbca3 Updated ChangeLog. 2013-09-29 19:08:30 +02:00
Serge van den Boom 29beca352b Some more documentation. 2013-09-29 19:02:56 +02:00
Serge van den Boom d848ccf96f Added a StringHashTable type, for later use. 2013-09-29 18:47:19 +02:00
Serge van den Boom 5c6ba7e51c Fix in currently unused define. 2013-09-28 23:29:07 +02:00
Serge van den Boom 6c8387fff4 A few superficial fixes. 2013-09-28 22:00:47 +02:00
Michael Martin e4657ea3d1 Improved save file format inspired by IFF.
Savefile is built of chunks that include their length. The only
two right now are Summ (the summary, must be first) and OmnZ
(the omnibus compressed data).

Padding that was originally used for alignment purposes has been
removed from the format, unless is it is part of the compressed
data.
2013-09-25 22:31:42 -07:00
Michael Martin 27087d0ea8 Refactor savegame information
Coalesce it out of three header files into one (save.h).
This also includes references to NextActivity, which may
be the wrong place to do it. Time will tell.
2013-09-25 20:35:58 -07:00
Michael Martin 2fc4f01ec4 Normalize legacy/modern save display.
Also clean up some detritus from the initial implementation.
2013-09-25 20:35:53 -07:00
Michael Martin 28fb037258 First draft of namable savegames.
This code is loosely adapted from JMS's code in UQM-HD,
but very little remains beyond the text input loop internals.

Fully backwards compatible, but this format shouldn't
survive to the final merge.
2013-09-25 20:35:39 -07:00
mcmartin 0851e23c8e fix a crash when talking to the Ur-Quan drone on 64-bit Linux
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3782 8092fc87-c524-0410-9efc-e669fe64eaf9
2013-09-23 09:20:31 +00:00
meep-eep 6667b7cc95 Insight from James Scott.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3781 8092fc87-c524-0410-9efc-e669fe64eaf9
2013-03-28 12:36:56 +00:00
mcmartin 6f84fd41c9 Update the Win32 installer to fit the new site design and to make Remix Pack 4 available. Juggle some file locations to make it easier to run the NSI script directly out of the win32_install directory.
The installer code is still kind of a mess, but this makes it more reliable than the old 0.7 installer from a user experience standpoint.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3780 8092fc87-c524-0410-9efc-e669fe64eaf9
2013-02-19 03:23:27 +00:00
Meep-Eep fb519f2649 Update; convert AUTHORS to UTF-8.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3779 8092fc87-c524-0410-9efc-e669fe64eaf9
2013-01-05 17:35:49 +00:00
avolkov b571a8ce39 Make init_RACE()/uninit_RACE() calls symmetric; takes care of memory leaks from bug #1149; thanks to Louis Delacroix
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3778 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-02-26 21:05:46 +00:00