GithubHelp home page GithubHelp logo

Comments (1)

KeeyanGhoreshi avatar KeeyanGhoreshi commented on August 13, 2024

The script should stop execution after beating Misty, it shouldn't continue to go anywhere until you run 3.lua. The relevant code starts here. If you are entering a wild battle with a pidgey near the daycare, it's likely an issue with applying a repel prior to entering the grass.

I would assume that if it is moving up and down endlessly in a wild battle, the problem occurs either before Charizard or Magikarp are put in the daycare for training. On my end this section of code works fine, so it's difficult for me to pinpoint a reason why it doesn't work for you, but my assumption is usually that an input gets skipped due to occurring too soon after a previous input. If you can identify when the issue happens, you can probably add some delay to the inputs where it fails.

To troubleshoot I would:

  1. Create a second list of inputs b that is a copy of the inputs in a up to the point you want to test at
  2. replace m.executeOrders(a) with m.executeOrders(b) here to make the script execute inputs up to that point
  3. Make a save state in your emulator
  4. Copy the inputs from a past this point, up until Charizard finishes daycare training here, and put it into b, then run it again
  5. Make another save state if the code succeeds, and do the same thing for magikarp by copying inputs from line 666 to here
  6. If it succeeds, problem solved, if it fails, now you know when the problem occurs.
  7. Use save states to diagnose the problem by watching the game at the relevant time, right before it enters the daycare either before magikarp or charmander
  8. Either try to fix the problem (by adding delay to inputs) or let me know your findings and I can try to help further

Sorry it's not working for you right out of the box, I wish I could help further but without more info it's hard for me to diagnose the issue. Trust me I know how tedious it can be to debug this stuff.

from pokemonfireredsinglesequence.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.