Difference between revisions of "Modding"

From Airships Wiki
Jump to: navigation, search
(Added Preliminary Information)
m (Source formatting fix)
Line 41: Line 41:
For example, if there are only 3 attributes in a file, you would only have 2 commas as the last attribute doesn't need it:
For example, if there are only 3 attributes in a file, you would only have 2 commas as the last attribute doesn't need it:


<code>[</code>
<pre>
 
[
<code>{</code>
  {
 
    "Attribute1": "Value",
<code>"Attribute1": "Value",</code>
    "Attribute2": "Value",
 
    "Attribute3": "Value"
<code>"Attribute2": "Value",</code>
  }
 
]
<code>"Attribute3": "Value"</code>
</pre>
 
<code>}</code>
 
<code>]</code>
 


This is also the case when adding attributes within a list:
This is also the case when adding attributes within a list:


<pre>
[
  {
    "AttributeParent": {
      "subAttribute1": "value",
      "subAttribute2": "value",
      "subAttribute3": "value
    }
  }
]
</pre>


<code>"AttributeParent": {</code>
===<u>Basic Attributes:</u>===
 
<code>"subAttribute1": "value",</code>
 
<code>"subAttribute2": "value",</code>
 
<code>"subAttribute3": "value</code>
 
<code>}</code>
 
=== <u>Basic Attributes:</u> ===
<code>"name":</code>  
<code>"name":</code>  


=== <u>Appearance Attributes:</u> ===
===<u>Appearance Attributes:</u>===
 
=== <u>Structural Attributes:</u> ===


=== <u>Resource Attributes:</u> ===
===<u>Structural Attributes:</u>===


=== <u>Weapon Attributes:</u> ===
===<u>Resource Attributes:</u>===


=== <u>Weapon Appearance Attributes:</u> ===
===<u>Weapon Attributes:</u>===


=== <u>Audio Attributes:</u> ===
===<u>Weapon Appearance Attributes:</u>===


=== <u>Track-related Attributes:</u> ===
===<u>Audio Attributes:</u>===


=== <u>Leg-related Attributes:</u> ===
===<u>Track-related Attributes:</u>===


=== <u>Tentacle-related Attributes:</u> ===
===<u>Leg-related Attributes:</u>===


===<u>Tentacle-related Attributes:</u>===


[[Category:Modding]]
[[Category:Modding]]

Revision as of 08:22, 28 April 2022

The game can be modded using JSON files.

Underconstruction.png This page is under construction. Please help review and edit this page.

Modding Guide Blog Posts

Other Resources

Modding Attribute List

Preliminary Information:

1 Tile = 16 pixels

Sprite sheets are 63 x 63 tiles, or 1024 x 1024 pixels

When attributes require a coordinate on the spritesheet, the format is ( x , y ) or horizontal then vertical.

Both horizontal and vertical start from ( 0 , 0 ) on the top left and go to ( 63 , 63 ) on the bottom right.


The basic structure of attributes is:

"Attribute": "Value",

Where "Attribute" will be the attribute you want to add and "Value" is the value you want to set the attribute to.

Values will be listed alongside attributes, so for now just know that not all attributes take the same values.


A note about Json: when adding attributes you put a comma at the end only if there is another attribute after it.

For example, if there are only 3 attributes in a file, you would only have 2 commas as the last attribute doesn't need it:

[
  {
    "Attribute1": "Value",
    "Attribute2": "Value",
    "Attribute3": "Value"
  }
]

This is also the case when adding attributes within a list:

[
  {
    "AttributeParent": { 
      "subAttribute1": "value",
      "subAttribute2": "value",
      "subAttribute3": "value
    }
  }
]

Basic Attributes:

"name":

Appearance Attributes:

Structural Attributes:

Resource Attributes:

Weapon Attributes:

Weapon Appearance Attributes:

Audio Attributes:

Track-related Attributes:

Leg-related Attributes:

Tentacle-related Attributes: