Comments (3)
As long as the scenario object can read older versions and fill in the gaps, I think it would be ok, right?
Provided the file is not too tightly coupled with the object itself, it shouldn't have to be changed often in destructive ways. Internal changes to the game can be handled at the object layer.
In the case where there are enough changes that we need a generalized updating, perhaps we could devise some mechanism by which a new class can inherit or extend its old version... but that sounds complicated enough that it would only be fun, but not useful. 😬
from imperialism-remake.
About the scenario file version number, one question is if it should be the same as the game version number or if it needs to be more fine-grained. It would mean that we could introduce a new file version only if the version number is also increased.
Regarding the updates of older versions, I would chain them. Kind of writing a updater from last version to this version, and then upon loading of an old version apply the incremental updates in a chain. This should be least effort but can lead to some losses, if e.g. we remove a feature and then add it again in the course.
Overall, I think, it highlights the importance of thinking carefully and designing the scenario data structure (the file is mostly just a yaml representation of the data structure) in such a way that it doesn't need to be changed often.
from imperialism-remake.
To your first point, I think that is one of the stipulations of semantic versioning, so it seems appropriate.
from imperialism-remake.
Related Issues (20)
- Set the application icon in Linux HOT 2
- Selection rectangle of mini map not always drawn completely
- Borders not always drawn completely in mini map
- Enable dragging of the main map
- Make terrain modifiable HOT 2
- Audio (vorbis) playback and platform audio codecs HOT 3
- Make width of mini map adjustable
- Add zoom to main map
- Use requirements.txt to fill requirements in setup.py HOT 1
- Track used resources
- The preferences need a versioning and upgrade from older versions
- Enforce types and valid ranges for inputs in dialogs? HOT 1
- Server - client communication, strategies for delayed or missing responses to requests HOT 2
- How to connect server and clients if they are behind NATs? HOT 5
- Program does not launch or exit properly on macOS HOT 6
- UI start screen labels below start image not shown
- No audio is playing HOT 1
- Some river is not right in Europe scenario HOT 1
- Download page down HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imperialism-remake.