User Tools

Site Tools


preview:dependencies

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
preview:dependencies [2019/05/30 10:34] – created maximepreview:dependencies [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Dependencies ====== 
  
-If your mod uses features/content created in another mod, you can declare this other mod as a dependency of yours. Doing so will warn players if they try to run your mod without its dependencies. 
- 
-To declare dependencies for your mod, add a ''"Dependencies"'' table in your ''mod.json''. Each entry in this table requires the name of the dependency mod (''"Name"''), and its ID (''"Id"'', you can find it in the dependency's ''generated_ids.lua'' file). 
- 
-<file json mod.json [enable_line_numbers="true", highlight_lines_extra="9,10,13,14"]> 
-{ 
- "Name": "Mod Name", 
- "Author": "Author of the mod", 
- "Description": "Description of the mod", 
- "Version": "1.0.0", 
- 
- "Dependencies": [ 
- { 
- "Id": "81f7891c-d992-4b27-beff-617a276bab4c", 
- "Name": "First dependency mod" 
- }, 
- { 
- "Id": "28eac88d-a14a-45fa-842f-710839386b77", 
- "Name": "Second dependency mod" 
- }, 
- ... 
- ] 
-} 
-</file> 
preview/dependencies.1559226840.txt.gz · Last modified: 2019/05/30 10:34 by maxime

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki