Last updated: December 10th, 2018. Latest version here.

Advanced Modding

Advanced guide.

In this section we'll provide and explain advanced modding examples, for those who want to know how to mod parts of the game that involve more programming. We'll be covering Lua files for components, AI, etc and also the UI files.

Table of Contents [WIP!]

  1. User settings and logging : how to link options declared in user_settings.json for using them in your mod and how to print to the stonehearth.log from your Lua files.
  2. Events : how to trigger and listen to events from Lua files.
  3. Components and controllers
  4. AI actions : how AI works in Stonehearth and how to add your own AI actions to the game.
  5. Adding services
  6. Call handlers
  7. UI views