besteon / Ironmon-Tracker

A Lua script for the Bizhawk/mGBA emulator compatible with Pokemon Fire Red, Leaf Green, Ruby, Sapphire, and Emerald that tracks relevant data for the IronMon challenge.
MIT License
123 stars 44 forks source link

Included randomizer settings appear to be corrupted #345

Closed snoozbuster closed 1 year ago

snoozbuster commented 1 year ago

The first three characters of all the provided rqms files appear to be corrupted. They should be 320 but are other non-printables (eg @h in the FRLG ones). This means they don't load correctly. I got the correct settings string from this gist (note that this is an older revision, as the latest revision uses 4.6.0 strings) and confirmed that it's only the first three characters that appear corrupted.

snoozbuster commented 1 year ago

okay, never mind - I guess the randomizer program adds some other binary data at the beginning of the settings string. Either way, I couldn't get the included files to load, I had to find the settings strings and save a new copy directly from the randomizer program (which looks identical to the ones I got from the repo - I would attach it to this comment, but GH doesn't allow that).

UTDZac commented 1 year ago

Thank you for the report about the randomizer settings files included with the tracker. A few questions:

Q1. What is the exct version of the Ironmon Tracker and the exact version of the Randomizer(s) you tested with?

Q2. Which of the below settings files were you testing with?

image

For context, I manage both the settings files found within the tracker and the ones found on the gist you provided. Prior to the latest Ironmon Tracker release, I verify the included settings files would load properly with either Randomizer 4.5.1 or Randomizer 4.6.0. While the latter does output an error message in the RandomizerErrorLog.txt file found in your Tracker folder, its merely a warning and doesn't block the auto generate a rom feature.

snoozbuster commented 1 year ago

I was using 4.5.1 for the randomizer and the latest ironmon tracker. the file I was specifically trying was the FRLG Kaizo settings file

UTDZac commented 1 year ago

I'm not sure how to see the files you see or your setup. But the Tracker settings files that come included do appear to work properly for my Randomizer(s) and my tracker. This is the first report i've heard about this, so maybe its an issue on your end with your computer's environment?

Are any of your files in a zip file? If they are still "compressed" then chances are they will not work properly.

snoozbuster commented 1 year ago

I loaded up the files in HxD just to see what was up. in case there was like newlines at the end that were messing it up or something. top is the one that came with this repo, bottom is the one that works for me. highlighted is the section that's different between the two.

image

the DHUFnG variant is the one I get if I load 320WRIEEjIBAAQABwCRAAKeBnsECQEAFAACCQAuEgAAAAAABRi45ATkAYYICTIGBAIyAAUAEEZpcmUgUmVkIChVKSAxLjGwV2lQ48M4ig== (the one in the linked gist) in 4.5.1's UI and then save it as a rnqs file. I'm quite sure it's 4.5.1 as it says so in the randomizer UI.

All this being said, I had to redownload a fresh version of the rnqs file from the repo for this comparison and I figured I should try it again to see if I was still getting the error... but now it just works. I have no idea why it didn't before, I didn't change anything about the randomizer or the other settings. before I would just keep getting an error about the randomizer being unable to read the settings file. Since neither of us can repro anymore I'll close the issue - if I can get a consistent repro for you I'll come back with more details.