So, I spent most of this implementing Pushing, unstubbing Bots-NPC code and implementing the Save System. Here is a gist of the accomplishments. However, loading the savefiles directly from the command line doesn’t work right now.
- Added all the Bots code, all the Callback Functions and most of the NPC code
- Added Extendable Bridges, along with the
- Implemented Pushing
- Added stubbed Sound and Menu system
- Added Save/Load system with
Also, sev added the code for skipping certain quests and loading Game Levels from the command line. Along with the Save system, this should make testing specific parts of the game much easier.
While the Save system was implemented through the conventional ScummVM method, it still took a fair bit of trial and error to get it working.
The biggest problem I had was how to save the different structs and function pointers. The original saved the different structs directly, without thinking about the endianess of the data member. To remedy this problem, I had to use the ScummVM read and write methods and greatly split the original code.
Since the structs were being saved directly, the pointers and function pointers were being written as well, which would have been useless upon loading the save. Hence, separate code needed to be added to cache the structs and functions those pointers pointed to.
- Implement Menu System
- Implement the Fade Functions
- Implement the Snow Functions
- Implement the Progress Bar