User Tools

Site Tools


start

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
start [2020/07/14 13:02] maximestart [2021/08/31 10:38] – [The mod.json file] maxime
Line 36: Line 36:
   * [[particle-effects|Create particle effects]]   * [[particle-effects|Create particle effects]]
   * [[material-sets|Material sets]]   * [[material-sets|Material sets]]
- 
-==== Preview only ==== 
- 
  
 ===== Where do I start? ===== ===== Where do I start? =====
Line 45: Line 42:
  
 ===== The mod.json file ===== ===== The mod.json file =====
-The json file is loaded early and give basic information on your mod, without having to load your LUA scripts: +The json file is loaded early and give basic information on your mod, without having to load your LUA scripts
-<file javascript mod.json>+ 
 +In addition, this file contains the list of your mod's custom maps and their info, if any. 
 + 
 +<file json mod.json>
 { {
- "Name": "Simple Example Mod", +    "Name": "Simple Example Mod", 
- "Author": "Leo", +    "Author": "Leo", 
- "Description": "A very simple mod example", +    "Description": "A very simple mod example", 
- "Version": "2.0.0"+    "Version": "2.0.0"
 + 
 +    "MapList":
 +        { 
 +            "Id": "MY_MAP_ID_01", 
 +            "Name": "My Custom Map", 
 +            "Description": "This is a simple description of my map.", 
 +            "PreviewImage": "metadata/my_map_preview.png" 
 +        } 
 +    ]
 } }
 </file> </file>
- 
 ===== The mod.lua script ===== ===== The mod.lua script =====
 First, you have to create your new mod instance: First, you have to create your new mod instance:
start.txt · Last modified: 2022/03/30 10:53 by maxime

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki