Update build instructions

This commit is contained in:
Aly 2021-03-09 16:03:49 -08:00
parent 02f5ff2b20
commit 2ea479e193
1 changed files with 4 additions and 19 deletions

View File

@ -14,23 +14,8 @@ reading, but I don't know how to do enough of that yet.
## how to build
1. Install [AmuletML](https://amulet.works/).
2. Run `amc compile main.ml -o main.lua --lib /path/to/amulet/lib`
3. Copy everything between the first `do` and the last `end` from `main.lua`
4. Create a new script in the Dolphin Lua Core Scripts directory:
2. Run `amc compile main.ml --export -o build/oot/main.lua --lib /path/to/amulet/lib`.
3. Copy `ootAI.lua` and the `oot` folder from `build` to your `Sys/Scripts`
folder in Dolphin Lua Core.
```lua
function onScriptStart() end
function onScriptCancel() end
function onScriptUpdate()
-- paste what you copied here
end
function onStateLoaded() end
function onStateSaved() end
```
This script should now run properly when you start it from the Dolphin scripts
menu.
You should now be able to start `ootAI.lua` from the Launch Script menu.