stblr / mkw-cs

Client-server netcode for Mario Kart Wii
MIT License
11 stars 0 forks source link

Headless ghost replay #13

Open stblr opened 2 years ago

stblr commented 2 years ago

For the server, we want to be able to run the game without graphics or sound. Instead of taking the working game and removing unneeded parts, we start with an empty main function and add the needed parts one by one, unbinding them from the rest through more or less hacky patches.

The initial goal is to replay a simple ghost, like, let's say, the rMC3 WR. More complex races (and battles) are much more likely to trigger breaking code paths and so will be added incrementally from the MVP.

The game contains many subsystems, with a manager for each one following the singleton pattern. All of them have a createInstance function, and some have an init and/or a calc function. There are a few functions that are responsible for calling theses, notably:

stblr commented 2 years ago

I started working on this in the headless-ghost-replay branch, but further progress will need more Kart subsystem RE.