Modding:Asset System: Difference between revisions

From Vintage Story Wiki
no edit summary
mNo edit summary
No edit summary
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
Here is an overview of categories:
Here is an overview of categories:
<table id="treeviewtable" class="table table-bordered tt-table" style='table-layout: fixed'>
<table id="treeviewtable" class="table table-bordered tt-table" style='table-layout: fixed'>
   <tr style='background-color: gray;'>
   <tr style=''>
     <th width='300' align='left'>Name</th>
     <th width='300' align='left'>Name</th>
     <th width='200' align='left'>Affects Gameplay</th>
     <th width='200' align='left'>Affects Gameplay</th>
Line 23: Line 23:
     <td>true</td>
     <td>true</td>
     <td>universal</td>
     <td>universal</td>
     <td>Blocks</td>
     <td>Defines all the blocks that are in the game</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 29: Line 29:
     <td>true</td>
     <td>true</td>
     <td>universal</td>
     <td>universal</td>
     <td>Items</td>
     <td>Defines all the Items that are in the game</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 41: Line 41:
     <td>true</td>
     <td>true</td>
     <td>universal</td>
     <td>universal</td>
     <td></td>
     <td>Contains some commonly used lists of properties</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 65: Line 65:
     <td>false</td>
     <td>false</td>
     <td>universal</td>
     <td>universal</td>
     <td>Blocks</td>
     <td>Contains the 3d models for all the items, blocks and creatures</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 89: Line 89:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td>Recipes for all kinds of machinery</td>
     <td>The crafting, knapping, smithing and clay forming recipes</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 95: Line 95:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td></td>
     <td>How metals can be combined to create alloys</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 101: Line 101:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td>Recipes for Workbench</td>
     <td>Recipes for 3x3 grid crafting</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 107: Line 107:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td></td>
     <td>Recipes for smithing on the anvil</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 113: Line 113:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td></td>
     <td>Contains all the configuration for world generation</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 119: Line 119:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td></td>
     <td>Defines how the terrain should look and with what it should be decorated with</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 125: Line 125:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td></td>
     <td>Defines the shapes of trees</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 131: Line 131:
     <td>true</td>
     <td>true</td>
     <td>server only</td>
     <td>server only</td>
     <td>Entities</td>
     <td>Creatures and other entities</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 137: Line 137:
     <td>false</td>
     <td>false</td>
     <td>client only</td>
     <td>client only</td>
     <td></td>
     <td>Contains GLSL source code, that defines how the game is rendered</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 143: Line 143:
     <td>false</td>
     <td>false</td>
     <td>client only</td>
     <td>client only</td>
     <td></td>
     <td>Contains GLSL source code, that defines how the game is rendered</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 149: Line 149:
     <td>false</td>
     <td>false</td>
     <td>client only</td>
     <td>client only</td>
     <td></td>
     <td>Contains all the graphics of the game</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 203: Line 203:
     <td>false</td>
     <td>false</td>
     <td>client only</td>
     <td>client only</td>
     <td></td>
     <td>The games music tracks and its configuration</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 209: Line 209:
     <td>false</td>
     <td>false</td>
     <td>client only</td>
     <td>client only</td>
     <td></td>
     <td>Contains some of the dialog layouts</td>
   </tr>
   </tr>
</table>
</table>
Line 220: Line 220:
When [[Mod Packaging|packaging a mod]] you specify a domain by placing a directory inside the mod <code>assets</code> directory with all your mod assets inside. The name of your domain directory will be the "current domain" for all assets inside it. If no domain has been specified in an asset code the game will assume it is in the current domain, meaning you only have to add a domain prefix if you want to refer to something outside the current domain.
When [[Mod Packaging|packaging a mod]] you specify a domain by placing a directory inside the mod <code>assets</code> directory with all your mod assets inside. The name of your domain directory will be the "current domain" for all assets inside it. If no domain has been specified in an asset code the game will assume it is in the current domain, meaning you only have to add a domain prefix if you want to refer to something outside the current domain.


So if you want to create a new block which uses the original leather texture, you would have to specify the domain (since your block has a different one). So instead of using  <code>assets/textures/blocks/leather.png</code>, you would have add the prefix for the domain <code>game:assets/textures/blocks/leather.png</code>.
For example, if you want to create a new block which uses the original leather texture, you would have to specify the domain (since your block has a different one). Instead of using  <code>assets/textures/blocks/leather.png</code>, you would have add the prefix for the domain <code>game:assets/textures/blocks/leather.png</code>.




Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits