tboi-reisen
The Binding Of Isaac: Afterbirth+ mod compiler
Setup
This script requires npm and nodejs installed
npm i -g tboi-reisen
Usage
tboi-reisen main.lua output.lua
Flags
--no-import
- disable import feature--no-dbg
- disable dbg-script injection--production
- disable dbg-script (for production builds)--watch
- watch input file for changes and recompile it
What it does
- It injects debug script in the end (can be disabled by
--no-dbg
argument)
Right now, it implements only one function - log('String')
, which renders string on MC_POST_RENDER
event
- It let's you use
import
in your lua scripts to combine several files together (can be disabled by --no-import
argument)
Example 1:
main.lua
import useless_crap from 'useless_crap.lua'
useless_crap.lua
this_is_a = 'bucket'
return this_is_a
output.lua (generated by script)
local useless_crap = (function()
this_is_a = 'bucket'
return this_is_a
end)()
Example 2:
main.lua
import 'theres_more.lua'
theres_more.lua
local bucket = 'Dear god!'
output.lua (generated by script)
local bucket = 'Dear god!'