-
Notifications
You must be signed in to change notification settings - Fork 15
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
Replays #42
Open
ExplodingImplosion
wants to merge
12
commits into
Kehom:target-gd3.2
Choose a base branch
from
ExplodingImplosion:Replays
base: target-gd3.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Replays #42
ExplodingImplosion
wants to merge
12
commits into
Kehom:target-gd3.2
from
ExplodingImplosion:Replays
Commits on Sep 29, 2022
-
snapshotdata.gd: Now has a separate "lifetime history" of stored snapshots and EncDecBuffer. New function, _add_to_lifetime_history, that accepts a snapshot, encodes it and appends it to to the end of the lifetime history before clearing the lifetime history buffer's buffer New function, _convert_replay_to_snapshots grabs a replay of encoded snapshot data and decodes it through the lifetime history buffer, replacing each index of the replay with a snapshot before clearing the lifetime history buffer and returning the replay itself. New function, _convert_replay_to_lifetime_history, which is the same as the previous function, but instead of modifying the replay array and returning it, the snapshots are decoded and deposited directly in the _lifetime_history array. replay.gd: stores gzip compressed "replays" of serialized snapshot data to files. If the game is running out of the editor (even if project is not opened specifically), replays are saved to res://replays/ . Otherwise, replays are saved to a replay directory in Godot's userdata folder. gitignore updated to not include .REPLAY files or the replays/ folder.
Configuration menu - View commit details
-
Copy full SHA for cdddab8 - Browse repository at this point
Copy the full SHA cdddab8View commit details
Commits on Sep 30, 2022
-
Cleaned some code that didn't do anything Capitalized print strings Reorganized/changed some of the print strings get_file_name renamed to make_file_name for clarity organized similar file opening functionality into a simple function call removed redundant file_path_normal and file_path_debug functions Saving a replay now has an optional "name" argument (default is just 'Replay')
Configuration menu - View commit details
-
Copy full SHA for d06723d - Browse repository at this point
Copy the full SHA d06723dView commit details
Commits on Oct 2, 2022
-
Decoupled replay from network addon
replay.gd: File moved to new folder Added copyright notice header Replays can now be initialized as their own objects snapshotdata.gd: Removed previous coupling with replay.gd, now 'reverted' to previous. TODO: implement a variable rate at which replays store full snapshots to make playback easier.
Configuration menu - View commit details
-
Copy full SHA for 202337a - Browse repository at this point
Copy the full SHA 202337aView commit details -
.gitignore reverted snapshotdata whitespace restored
Configuration menu - View commit details
-
Copy full SHA for cfa85dd - Browse repository at this point
Copy the full SHA cfa85ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0505d78 - Browse repository at this point
Copy the full SHA 0505d78View commit details -
Configuration menu - View commit details
-
Copy full SHA for f75604f - Browse repository at this point
Copy the full SHA f75604fView commit details
Commits on Oct 3, 2022
-
removed an extra space typo from the dbghelper debug helper addon section replayviewer updates, unfinished replays now save snapshots to their arrays and encode upon being saved save func no longer static, moved to what was previously save_self
Configuration menu - View commit details
-
Copy full SHA for fb75cf7 - Browse repository at this point
Copy the full SHA fb75cf7View commit details -
main.gd: replayviewer filepath fixed replayviewer.gd and .tscn: general updates megamain.gd: replay instance variable, records replays if project settings say so replay.gd: has scene_path instance variable (serializes it when saved), added functions to check if a snapshot is a full snapshot based on its relative signature, and to check if a specific snapshot from a replay is a snapshot. also added some helper funcs for accessing the "status" of a replay. (How 'long' a replay is, how far through the replay a given frame index is). made the replay an actual plugin
Configuration menu - View commit details
-
Copy full SHA for 289d458 - Browse repository at this point
Copy the full SHA 289d458View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6ee4ea - Browse repository at this point
Copy the full SHA a6ee4eaView commit details -
reading a serialized replay gets up to build_tracker after replayviewer.gd calls read_replay --> load_new_replay --> deserialize_history --> decode_delta
Configuration menu - View commit details
-
Copy full SHA for 15ec517 - Browse repository at this point
Copy the full SHA 15ec517View commit details
Commits on Oct 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ed3510b - Browse repository at this point
Copy the full SHA ed3510bView commit details
Commits on Oct 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0100391 - Browse repository at this point
Copy the full SHA 0100391View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.