-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghost: support marathon demos #63
Comments
I reckon the easiest way to do this would be on map change, scan through the whole demo file looking for a server info message with a map that matches the current map. If found, start reading the ghost info immediately, if not print an error message (like the current one). The skipping could be made fairly fast since when in "scanning for map" mode we can avoid parsing most of the updates. For instance, here's what pyquake dumps for a level transition:
...and so on. If we haven't yet found a server info message with our map, we can return |
As the title suggests. Specifically the type where all the levels are in a single .dem file (the kind that JoeQuake now produces). In terms of implementation it will be easiest to have the ghost start in sync with the player at the start of each level, rather than carrying over time delta from the previous level. It'd be nice to have the option of carrying the time delta over, though.
The text was updated successfully, but these errors were encountered: