Last active
January 2, 2016 03:18
-
-
Save warmist/8242558 to your computer and use it in GitHub Desktop.
A mod init file example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local G=_G | |
local _ENV={} | |
name="Mechanical Workshops" | |
raws_list={"building_dragon_engine.txt"} | |
patch_entity=[[ | |
[PERMITTED_BUILDING:DRAGON_ENGINE_S] | |
[PERMITTED_BUILDING:DRAGON_ENGINE_E] | |
[PERMITTED_BUILDING:DRAGON_ENGINE_W] | |
[PERMITTED_BUILDING:DRAGON_ENGINE_N] | |
]] | |
patch_init="dofile(dfhack.getDFPath()..'/mods/mechanicalWorkshops/init.lua')" | |
function post_install() | |
G.print("Mechanical workshops installed successfully") | |
end | |
function pre_install() | |
G.print("Mechanical workshops installing...") | |
end | |
function pre_uninstall() | |
G.print("Mechanical workshops uninstalling...") | |
end | |
function post_uninstall() | |
G.print("Mechanical workshops uninstalled successfully") | |
end | |
return _ENV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment