SetMainStickY(pos as Number) //Sets the main control stick Y Pos SetMainStickX(pos as Number) //Sets the main control stick X Pos Not really needed atm cause buttons are pressed for only 1 frame ReleaseButton(Button as String) //Releases the indicated button. This is a bit buggy still and Buttons need to be pressed every frame or they are automatically released PressButton(Button as String) //Presses the indicated button down, can call this with "Start" for example to press the Start button down. To the return value you simply need to add the offset 0x34E4 and then do a ReadValueFloat with the resulting address to get Links speed (in TWW) You can use this function for example to get Links Pointer from the address 0x3ad860. GetPointerNormal(memoryAddress as Number) //Reads the pointer address from the memory, checks if its valid and if so returns the normal address. WriteValueString(memoryAddress as Number, text as String) //Writes the string to the address WriteValueFloat(memoryAddress as Number, value as Number) //Writes 4 Bytes as a Float to the address WriteValue32(memoryAddress as Number, value as Number) //Writes 4 Byte to the address WriteValue16(memoryAddress as Number, value as Number) //Writes 2 Byte to the address WriteValue8(memoryAddress as Number, value as Number) //Writes 1 Byte to the address ReadValueString(memoryAddress as Number, length as Number) //Reads "length" amount of characters from the address as a String ReadValueFloat(memoryAddress as Number) //Reads 4 Bytes as a Float from the address ReadValue32(memoryAddress as Number) //Reads 4 Byte from the address ReadValue16(memoryAddress as Number) //Reads 2 Byte from the address ReadValue8(memoryAddress as Number) //Reads 1 Byte from the address Dolphin will automatically recognize them after that. You can write new scripts following the template of a (or any other implemented script) and save them in Scripts folder of the build. You have to click on Cancel while the desired script is selected to do so.
Important: Please note that closing the Execute Script window does NOT stop the script execution.
To stop the script execution, click on Cancel. In the new window, select the desired script (note that only Lua scripts in Scripts folder are shown in the list) and click on Start whenever you want to execute it.
To run already implemented Lua scripts, go to Tools - Execute Script.
NOTE: To build WXmac needs to be installed and can be installed via Homebrew on 10.12+ with brew install wxmac, if you are using Big Sur use brew install -build-from-source wxmac, AS OF NOW BIG SUR IS WORKING Lua Core Running scripts Main Branch is for 5.0-stable, 5.0-7002 is for 5.0-7002 version of Dolphin and is not the most stable, 7002-linux is 5.0-7002 but for linux and does not build, dev-lua-core is for a recent version of dolphin specifically 5.0-14095 and builds but doesn't work. The Lua API is based on Dragonbane0's Zelda Edition, which can be found here, and this is build is based of SwareJonge's Dolphin Lua Core, found here. This project adds Lua support and TAStudio interface in the revision 5.0 of Dolphin Emulator. Dolphin Lua Core (custom Dolphin build, now on Mac)