Player (136)
Joined: 9/18/2007
Posts: 389
I'll add another more generic script here, which I called "new-code-finder". I could identify the "should the camera now scroll" section with it. The idea is simple: The game does certain kinds of logic checks like "should we now start with the jump sequence?". As long as you don't jump at all, this code won't be executed, but all sort of other code (draw enemies, move camera, die, show gameover screen, menu selection) will. This script will therefore work the following way: - start it, and do everything you can think of EXCEPT that thing where you want to find the executed code for. - press F11 - now do the right action (for example jump) - the script pauses the emulator now - open the debugger, and try to understand what happens now.... Alternatively, it allows you to create a textfile which lists how often code at specific memory addresses got executed by pressing "numpad/". For example, if you know (or guess) that a specific code region should have been executed exactly 17 times, you would look into the textfile and see which codes have been executed at least 17 times. Limitations: Most NES games use mappers, and the script has no way to know which part of the ROM is currently visible to the NES, making the "count" part quite unreliable. Here it is (consider it a WIP)
Site Admin, Skilled player (1237)
Joined: 4/17/2010
Posts: 11274
Location: RU
Oh wow, shall it work for this too?
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Player (136)
Joined: 9/18/2007
Posts: 389
Well, I haven't tried it on this game... In that case, you might try to let the script run from 037 to 117, and then press F11, and then see if it works.
Player (57)
Joined: 6/15/2005
Posts: 312
Location: Sweden
Diman channel 3 test: http://tasvideos.org/userfiles/info/63263426524777178 Moderator edit: I moved your post here. Please use the main game thread for discussing new research. — moozooh