start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
start [2020/05/06 16:31] – [More info on:] maxime | start [2020/06/17 10:56] – [More info on:] ash | ||
---|---|---|---|
Line 9: | Line 9: | ||
* ** [[changelog|Changelog]] ** | * ** [[changelog|Changelog]] ** | ||
* ** [[migration|Migration Notes]] ** | * ** [[migration|Migration Notes]] ** | ||
- | * ** [[guides|Guides]] ** | + | * ** [[guides|Community |
===== More info on: ===== | ===== More info on: ===== | ||
Line 15: | Line 15: | ||
* [[enumerations|Enumerations]] | * [[enumerations|Enumerations]] | ||
* [[example-mods|Example Mods]] | * [[example-mods|Example Mods]] | ||
+ | * [[texture-usage-policy|Game texture usage policy]] | ||
* [[mod-management-functions|Mod management functions]] | * [[mod-management-functions|Mod management functions]] | ||
Line 30: | Line 31: | ||
* [[particle-effects|Create particle effects]] | * [[particle-effects|Create particle effects]] | ||
* [[material-sets|Material sets]] | * [[material-sets|Material sets]] | ||
+ | |||
+ | ==== Preview only ==== | ||
+ | |||
+ | * [[foundation-library-functions|Foundation library functions]] | ||
+ | * [[version-library|Version library]] | ||
+ | * [[behavior-trees|Behavior trees]] | ||
+ | * [[events|Events]] | ||
===== Where do I start? ===== | ===== Where do I start? ===== | ||
Line 57: | Line 65: | ||
In order to include another LUA file, you can call the '' | In order to include another LUA file, you can call the '' | ||
- | <code lua> | + | < |
myMod: | myMod: | ||
</ | </ | ||
This will execute the script '' | This will execute the script '' | ||
- | <file lua anotherscript.lua> | + | <code lua anotherscript.lua> |
local myMod = ... -- retrieve arguments passed to the script | local myMod = ... -- retrieve arguments passed to the script | ||
-- do stuff with myMod | -- do stuff with myMod | ||
-- ... | -- ... | ||
- | </file> | + | </code> |
In addition, you can pass any number of variable to the called script: | In addition, you can pass any number of variable to the called script: | ||
- | <code lua> | + | < |
myMod: | myMod: | ||
</ | </ | ||
- | <file lua anotherscript.lua> | + | <code lua anotherscript.lua> |
local myMod, anInteger, aString, anArray = ... -- retrieve arguments passed to the script | local myMod, anInteger, aString, anArray = ... -- retrieve arguments passed to the script | ||
- | </file> | + | </code> |
===== Enabling / Disabling a mod ===== | ===== Enabling / Disabling a mod ===== | ||
Line 110: | Line 118: | ||
For this function to work, the user must manually set the field '' | For this function to work, the user must manually set the field '' | ||
- | ===== What is this generated_ids.lua file? ===== | + | ===== What is this generated_ids.lua file? ===== |
Internally, Foundation uses random unique IDs (GUID) to identify most objects and resources. | Internally, Foundation uses random unique IDs (GUID) to identify most objects and resources. | ||
When a new asset is added to the mod, Foundation will create a new ID for it, and will store the association between the " | When a new asset is added to the mod, Foundation will create a new ID for it, and will store the association between the " | ||
Line 117: | Line 126: | ||
===== Sharing a mod ===== | ===== Sharing a mod ===== | ||
+ | |||
Modders are encouraged to use **mod.io** to share their mods. Mods shared this way can be found and downloaded from the in-game mod browser. | Modders are encouraged to use **mod.io** to share their mods. Mods shared this way can be found and downloaded from the in-game mod browser. | ||
Line 122: | Line 132: | ||
You'll have to upload a zip of your mod. Make sure the zip contains directly the mod files ('' | You'll have to upload a zip of your mod. Make sure the zip contains directly the mod files ('' | ||
+ | |||
+ | ===== Quickly reload mods ===== | ||
+ | |||
+ | When developing and testing a mod, you can quickly reload your game by pressing '' |
start.txt · Last modified: 2022/03/30 10:53 by maxime