Jump to content

Anybody with LUA skills here?! Need help! (Script error)

Go to solution Solved by fizzlesticks,

Delete all the files the script makes if there are any (temp.pool, backup.0.somethingorother, etc)

Make a savestate inside of the level you want the script to learn

    Go to \bizhawk\SNES\State\ and find the state for the slot you saved it in

        Rename that save as DP1.state

        Move DP1.state to the same directory you saved the LUA script in

Open the LUA console and drag in the script, it should autorun 

Hi i am trying to run a script called MarI/O in the bizhawg emulator in Super Mario world ;) and i always get this error:

 

LuaInterface.LuaScriptException: [string "main"]:825: A .NET exception occured in user-code

 

and sometimes

 

LuaInterface.LuaScriptException: [string "main"]:829: A .NET exception occured in user-code

 

This is the code:

 

http://pastebin.com/ZZmSNaHX

 

And how it works and how it should look like:

 

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

 

Help would be great!

Link to post
Share on other sites

wait what? isnt this a problem in your emulator? since it is saying that there is a .NET error??

Actually, i am not sure. It worked once, but now i get these errors :/ The Emulator should´t be a problem but i can´t be 100% sure because i only have basic LUA knowledge and this script is waaay to complicaded for me :/

Link to post
Share on other sites

Actually, i am not sure. It worked once, but now i get these errors :/ The Emulator should´t be a problem but i can´t be 100% sure because i only have basic LUA knowledge and this script is waaay to complicaded for me :/

did you modify the code and then it stopped working? or did it just happen without code modification?

Link to post
Share on other sites

did you modify the code and then it stopped working? or did it just happen without code modification?

Yesterday, i used the same code. I didn´t changed anything. A friend had the same errors at the first attempt :/ Do you have a clue what LUA is trying to tell me?

Link to post
Share on other sites

Delete all the files the script makes if there are any (temp.pool, backup.0.somethingorother, etc)

Make a savestate inside of the level you want the script to learn

    Go to \bizhawk\SNES\State\ and find the state for the slot you saved it in

        Rename that save as DP1.state

        Move DP1.state to the same directory you saved the LUA script in

Open the LUA console and drag in the script, it should autorun 

1474412270.2748842

Link to post
Share on other sites

Delete all the files the script makes if there are any (temp.pool, backup.0.somethingorother, etc)

Make a savestate inside of the level you want the script to learn

    Go to \bizhawk\SNES\State\ and find the state for the slot you saved it in

        Rename that save as DP1.state

        Move DP1.state to the same directory you saved the LUA script in

Open the LUA console and drag in the script, it should autorun 

Thank you so mutch! I have been working on this since 4 hours! If this would be reddit i would give you gold! Thanks :D

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×