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

Get an error #20

Open
whyisthesheep opened this issue May 1, 2023 · 15 comments
Open

Get an error #20

whyisthesheep opened this issue May 1, 2023 · 15 comments

Comments

@whyisthesheep
Copy link

NLua.Exceptions.LuaScriptException: error loading module 'config' from file '.\config.lua':
	.\config.lua:7: invalid escape sequence near '"C:\U'

@pdrok
Copy link

pdrok commented May 2, 2023

you should replace \ with / on the path
ex: instead of

_M.BizhawkDir = "C:\Users\users\Documents\Ai\BizHawk-2.2\"

you should use:

_M.BizhawkDir = "C:/Users/users/Documents/Ai/BizHawk-2.2/"

@whyisthesheep
Copy link
Author

@pdrok Thank you but now I am getting this error

NLua.Exceptions.LuaScriptException: A .NET exception occured in user-code
System.Exception: Essential zip section not found: BizVersion
   at BizHawk.Client.Common.ZipStateLoader.GetLump(BinaryStateLump lump, Boolean abort, Action`2 callback, Boolean isZstdCompressed)
   at BizHawk.Client.Common.ZipStateLoader.GetLump(BinaryStateLump lump, Boolean abort, Action`1 callback)
   at BizHawk.Client.Common.SavestateFile.Load(String path, IDialogParent dialogParent)
   at BizHawk.Client.EmuHawk.MainForm.LoadState(String path, String userFriendlyStateName, Boolean suppressOSD)
   at BizHawk.Client.Common.SaveStateLuaLibrary.Load(String path, Boolean suppressOSD)

@ryudious
Copy link

ryudious commented May 3, 2023

Don’t bother. The Loading of saved data still does not work. Even with the code that was mentioned in another post. It will not load the state.pool file

@whyisthesheep
Copy link
Author

@AxelMGrey ah ok so the project currently doesn't work?

@pdrok
Copy link

pdrok commented May 3, 2023

The project is working, but the issue could be related to the folder where you placed the file. You need to carefully read the instruction part in the README file.
I got it running on Windows 11 with BizHawk-2.2.

image

@ryudious
Copy link

ryudious commented May 3, 2023

The project is working, but the issue could be related to the folder where you placed the file. You need to carefully read the instruction part in the README file. I got it running on Windows 11 with BizHawk-2.2.

image

It works, but it will NOT load! You can not los the file back. The issue isn’t it working, it’s loading. This new file system does not work. None of them do.

@ryudious
Copy link

ryudious commented May 3, 2023

@AxelMGrey ah ok so the project currently doesn't work?

It works, just the loading doesn’t work. The read me is lying. Try it yourself. You can save but you won’t be able to load. Don’t listen to anyone saying it does. All Forks with this new fuel system does not LOAD

@pdrok
Copy link

pdrok commented May 3, 2023

image
I was able to load the save state, also replay the top score for each save. It works on my machine. :)

@ryudious
Copy link

ryudious commented May 3, 2023

image I was able to load the save state, also replay the top score for each save. It works on my machine. :)

Thats awesome! You had to of edited the lua tho. All I get is Nill and neuron error while loading. As do 99% of people on here on all forks with the new saving/loading. Can you share it if you could?

@pdrok
Copy link

pdrok commented May 3, 2023

I put the folder neat-mario from this repository inside the folder: BizHawk-2.2\Lua\SNES\

image

Then I changed the following on the file neat-mario\config.lua:
image

you need to put your own directory path there where you put the BizHawk unziped, ex:

C:/Users/YOUR_USER/Downloads/BizHawk-2.2/

Then I open the script:
image

Then I load the last state pool and press start

image

image

@ryudious
Copy link

ryudious commented May 3, 2023

I put the folder neat-mario from this repository inside the folder: BizHawk-2.2\Lua\SNES\

image

Then I changed the following on the file neat-mario\config.lua: image

you need to put your own directory path there where you put the BizHawk unziped, ex:

C:/Users/YOUR_USER/Downloads/BizHawk-2.2/

Then I open the script: image

Then I load the last state pool and press start

image

image

I’ll give it a worl thank you. So you load the Latest state pool. Not the Main state.pool that stays the same. I think I was trying in 2.2.2 😂 maybe that’s why it didn’t work. Lol.

@ryudious
Copy link

ryudious commented May 3, 2023

I put the folder neat-mario from this repository inside the folder: BizHawk-2.2\Lua\SNES\

image

Then I changed the following on the file neat-mario\config.lua: image

you need to put your own directory path there where you put the BizHawk unziped, ex:

C:/Users/YOUR_USER/Downloads/BizHawk-2.2/

Then I open the script: image

Then I load the last state pool and press start

image

image

Wait, you only changed the 2nd directory? Not the top one? Why not both.

@JetpackFandango
Copy link

I followed all of these steps exactly and I still got this error NLua.Exceptions.LuaScriptException: A .NET exception occured in user-code System.Exception: Essential zip section not found: BizVersion at BizHawk.Client.Common.ZipStateLoader.GetLump(BinaryStateLump lump, Boolean abort, Action2 callback, Boolean isZstdCompressed)
at BizHawk.Client.Common.ZipStateLoader.GetLump(BinaryStateLump lump, Boolean abort, Action1 callback)

@CoriDrysdale
Copy link

I followed all of these steps exactly and I still got this error NLua.Exceptions.LuaScriptException: A .NET exception occured in user-code System.Exception: Essential zip section not found: BizVersion at BizHawk.Client.Common.ZipStateLoader.GetLump(BinaryStateLump lump, Boolean abort, Action2 callback, Boolean isZstdCompressed) at BizHawk.Client.Common.ZipStateLoader.GetLump(BinaryStateLump lump, Boolean abort, Action1 callback)

I was able to resolve this error by replacing the DP1.state file in neat-mario/pool with my own DP1.state file.

Would be helpful if adding the DP1.state file to neat-mario/pool was a part of the readme, I think.

This just gets the script to run though, it looks like loading might still be broken. I couldn't get the FitnessChangesOnly/ script to run either.

@kylechallis
Copy link

The project also works for me.

Make sure you're using BizHawk 2.2.2 (not just 2.2), and make sure you're using BizHawk prerequisites 2.1

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

6 participants