ModUnits: Difference between revisions

From The Colonists
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 35: Line 35:
None (tbd)
None (tbd)
=Bot Materials=
=Bot Materials=
== Main Material ==
The material of bots can be changed using an image file, '''bot_material_main.png''' in a mod.<br>
The material of bots can be changed using an image file, '''bot_material_main.png''' in a mod.<br>
The file should be 512 x 512 pixels and consist of 16 128 x 128 subsections, 8 of which are used for each colour of the Colony Ship possibilities.<br>
The file should be 512x512 pixels and consist of 16 128x128 pixel subsections, 8 of which are used for each colour of the Colony Ship possibilities.<br>
Each sub-section is further divided into 16 32x32 squares representing the colour for parts of the bots' materials.<br>
Each sub-section is further divided into 16 32x32 pixel squares representing the colour for parts of the bots' materials.<br>
Example File: <br>
Example File: <br>
[[File:Bot_material_main.png|512px|Bot_material_main.png]]<br>
[[File:Bot_material_main.png|512px|Bot_material_main.png]]<br>
Sub-section mapping: <br>
==  Sub-section mapping: == 
[[File:BotMaterial_16_sections_labels_numbered.png|128px|Bot_material_main-label-mapping]]<br>
<br>
::# -
[[File:ExampleSubSection_Numbered.png|128px|Bot_material_main-label-mapping]]<br>
::# -
::# - Bot Wheels Outer (all Bots that have wheels - i.e. most)
::# - Bot Wheels Inner (all Bots that have wheels - i.e. most), Shovel (Forester), Hammer + Wrench (Blacksmith?) Helmet Strap (RepairBot? +?+?)
::# - Main Bot Material
::# - Main Bot Material
::# -
::# - Unused?
::# -
::# - Mallets, Picks, FishHook, Threshers, AxeHead, Exhaust Pipes
::# - Cap Trim + xxx (TrainBot)
::# - Cap Trim (TrainBot), HardHat (BuildBot)
::# - Apron (BakerBot)
::# - Apron (BakerBot)
::# -
::# - FishingPole (FisherBot), SeedPile(TreeBot), BackCoil (RoadBot, BuildBot, RepairBot, ShipwrihtBot)
::# -
::# - FishingLine (FisherBot), HardHat Lamp (Shaft Miner Bot)
::# - Cap (ForesterBot)
::# - Cap (TreeBot)
::# -
::# - Apron (Blacksmith, TrainBot), Cap (TrainBot)
::# -
::# - Unused
::# - Unused
::# - Unused
::# - Unused
::# - Unused
::# - Unused
::# - Main Colony Colour
::# - Unused
::# - Main Colony Colour + Mask Trim, Gloves, Many Caps, etc. (Swaps out to appropriate main section when Colony Color is changed in game).


<br>
<br>
<br>
<br>
'''bot_material_ramp.png''' should be a 128 x 128 file representing ?? shading? TBD.<br>
 
TBD - material and ramp file. <br>
== Color Ramp ==
'''bot_material_ramp.png''' should be a 128 x 128 pixel sized file for the color ramp.<br>
Example bot_material_ramp file. <br>
[[File:Bot_material_ramp.png|128px|Bot_material_ramp.png]]
[[File:Bot_material_ramp.png|128px|Bot_material_ramp.png]]

Latest revision as of 14:23, 14 July 2023

Mod Units Translation.csv

List of fields used in translation.csv for Units

Units Translation


Mod Units/Bots

JSON

{
  "units": [
    {
      "pickUpTime": 0.5,
      "dropOffTime": 0.5,
      "utilityDropOff2Time": 0.7,
      "utilityDropOff1Time": 0.5,
      "utilityDropOff0Time": 0.3,
      "blockedCheckInterval": 5.0,
      "typeId": 0, // unit-bot ID
      "componentInfos": [
        {
          "$type": "EntityLocomotorDataInfo, Game",
          "maxSpeed": 0.05,
          "accelerationFactor": 1.0, //??
          "typeId": 6 // = unit-bit
        }
      ]
    },
}

Existing Unit values

Icon

None

3D Models

None (tbd)

Bot Materials

Main Material

The material of bots can be changed using an image file, bot_material_main.png in a mod.
The file should be 512x512 pixels and consist of 16 128x128 pixel subsections, 8 of which are used for each colour of the Colony Ship possibilities.
Each sub-section is further divided into 16 32x32 pixel squares representing the colour for parts of the bots' materials.
Example File:
Bot_material_main.png

Sub-section mapping:


Bot_material_main-label-mapping

  1. - Bot Wheels Outer (all Bots that have wheels - i.e. most)
  2. - Bot Wheels Inner (all Bots that have wheels - i.e. most), Shovel (Forester), Hammer + Wrench (Blacksmith?) Helmet Strap (RepairBot? +?+?)
  3. - Main Bot Material
  4. - Unused?
  5. - Mallets, Picks, FishHook, Threshers, AxeHead, Exhaust Pipes
  6. - Cap Trim (TrainBot), HardHat (BuildBot)
  7. - Apron (BakerBot)
  8. - FishingPole (FisherBot), SeedPile(TreeBot), BackCoil (RoadBot, BuildBot, RepairBot, ShipwrihtBot)
  9. - FishingLine (FisherBot), HardHat Lamp (Shaft Miner Bot)
  10. - Cap (TreeBot)
  11. - Apron (Blacksmith, TrainBot), Cap (TrainBot)
  12. - Unused
  13. - Unused
  14. - Unused
  15. - Unused
  16. - Main Colony Colour + Mask Trim, Gloves, Many Caps, etc. (Swaps out to appropriate main section when Colony Color is changed in game).



Color Ramp

bot_material_ramp.png should be a 128 x 128 pixel sized file for the color ramp.
Example bot_material_ramp file.
Bot_material_ramp.png