Add script to communicate map update information#8
Open
culk wants to merge 2 commits into
Open
Conversation
This script can be used to automatically change the map tab of a connected tracker based on the players location. Monitors memory locations for the current world, room, and whether the player is in the gummi ship. Uses this information to communicate updates to the players current world ID.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Sends the player's current world and room ID to the AP client by creating a "mapupdate" file in the game communication path. A new "mapupdate" is sent whenever the player enters the gummi ship or moves to a new world. The specific events that will cause a map update are:
Tested only on the Steam version of KH1FM, but the memory addresses used are also used by other scripts in the rando mod. During testing I did not notice any instances of incorrect map information being communicated such as stuttering between maps or sending the wrong map information.
mapupdate files in the game communication path take the form of
mapupdate_{timestamp}_{world_id}_{room_id}. During testing, approximately 150 of these files were created during a 3 hr game with all extra worlds turned off. These files are cleaned up between play sessions.In order for this information to reach the tracker they will have to be read by the AP client and sent as Bounce packets.