Jonathan G Rennison
0ae32838ea
Merge branch 'save_ext' into cargo_type_order
...
# Conflicts:
# src/core/smallstack_type.hpp
2018-07-02 18:52:22 +01:00
Jonathan G Rennison
15fea054fb
Add function pointer mode to SlXvFeatureTest
2018-01-12 01:13:49 +00:00
Jonathan G Rennison
79439925c8
Clear discardable chunk IDs in SlXvResetState.
2017-03-04 20:09:42 +00:00
Jonathan G Rennison
4c74bda0af
Fix extended order info not being saved for vehicle current order.
...
This fixes desync and related issues when loading savegames where
extended order info is used.
2016-10-11 19:01:16 +01:00
Jonathan G Rennison
d124089d29
Add extended version tag and feature versions to output of -q.
2016-09-13 22:56:17 +01:00
Jonathan G Rennison
72a386abe5
Merge branch 'save_ext' into cargo_type_order
2016-09-06 22:09:50 +01:00
Jonathan G Rennison
a3d0fc5817
Remove an unused extern declaration, update comment.
2016-09-05 23:31:34 +01:00
Jonathan G Rennison
871d26098e
Move Order::cargo_type_flags into a separately allocated object.
...
Change savegame format, add a new chunk for cargo_type_flags.
2016-09-05 00:12:48 +01:00
Jonathan G Rennison
c1c983ea16
Import cargo type orders patch
...
https://www.tt-forums.net/viewtopic.php?p=1047749#p1047749
Port to current trunk, resolve various conflicts, etc.
Adjust bit allocations for CmdModifyOrder.
Use save_ext framework for added order flags.
2016-09-04 23:00:10 +01:00
Jonathan G Rennison
d6395b97a7
Enable extended feature versions for saving to be set at run time.
2015-09-12 14:15:32 +01:00
Jonathan G Rennison
047395c663
Remove unnecessary and buggy field-packing in struct SlXvFeatureTest.
2015-08-02 23:37:34 +01:00
Jonathan G Rennison
5d680d9154
Implement version setting in SlXvSetCurrentState
...
Call in ClearSaveLoadState
2015-08-01 18:03:07 +01:00
Jonathan G Rennison
bde094fe01
Initial implementation of SLXI chunk save/load
2015-08-01 12:58:53 +01:00
Jonathan G Rennison
17e8693e62
Initial stubs for extending the save/load version checking/upgrade code,
...
with support for tests on individually versioned features as well as
savegame versions.
This is mainly for improved handling of features added to patchpacks.
The current status-quo of picking a random number for the savegame
version when releasing a patch breaks loading of savegames from newer
trunk savegame versions, with or without the same patch applied, as
savegame upgrade code is not run, which can also lead to crashes on load.
Instead don't change the savegame version (but set the high bit to
keep trunk versions away), but instead include the versions of individual
features using a separate mechanism.
2015-08-01 12:26:22 +01:00