New structure of campaign loading
Moderator: Forum Moderators
Re: New structure of campaign loading
So, an update. It turns out that current model of managing configuration data and preprocessor defines/guards didn't quite cut it to the new requirements, so it is going to be reworked. The state machine for the new config loading model is going to have 3 states:
1. Nothing is loaded, a state for when Wesnoth is first started.
2. General configuration (number of experience per kill, cost of recalling units, main menu theme song...) is loaded, as well as headers of all the campaigns and eras.
3. All what was in state 2 + core wesnoth macros + stuff unlocked by defines in chosen [era] + stuff unlocked by defines in chosen [campaign].
Full state diagram can be seen here.
There also is a general diagram, describing how different parts of Wesnoth engine interact and in which state are they supposed to be - it can be found here.
Please do tell if you see that something obvious was missed /done wrong. Any other comments on feasibility/usability of such model are also welcome.
1. Nothing is loaded, a state for when Wesnoth is first started.
2. General configuration (number of experience per kill, cost of recalling units, main menu theme song...) is loaded, as well as headers of all the campaigns and eras.
3. All what was in state 2 + core wesnoth macros + stuff unlocked by defines in chosen [era] + stuff unlocked by defines in chosen [campaign].
Full state diagram can be seen here.
There also is a general diagram, describing how different parts of Wesnoth engine interact and in which state are they supposed to be - it can be found here.
Please do tell if you see that something obvious was missed /done wrong. Any other comments on feasibility/usability of such model are also welcome.
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: New structure of campaign loading
1. link:
Green connections are old (and to be removed) ?
about the automaton:google wrote:You need permission to access this item.
Green connections are old (and to be removed) ?
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: New structure of campaign loading
Added explanation about arrows to the diagram. Also attached the first diagram to the previous post - for some reason I couldn't set it public the same way I did with the second one, at least now.
Edit: fixed the visibility issue, try to view the first document now.
Edit: fixed the visibility issue, try to view the first document now.