Boats-Harbours-Expeditions: Difference between revisions

From The Colonists
Jump to navigation Jump to search
add placeholders for relationships
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
   }
   }
]
]
</pre>
</pre>
(placeholder - notes on "boattype too small", "boattype too large" )<br>
 
If a boat type is not in the Harbour's supportedBoatTypeHash but _is_ <br>
If a boat type is not in the Harbour's supportedBoatTypeHash but _is not_ <br>
=Expeditions gathered at a Harbour (placeholder) <br>=
=Expeditions gathered at a Harbour (placeholder) <br>=
In a harbour-type building add the types of expeditions that can be gathered: <br>
<pre>
"componentInfos": [
    {
      "$type": "BuildingPortExpeditionDataInfo, Game",
"supportedExpeditionIds": [
0,  // expedition for Harbour
1,  // expedition for Large Harbour
201 // 201 = customExpedition
],
  }
]
</pre>
NOTE: see [[ModExpeditions]] for relating Expedition ID (e.g. 201) to Building ID (e.g. 200)
=Boats assigned to Expeditions (placeholder) <br>=
In boats add the types of expeditions it can be assigned: <br>
In boats add the types of expeditions it can be assigned: <br>
<pre>
<pre>
Line 24: Line 39:
     {
     {
       "validExpeditionBuildingHash": [
       "validExpeditionBuildingHash": [
         63  // building ID for Large Harbour
         63, // building ID for Large Harbour
200  // add building ID for Custom Building (a Harbour Type)
       ],
       ],
     }
     }
Line 31: Line 47:
</pre>
</pre>


 
(placeholder - notes on "boattype too small", "boattype too large" )<br>
=Boats assigned to Expeditions (placeholder) <br>=
If a boat type is not in the Harbour's supportedBoatTypeHash but _is_ <br>
If a boat type is not in the Harbour's supportedBoatTypeHash but _is not_ <br>

Latest revision as of 16:26, 20 December 2023

Relationship between Boats, Harbours, and Expeditions

Boats docking at Harbour (placeholder)

In a harbour-type building add the types of boats allowed to dock:

"componentInfos": [
    {
      "$type": "BuildingPortDataInfo, Game",
      "supportedBoatTypeHash": [
        1, // clipper
        2  // lugger
      ]
   }
]

Expeditions gathered at a Harbour (placeholder)

In a harbour-type building add the types of expeditions that can be gathered:

"componentInfos": [
    {
      "$type": "BuildingPortExpeditionDataInfo, Game",
	"supportedExpeditionIds": [
		0,  // expedition for Harbour
		1,  // expedition for Large Harbour
		201 // 201 = customExpedition
		 ],
   }
]

NOTE: see ModExpeditions for relating Expedition ID (e.g. 201) to Building ID (e.g. 200)

Boats assigned to Expeditions (placeholder)

In boats add the types of expeditions it can be assigned:

{
  "boats": [
    {
      "validExpeditionBuildingHash": [
        63,  // building ID for Large Harbour
	200  // add building ID for Custom Building (a Harbour Type)
      ],
    }
  ]
}

(placeholder - notes on "boattype too small", "boattype too large" )
If a boat type is not in the Harbour's supportedBoatTypeHash but _is_
If a boat type is not in the Harbour's supportedBoatTypeHash but _is not_