so I did all this, and that's good, but I've not gotten much sleep and this took a couple hours.
so... I've completely forgotten WHY I needed to do this.
so I did all this, and that's good, but I've not gotten much sleep and this took a couple hours.
so... I've completely forgotten WHY I needed to do this.
Here's how I documented it.
My script runs the game to frame 2000, after pushing the A button at 4 different times. Then screenshot. I can tell from the thumbnail if it made it to the dialogue or not! so I just manually bisect the numbers until I get minimums.
882 is the earliest you can select slot 1.
it's those fade-ins, fade-outs. those things take forever.
@endrift is there a way for my script to ensure only one copy of it is running? if I reload it (by using recent scripts), I get two copies running. I have to reset/reload instead. can my script do that itself somehow? unload any prior copy?
@xssfox lua, sadly
I was accidentally running multiple copies of the same script all trying to push keys at specific times.
this created some HILARIOUS non-deterministic behavior!
@endrift and I just crashed it. unfortunately I have no debugger or anything installed here so it just vanished... is there a log file I could look at?
@neffo I'm running it on different rom files. they're all Kingdom Hearts: Chain of Memories but I'm injecting code and data changes into them
@endrift ahh, missed that! thanks!
frame 766 is the earliest you can press A for New GAme
673 for the main menu.
yes I'm doing this manually
@endrift not a major one, just a bit of a confusing one since there was no error.
another question: am I right that you can't turn on turbo from a script? and there's no "always turbo" option, like turning off all throttles in bizhawk?
@endrift hmm. I think that might have ended up as C:\Program Files\mGBA? Which my user doesn't have permissions to write to
I manually did it: The first frame you can push "A" to skip the logos is 622.
621 is too early.
I'm always disappointed in computers ability to let me be brute force stupid.
I have to write my own code to be stupid, which surely defeats the point
why can't I bisect my TAS for the GBA rom about donald duck
@endrift speaking of screenshots, where do they go?
I tried emu:screenshot("filename.png") but filename.png doesn't seem to appear anywhere (not in the screenshots folder I set in paths, or the same as the rom, or C:\) so I have to do an absolute path
@endrift @leo but would it be fun? absolutely!
actually this game has a weird callback mechanism so I could just inject my own code in there (without changing the rom!) and it'll get called by the end of the frame
you never know when the next time you'll need to optimize time-to-donald-duck-speaking on some GBA game
why do things manually that'll take maybe 5 minutes when you could spend an hour writing automation to do it for you in 30 minutes?
Hardware / software necromancer, collector of Weird Stuff, maker of Death Generators. (she/they🏳️⚧️)
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.