guides:options_for_workplace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:options_for_workplace [2020/04/23 16:36] – [Recall: basics] vjraymon | guides:options_for_workplace [2021/02/23 11:56] (current) – title fix minotorious | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Options for workplaces | + | ====== Options for Workplaces |
- | ===== Recall: basics | + | ===== Basics |
- | This is an example of a simple workplace | + | This is an example of a simple workplace |
<code lua> | <code lua> | ||
myMod: | myMod: | ||
- | DataType = " | + | |
- | Id = " | + | Id = " |
- | Mover = { DataType = " | + | Mover = { DataType = " |
- | ConstructorData = { | + | ConstructorData = { |
- | DataType = " | + | DataType = " |
- | CoreObjectPrefab = " | + | CoreObjectPrefab = " |
- | }, | + | }, |
- | AssetBuildingFunction = " | + | AssetBuildingFunction = " |
}) | }) | ||
myMod: | myMod: | ||
- | DataType = " | + | |
- | Id = " | + | Id = " |
- | WorkerCapacity = 1, | + | WorkerCapacity = 1, |
- | RelatedJob = { Job = " | + | RelatedJob = { Job = " |
- | InputInventoryCapacity = { | + | InputInventoryCapacity = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceListNeeded = { | + | ResourceListNeeded = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceProduced = { | + | ResourceProduced = { |
- | { Resource = " | + | { Resource = " |
- | } | + | } |
}) | }) | ||
</ | </ | ||
Line 35: | Line 35: | ||
===== Same building for producing and selling ===== | ===== Same building for producing and selling ===== | ||
- | This is an example of a simple workplace | + | This is an example of a simple workplace |
<code lua> | <code lua> | ||
myMod: | myMod: | ||
- | DataType = " | + | |
- | Id = " | + | Id = " |
- | Mover = { DataType = " | + | Mover = { DataType = " |
- | ConstructorData = { | + | ConstructorData = { |
- | DataType = " | + | DataType = " |
- | CoreObjectPrefab = " | + | CoreObjectPrefab = " |
- | }, | + | }, |
- | AssetBuildingFunction = " | + | AssetBuildingFunction = " |
}) | }) | ||
myMod: | myMod: | ||
- | DataType = " | + | |
- | Id = " | + | Id = " |
- | TypeList = { " | + | TypeList = { " |
- | WorkerCapacity = 1, | + | WorkerCapacity = 1, |
- | RelatedJob = { Job = " | + | RelatedJob = { Job = " |
- | InputInventoryCapacity = { | + | InputInventoryCapacity = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceListNeeded = { | + | ResourceListNeeded = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceProduced = { | + | ResourceProduced = { |
- | { Resource = " | + | { Resource = " |
- | } | + | } |
}) | }) | ||
</ | </ | ||
- | ==== Workplace with several recipes ==== | + | ===== Workplace with several recipes |
Workplace with 2 recipes: | Workplace with 2 recipes: | ||
- | 1) produces | + | 1) produces |
- | 2) produces | + | 2) produces |
<code lua> | <code lua> | ||
- | myMod: | + | |
- | DataType = " | + | DataType = " |
- | Id = " | + | Id = " |
- | Mover = { DataType = " | + | Mover = { DataType = " |
- | ConstructorData = { | + | ConstructorData = { |
- | DataType = " | + | DataType = " |
- | CoreObjectPrefab = " | + | CoreObjectPrefab = " |
- | }, | + | }, |
+ | AssetBuildingFunction = " | ||
+ | }) | ||
+ | |||
+ | myMod: | ||
+ | DataType = " | ||
+ | Id = " | ||
AuthorizedFunctionList = " | AuthorizedFunctionList = " | ||
- | }) | + | |
- | myMod: | + | |
- | DataType = " | + | DataType = " |
- | Id = " | + | Id = " |
- | AssetFunctionList = { | + | AssetFunctionList = { |
- | " | + | " |
- | " | + | " |
- | } | + | } |
- | }) | + | }) |
- | myMod: | + | |
- | DataType = " | + | DataType = " |
- | Id = " | + | Id = " |
- | IsOverrideCapacity = true, | + | IsOverrideCapacity = true, |
- | CapacityPerSlot = 50, | + | CapacityPerSlot = 50, |
- | WorkerCapacity = 1, | + | WorkerCapacity = 1, |
- | RelatedJob = { Job = "MY_BUILDING_JOB", Behavior = " | + | RelatedJob = { Job = "MY_BUILDING_JOB_1", Behavior = " |
- | InputInventoryCapacity = { | + | InputInventoryCapacity = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceListNeeded = { | + | ResourceListNeeded = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceProduced = { | + | ResourceProduced = { |
- | { Resource = " | + | { Resource = " |
- | } | + | } |
- | }) | + | }) |
- | myMod: | + | |
- | DataType = " | + | DataType = " |
- | Id = " | + | Id = " |
- | IsOverrideCapacity = true, | + | IsOverrideCapacity = true, |
- | CapacityPerSlot = 20, | + | CapacityPerSlot = 20, |
- | WorkerCapacity = 1, | + | WorkerCapacity = 1, |
- | RelatedJob = { Job = "MY_BUILDING_JOB", Behavior = " | + | RelatedJob = { Job = "MY_BUILDING_JOB_2", Behavior = " |
- | InputInventoryCapacity = { | + | InputInventoryCapacity = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceListNeeded = { | + | ResourceListNeeded = { |
- | { Resource = " | + | { Resource = " |
- | }, | + | }, |
- | ResourceProduced = { | + | ResourceProduced = { |
- | { Resource = " | + | { Resource = " |
- | } | + | } |
- | }) | + | }) |
</ | </ | ||
Note: The IsOverrideCapacity is mandatory to have different CapacityPerSlot per recipe. | Note: The IsOverrideCapacity is mandatory to have different CapacityPerSlot per recipe. | ||
- | ==== Several workplaces per building ==== | + | ===== Several workplaces per building |
- | I didn't succeed. | + | The only way I found is to have a monument with different buildingParts, |
- | ==== Custom soldier' | + | ===== Custom soldier' |
Waiting for the next game upgrade. | Waiting for the next game upgrade. |
guides/options_for_workplace.1587674185.txt.gz · Last modified: 2020/04/23 16:36 by vjraymon