There are two big updates to mods this release: Steam Workshop support, and filling out the modding API.
Modders will be able to upload their mods to Steam Workshop using our custom tool, and then other players can get the mod installed with one click! Instructions for getting the tool are available in this post!
API Additions and Improvements
The API version has been updated to 3! Please test your mods with the preview. When you mod has been updated to work with this version (or if it already works!), then set api_version = 3 in your modinfo.
The Modding API has a bunch of new additions. You can check out the API Examples mod for documentation and examples, but here are the new functions:
[*]AddRecipe (for crafting recipes)
[*]Ingredient (for crafting recipes)
[*]AddIngredientValues (for cookpot recipes)
[*]AddCookerRecipe (for cookpot recipes)
[*]AddClassPostConstruct (for widgets, and other things)
PostInit function can now "stack" so you can call, for example, AddSimPostInit multiple times and each function given will run when the sim starts.
SampleCharacter mod shows the correct place to add the character name string so that the throne works correctly. Also, can now specify the gender of your character so that the pronouns in the end-game sequence are correct.
A number of engine-level error messages have been improved to help with debugging.
The Sample Character mod has moved its Strings assignments and has a few small additions which allow it to work with Maxwell's Throne.
Engine Changes to be aware of
Widgets have been rearranged and changed. Any widgets that you use will have to have their "require" path updated to the widgets folder, and the class are no longer global so they must be stored to a local. So this:
[*]local Image = require("widgets/image")
Input behaviour has changed a lot in anticipation of controller support. There are two major things to look out for:
[*]There are no longer "mouse" events. Now everything happens through the OnControl handler on widgets. All our widgets have been updated for this new form, please look there for examples which match your needs or ask for help if you have a specific problem.
[*]Focus control is much more automatic and you shouldn't have to worry about it for now.
Edited by Ipsquiggle, 14 August 2013 - 01:46 PM.