Skip to content

Instantly share code, notes, and snippets.

@jlitewski
Last active December 22, 2015 01:19
Show Gist options
  • Save jlitewski/6396023 to your computer and use it in GitHub Desktop.
Save jlitewski/6396023 to your computer and use it in GitHub Desktop.
Trillek Modfile Layout suggestion
[Modfile]
## This is ignored by the parser, since it's a comment
name: Suggestion ## Type: String (UTF-8); The human readable name of the mod
version: 1 ## Type: String (UTF-8); The mod version. The reasoning for "String" instead of "int" or similar is because of
## versions like "Alpha HerpDerp v0.0.1.gamma" that will start appearing
type: Lua ## Type: String (UTF-8); The type of mod this is. Most generally it'll be Lua, but it could be anything
file: /path/to/mod.lua ## Type: String (UTF-8); The main file (or script) of this mod
permissions { ## permissions mods request to use. Optional
## These permissions would be used for riskier parts of the API that could be abused.
trillek.network.rawpacket,
trillek.os.write
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment