You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Makes it easier for custom rom hacks to easily provide a list of changed addresses for the Tracker to load up and use.
Process of implementation
Move the hard-coded addresses from GameSettings.lua to JSON files, one file for each support game version (such as Emerald, FireRed v1.0, FireRed v1.1, etc.)
Example custom code extension
Here is a snippet of code showing how a custom code extension uses this concept to replace the used addresses:
self.offsetFiles = {
[2] = "offsets_em.json",
[3] = "offsets_fr.json"
}
self.extensionKey = "MAXExtension"
local offsetFile = self.offsetFiles[GS.game] or "offsets.json"
local filePath = FileManager.getCustomFolderPath() .. self.extensionKey .. FileManager.slash .. offsetFile
local off = FileManager.decodeJsonFile(filePath)
--pass the off table into a function that loads everything into the game settings
Example JSON file
Definitely want a bit more structure than this, but here is a loose example
Tell us about your request
Goal of this change
Makes it easier for custom rom hacks to easily provide a list of changed addresses for the Tracker to load up and use.
Process of implementation
Move the hard-coded addresses from
GameSettings.lua
to JSON files, one file for each support game version (such as Emerald, FireRed v1.0, FireRed v1.1, etc.)Example custom code extension
Here is a snippet of code showing how a custom code extension uses this concept to replace the used addresses:
Example JSON file
Definitely want a bit more structure than this, but here is a loose example
Additional Information
No response
The text was updated successfully, but these errors were encountered: