Dinones / Nintendo-Switch-Pokemon-Shiny-Hunter

Search for shiny pokémon on your Nintendo Switch while sleeping!
Other
81 stars 5 forks source link

Game Not Starting #10

Closed ReZeroPlat closed 2 months ago

ReZeroPlat commented 2 months ago

I'm having another problem, the controller connects, exits the pairing screen, opens the game and stops pressing "A", after some time closes the game and reopens it and restarts this loop. Screen is set to 100%

Dinones commented 2 months ago

Can you answer these questions:

  1. What game are you playing?
  2. What are the FPS of the program?
  3. What state is the program when it enters the game?
  4. What option of the Shiny Hunter are you running?
  5. What pokemon are you trying to catch?
ReZeroPlat commented 2 months ago

The game is Pokemon Brilliant Diamond 4 Fps Restart_Game_1 Static Encounter Latias

Dinones commented 2 months ago
  1. Regarding de FPS, they are very low, did you add the capture card as explained in the instructions as a "Webcam" instead of an "USB Device" as seen in the image?

image

If not, please do it. If yes, can you tell me the FPS you get by running python3 GUI.py and selecting the option Open GUI using capture card?

  1. Not about the Latias, can you confirm you are right in front of the Latias and the player just need to press 'A' to enter the combat?
  2. I need to know what is thre previous state before getting to the RESTART_GAME_1 one.
ReZeroPlat commented 2 months ago

the problem is that I never had the "webcam" option under "usb". For Latias yes, i am precisely in front. The previous state is WAIT_PAIRING_SCREEN

I'm using 7.0.20 as the oracle version and 6.1.50_Ubuntur161033 as the guest addition version. I also downloaded the version of Ubuntu recommended by you

ReZeroPlat commented 2 months ago

I solved it, I had to install the extension pack, now the fps are 30 and the game opens but as soon as it enters combat the program freezes because it says it has found a shiny even if it's not true, the status is: "Shiny_Found"

Dinones commented 2 months ago

Can you please send me the video the program records, please? It should be found in the Media/Videos/ folder.

ReZeroPlat commented 2 months ago

sure, this is the link

https://www.youtube.com/watch?v=kf54_Hw6jLM

ReZeroPlat commented 2 months ago

I also tried with rayquaza and the result is the same

ReZeroPlat commented 2 months ago

Isn't it possible to install the old shiny detection system?

Dinones commented 2 months ago

Hi! You will have the same problem with the previous version as the issue is on detecting specific pixels. There are two possible options:

  1. Your program is working on a different frame rate than mine and it takes some extra ms to read frames.
  2. Maybe your capture card is reading slightly different the colors of the game (every capture card has different quality, mine is only 7€).

In order to see what is happening, could you please increase the value of SHINY_DETECTION_TIME from 1 to 1.5 or 2 in the Constants.py file? If the error persists, then we are on the case number 2.

ReZeroPlat commented 2 months ago

yes, the problem persists. In any case I think I have the same game capture as you

Dinones commented 2 months ago

I think I found the issue. In the video you sent to me you can see before entering the latias combat the screen slightly flashes to a short white full screen (minute 0:38 of the video). Can you please tell me if by the end of this flash the state is ENTER_COMBAT_2?

ReZeroPlat commented 2 months ago

yes, right after the flash the status is: ENTER_COMBAT_2

Dinones commented 2 months ago

Please can you download the latest version of the program and confirm me whether the error has been solved or not?

ReZeroPlat commented 2 months ago

updating the version of the program now freezes in front of the pokemon and then restarts

VirtualBox_dinones_14_08_2024_16_30_19

Dinones commented 2 months ago

Sorry, you are right, I forgot to change another script. Can you please download the latest version and try again?

ReZeroPlat commented 2 months ago

it finally seems to work, now all that remains is to find a shiny to confirm, thank you very much!!!

Dinones commented 2 months ago

Happy to hear that! Please tell me on discord if you find any pokémon.

As a reminder, you can execute the check lost shiny option of the Image_processing.py file to check if the program has skipped any shiny pokémon. It may calm you if it takes a lot of time to appear.