ASTRONAUTICS is a sandbox game about space exploration, construction and survival in space with amazing 2D graphics and with co-op and multiplayer.

Post tutorial Report RSS Creating your first mod [A.0.0.+]

In this article we will teach how to create a basic mod, that will include nothing

Posted by on - Basic Starting a mod

Creating your first mod:

  1. To create a mod in ASTRONAUTICS, first create a folder, the name you give to the folder is irrelevant.
  2. To get ASTRONAUTICS to detect the mod you need a JSON file in the folder, the name of the JSON MUST BE ModInfo.json, this is very important! otherwise ASTRONAUTICS will not detect the mod.
  3. The ModInfo.json MUST contain certain information otherwise ASTRONAUTICS will not load mod data in game.

The information that must contain ModInfo.json is this:

{
    "id": "",
    "name": "",
    "keyName": "",
    "gameVersions": [],
    "modDependencies": [],
    "enabled": true,
    "description": "",
    "keyDescription": "",
    "author": "",
    "logo": "",
    "version": ""
}

Where:

  • id: This is very important this must be UNIQUE.The id is used to detect mod Dependencies and Mod relationships
  • name: like tha "name" said, is the mod name
  • keyName: if you want to change your mod name based on languages use this, instead of name(But dont remove the "name" parameter! only dont use it)
  • gameVersions: here you can put in which version of the game this mod works, if no version is put the game will display a warning of no tested mod
  • modDependencies: here you put a mod dependencie of your mod, here you must put ID of the mod. if the modDependencie is not found your mod will not be loaded
  • enabled: -----
  • description: here you put your mod description, its support rich text!
  • keyDescription: if you want to change mod description based on languages use this, instead of description(But dont remove the "description" parameter! only dont use it)
  • author: the author of the mod
  • logo: path to mod image, MUST be inside the mod folder.
  • version: mod version

Here is the ModInfo.json of Core Mod:

{
    "id": "astronautics.coreMod",
    "name": "Core mod",
    "keyName": "",
    "gameVersions": [
        "A.0.0.2"
    ],
    "modDependencies": [],
    "enabled": true,
    "description": "This description is in english",
    "keyDescription": "modDescription",
    "author": "Astronautics",
    "logo": "logo.png",
    "version": "1.0"
}

We recommend that you validate the json before testing.

If there's no error ASTRONAUTICS will load the mod:

Mods tutorial 1

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
ASTRONAUTICS
Platforms
Windows, Mac, Linux
Developer & Publisher
BOS Studios
Engine
Unity
Contact
Send Message
Release date
Game watch
Follow
Tutorial
Browse
Tutorials
Report
Report
Share
Related Games
ASTRONAUTICS
ASTRONAUTICS Combat Sim
Related Engines
Unity
Unity Commercial
Related Groups
BOS Studios
BOS Studios Developer & Publisher