Open mataln opened 2 years ago
@mja2106 Just out of curiosity, which games are you having issues with it on?
I've been using NXBT for around a month now and have found it to be an amazingly powerful tool for automating tasks on some games (e.g. releasing boxes of Pokemon). However, I am having this exact same issue and haven't been able to find a solution; I will write a macro, run it, and it will be working fine then all of a sudden skip an input and the automated task messes up and I have to force-stop NXBT as a result. The skip is not always in the same place, either; sometimes I can leave a macro running for 30-45 minutes and it will carry out its function perfectly, then I run the same function again and it will randomly miss an input after a random amount of time.
Because I'm not really sure what information would be useful for helping to determine what is causing the issue, I will include everything I can think of:
If there is any useful information that I can provide then please let me know what it is and I'll do my best to post it. :)
(New to GitHub so still not 100% sure what I'm doing, I hope this was the right place for this comment!)
I've been messing around this evening trying out a couple of other things I didn't try before:
I also checked the dev branch of NXBT and saw that it had been updated 10 days ago, with the updates described "Added dynamic frequency, better timing, macro fix**". I wasn't sure if this was the issue that was fixed or not but thought it was worth a try and so updated my files to reflect the changes; again, this initially seemed promising but eventually the issues returned.
Not sure if there's anything I can do to help provide more useful info on what's going on when the issues are occurring but if there is then I'm happy to do so!
Glad to see this addressed here as well. I'm facing the same issue, while utilizing the python API to automate the breeding process in Pokémon BD. I have tried many of the above attempted fixes including massive time.sleep calls in between button presses, yet buttons are randomly missed.
I'm facing the same issue, while utilizing the python API to automate the breeding process in Pokémon BD.
I've had some success automating most aspects of the breeding process in BDSP consistently but not everything unfortunately. Here's everything I have on this:
Since BDSP has become somewhat notorious for bugs, I did consider that maybe the issue was with the game not responding to inputs properly rather than NXBT not providing them successfully (which is why I asked the OP what game they were having issues with above), but I've had issues with missed inputs on Animal Crossing and the Switch's Button Test function in Settings so I don't think that's it.
Just in case it's useful, could you post:
@Phybersaur I'm using an external bluetooth 4.0 adapter on my raspberry pi 4 model B, and similarly I've run into the same issue you have. Most of the macros work fine, both getting new eggs and hatching eggs, but it's the switching hatched pokemon into the box and eggs into the party that often gets messed up.
@Phybersaur you might find the macro below works better for collecting eggs from the man (+ I think it's faster to do it without the bike when you're left of the man - the bike doesn't accelerate quickly enough in the small number of tiles).
I've set it up so that it's robust to skipped button presses. I haven't managed to do the same for hatching them - it generally seems to be navigating the menus to get 5 fresh eggs out of the boxes when it goes wrong, but it might just be that I don't notice it during the other bits.
Egg collecting macro LOOP 1000 LOOP 90 L_STICK@-100+000 0.45s A 0.05S L_STICK@+100+000 0.45s A 0.05s
Edit: Lines 3 and 7 should be tabbed in one step and 4,5,6 by two, dunno how to format it on here
Seems to skip button presses intermittently during macros, not sure if due to bluetooth adapter? Same effect on two different bluetooth adapters though. Using the webapp