Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR - Failed to write frame to disk #6

Open
PJ23456 opened this issue May 4, 2022 · 5 comments
Open

ERROR - Failed to write frame to disk #6

PJ23456 opened this issue May 4, 2022 · 5 comments

Comments

@PJ23456
Copy link

PJ23456 commented May 4, 2022

This error keeps appearing every frame and it occasionally just stops working. it stops putting the options there and it stops working when you react on your own.

@DrSkunk
Copy link
Owner

DrSkunk commented May 4, 2022

Last time I had that error was because I hadn't any disk space left, the time before that was because the permissions of the folder were wrong.

Could you check those? If that didn't fix it, I'll see if I can get it working locally again.

@PJ23456
Copy link
Author

PJ23456 commented May 4, 2022

I made sure I have disk space. As well as it seems like the permissions are correct except that I was unable to set it to not read only but im unsure if that matters. Also I have been running cd as admin.

@PJ23456
Copy link
Author

PJ23456 commented May 4, 2022

Also does the ROM matter I have been using the special pikachu yellow version

@PJ23456
Copy link
Author

PJ23456 commented May 5, 2022

It also seems as though when it saves it stopped the bot from running for some reason and it outputs that it saves and then goes back to being command prompt not running anything

@Danster21
Copy link

Danster21 commented May 9, 2022

It also seems as though when it saves it stopped the bot from running for some reason and it outputs that it saves and then goes back to being command prompt not running anything

I get the same issue. I believe it has something to do with the bot looking for a .sav file instead of creating one. When I save my game crashes and my command prompt states:

node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open 'C:\Users\danny\Downloads\Games\Gamebot\Attempt 3\discord-plays-pokemon-main\saves\2022-05-09T00:33:07.614Z.sav'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\danny\\Downloads\\Games\\Gamebot\\Attempt 3\\discord-plays-pokemon-main\\saves\\2022-05-09T00:33:07.614Z.sav'
}

Node.js v17.7.2

It looks like it's trying to tell me that no such file exists and then lists the timestamped .sav file it should be creating, not looking for. I tried creating a .sav beforehand (copying from one made by another emulator but playing the same game) and the program wouldn't start. For that I get the error:

2022-05-09T00:29:31.410Z - INFO - Loading latest save PokemonRed.sav
undefined:1



SyntaxError: Unexpected token  in JSON at position 0
    at JSON.parse (<anonymous>)
    at GameboyClient.<anonymous> (C:\Users\danny\Downloads\Games\Gamebot\Attempt 3\discord-plays-pokemon-main\dist\GameboyClient.js:179:40)
    at step (C:\Users\danny\Downloads\Games\Gamebot\Attempt 3\discord-plays-pokemon-main\dist\GameboyClient.js:33:23)
    at Object.next (C:\Users\danny\Downloads\Games\Gamebot\Attempt 3\discord-plays-pokemon-main\dist\GameboyClient.js:14:53)
    at fulfilled (C:\Users\danny\Downloads\Games\Gamebot\Attempt 3\discord-plays-pokemon-main\dist\GameboyClient.js:5:58)

Node.js v17.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants