
(it also allows me to better explain the structure of the mod entries we’re going to store in the file) TypeScript is basically just JavaScript with extra features - so don’t panic and read this quick introduction to TypeScript for JavaScript developers: Īlthough the FBLO API was primarily designed to cater for games that use files to enable, and to sort the order in which mods are loaded into the game the FBLO API is actually far easier to use with games that do not require a specific file structure when storing the load order. Please note that this tutorial will be using “TypeScript” which allows developers to describe the structure of an object upfront and provides code validation which helps with avoiding type related bugs. The full code used in this tutorial can be found here. Please use this document if you understand how to use the FBLO API but are unsure how to use it to add a load order page to your non-file based mods loading game. This document expects the reader to have read through the primary FBLO documentation here and to be familiar with its serialize/deserialize/validate concepts, as it will not cover these in much detail. eg: If modlet A removes a node and then Modlet B tries to access the now removed node (it will just fail silently with a warning in the console).Using the File Based Load Order (FBLO) API to add load ordering to Non-File Based Games Tutorial So hard modding the xml files is no longer necessary.īecause of the xpath processing on the fly is where load orders are necessary when combining mods, just like in skyrim as there may be a dependency on another "modlet". The config directory consists of files of the same name as vanilla, but contain XPath directives which are now processed at run time. Inside the main folder is mod/ModInfo.xml containing the mods Name/description/version. We have been leaving this up to users to do manually.

Currently the only way to change the load order is to rename the folder. Inside the mods folder you place your "modlets". In Alpha 17 the game will now look for a folder called "Mods" in the root game directory. _"Not really any specific link as such, but I'll detail as best I can.


Request to Enhanced 7DTD support with Load ordering.
