Post subject: Autohold script causes emulator crash
Player (100)
Joined: 3/20/2008
Posts: 466
Location: Montreal, Quebec, Canada
I was reading http://tasvideos.org/LuaScripting/Macros.html on how to get auto hold to work in SNES9x, but it immediately crashes the emulator. Note that I am using 1.43 v17 svn 146.
Post subject: Re: Autohold script causes emulator crash
Rolanmen1
He/Him
Experienced player (764)
Joined: 2/20/2009
Posts: 569
Location: Dominican Republic
Vykan12 wrote:
I was reading http://tasvideos.org/LuaScripting/Macros.html on how to get auto hold to work in SNES9x, but it immediately crashes the emulator. Note that I am using 1.43 v17 svn 146.
Inside the while loop, it needs to have the following instruction: emu.frameadvance()
Player (42)
Joined: 12/27/2008
Posts: 873
Location: Germany
An alternative is to use the gui.register() function, the function regstered will be executed every frame.
Language: Lua

function holdY() joypad.set(1,{Y=true}) end gui.register(holdY)
Player (100)
Joined: 3/20/2008
Posts: 466
Location: Montreal, Quebec, Canada
I just used the input macro editor instead. However, it wouldn't be a bad idea to fix the page anyway.