Skip to content

Commit

Permalink
set biogas category to mod name
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobharder committed Aug 6, 2024
1 parent 6fe83b9 commit fa1e5ca
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<ModOps />
<ModOps>
<ModOp Type="merge" GUID="119" />
</ModOps>
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
<!--
Biogas Production
Git: https://github.com/jakobharder/anno-1800-jakobs-mods
GUIDs: https://github.com/anno-mods/GuidRanges
1500010010-19
// 1500010014 obsolete farm waste
// 1500010017 (conflicts with InfoDescription in other mods)
1500010037-38
-->

<ModOps>
<Include File="/data/jakob/small_gas_power_plant/assets.include.xml" />
<Include File="./gas-power-plant.include.xml" />

<!-- # OW Biogas-->
<ModOp Type="addNextSibling" GUID="100780">
Expand All @@ -26,29 +17,29 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<InfoDescription>1500010011</InfoDescription>
</Standard>
<Building>
<BuildingCategoryName>100000</BuildingCategoryName> <!-- production -->
<BuildingCategoryName>1500011584</BuildingCategoryName>
<BuildModeRandomRotation>90</BuildModeRandomRotation>
<AssociatedRegions>Moderate</AssociatedRegions>
<AllowChangeVariation>1</AllowChangeVariation>
<SecondPartyRelevant>0</SecondPartyRelevant> <!-- tell AI to ignore this building -->
<SecondPartyRelevant>0</SecondPartyRelevant>
<BuildModeStartVariation>1</BuildModeStartVariation>
</Building>
<Cost>
<Costs>
<Item>
<Ingredient>1010017</Ingredient> <!-- Credits -->
<Ingredient>1010017</Ingredient>
<Amount>80000</Amount>
</Item>
<Item>
<Ingredient>1010196</Ingredient> <!-- Timber -->
<Ingredient>1010196</Ingredient>
<Amount>20</Amount>
</Item>
<Item>
<Ingredient>1010205</Ingredient> <!-- Bricks -->
<Ingredient>1010205</Ingredient>
<Amount>20</Amount>
</Item>
<Item>
<Ingredient>1010218</Ingredient> <!-- Beams -->
<Ingredient>1010218</Ingredient>
<Amount>20</Amount>
</Item>
</Costs>
Expand All @@ -57,11 +48,11 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<IncomeCategory>ProductionBuildings</IncomeCategory>
<Maintenances>
<Item>
<Product>1010017</Product> <!-- Credits -->
<Product>1010017</Product>
<Amount>400</Amount>
</Item>
<Item>
<Product>1010115</Product> <!-- Workers -->
<Product>1010115</Product>
<Amount>300</Amount>
</Item>
</Maintenances>
Expand Down Expand Up @@ -181,10 +172,10 @@ GUIDs: https://github.com/anno-mods/GuidRanges
</Standard>
<Blocking />
<Building>
<BuildingCategoryName>11151</BuildingCategoryName> <!-- infrastructure -->
<BuildingCategoryName>1500011584</BuildingCategoryName>
<BuildModeRandomRotation>90</BuildModeRandomRotation>
<AssociatedRegions>Moderate</AssociatedRegions>
<SecondPartyRelevant>0</SecondPartyRelevant> <!-- tell AI to ignore this building -->
<SecondPartyRelevant>0</SecondPartyRelevant>
<!-- Variation 1 is obsolete. You can still switch to it, but it shouldn't not show up by default. -->
<AllowChangeVariation>1</AllowChangeVariation>
<BuildModeStartVariation>0</BuildModeStartVariation>
Expand Down Expand Up @@ -309,6 +300,9 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<Name>farm_waste_service</Name>
<IconFilename>data/ui/2kimages/main/3dicons/icon_dung.png</IconFilename>
</Standard>
<Text>
<TextOverride>24806</TextOverride>
</Text>
<Locked>
<DLCDependency>410042</DLCDependency>
</Locked>
Expand All @@ -331,6 +325,9 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<IconFilename>data/ui/2kimages/main/3dicons/icon_dung.png</IconFilename>
<InfoDescription>1500010013</InfoDescription>
</Standard>
<Text>
<TextOverride>24806</TextOverride>
</Text>
<ItemEffect>
<EffectTargets>
<Item>
Expand Down Expand Up @@ -359,6 +356,9 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<IconFilename>data/ui/2kimages/main/3dicons/icon_dung.png</IconFilename>
<InfoDescription>1500010013</InfoDescription>
</Standard>
<Text>
<TextOverride>24806</TextOverride>
</Text>
<ItemEffect>
<EffectTargets>
<Item>
Expand Down Expand Up @@ -387,6 +387,9 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<IconFilename>data/ui/2kimages/main/3dicons/icon_dung.png</IconFilename>
<InfoDescription>1500010013</InfoDescription>
</Standard>
<Text>
<TextOverride>24806</TextOverride>
</Text>
<ItemEffect>
<EffectTargets>
<Item>
Expand Down Expand Up @@ -434,6 +437,7 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<GUID>1500010451</GUID>
<Name>biogas_chain</Name>
<IconFilename>data/ui/jakob/icon_biogas_plant.png</IconFilename>
<InfoDescription>1500011584</InfoDescription>
</Standard>
<ProductionChain>
<Building>1500010010</Building>
Expand Down Expand Up @@ -469,22 +473,25 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<IconFilename>data/ui/jakob/icon_biogas_plant.png</IconFilename>
<InfoDescription>1500010011</InfoDescription>
</Standard>
<Text>
<TextOverride>1500010010</TextOverride>
</Text>
<Building>
<BuildingCategoryName>100000</BuildingCategoryName> <!-- production -->
<BuildingCategoryName>1500011584</BuildingCategoryName>
<BuildModeRandomRotation>90</BuildModeRandomRotation>
<AssociatedRegions>Colony01</AssociatedRegions>
<SecondPartyRelevant>0</SecondPartyRelevant> <!-- tell AI to ignore this building -->
<SecondPartyRelevant>0</SecondPartyRelevant>
<AllowChangeVariation>0</AllowChangeVariation>
</Building>
<Maintenance>
<IncomeCategory>AdministrationBuildings</IncomeCategory>
<Maintenances>
<Item>
<Product>1010017</Product> <!-- Credits -->
<Product>1010017</Product>
<Amount>400</Amount>
</Item>
<Item>
<Product>1010367</Product> <!-- Obreros -->
<Product>1010367</Product>
<Amount>200</Amount>
</Item>
</Maintenances>
Expand Down Expand Up @@ -512,11 +519,14 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<IconFilename>data/ui/2kimages/main/3dicons/icon_dung.png</IconFilename>
<InfoDescription>1500010013</InfoDescription>
</Standard>
<Text>
<TextOverride>1500010015</TextOverride>
</Text>
<Building>
<BuildingCategoryName>100000</BuildingCategoryName> <!-- production -->
<BuildingCategoryName>1500011584</BuildingCategoryName>
<BuildModeRandomRotation>180</BuildModeRandomRotation>
<AssociatedRegions>Colony01</AssociatedRegions>
<SecondPartyRelevant>0</SecondPartyRelevant> <!-- tell AI to ignore this building -->
<SecondPartyRelevant>0</SecondPartyRelevant>
<AllowChangeVariation>0</AllowChangeVariation>
</Building>
<Object>
Expand All @@ -542,7 +552,11 @@ GUIDs: https://github.com/anno-mods/GuidRanges
<GUID>1500010452</GUID>
<Name>biogas_chain_nw</Name>
<IconFilename>data/ui/jakob/icon_biogas_plant.png</IconFilename>
<InfoDescription>1500011584</InfoDescription>
</Standard>
<Text>
<TextOverride>1500010451</TextOverride>
</Text>
<ProductionChain>
<Building>1500010450</Building>
<Tier1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<InfoDescription>1500010036</InfoDescription>
</Standard>
<Building>
<BuildingCategoryName>11169</BuildingCategoryName>
<BuildingCategoryName>1500011584</BuildingCategoryName>
<BuildModeRandomRotation>90</BuildModeRandomRotation>
<AssociatedRegions>Moderate</AssociatedRegions>
<SecondPartyRelevant>0</SecondPartyRelevant>
Expand Down Expand Up @@ -276,6 +276,24 @@
</TriggerSetup>
</Values>
</Asset>
<Asset>
<Template>Text</Template>
<Values>
<Standard>
<GUID>1500010036</GUID>
<Name>Reduced coverage / consumption</Name>
</Standard>
</Values>
</Asset>
<Asset>
<Template>Text</Template>
<Values>
<Standard>
<GUID>1500011584</GUID>
<Name>Mod origin/name: Biogas Production</Name>
</Standard>
</Values>
</Asset>
</ModOp>
<!-- Add to Gas Chain -->
<Group>
Expand Down Expand Up @@ -316,6 +334,9 @@
<Name>NW Gas Power Plant</Name>
<IconFilename>data/ui/2kimages/main/3dicons/icon_electric_works_gas.png</IconFilename>
</Standard>
<Text>
<TextOverride>1500010020</TextOverride>
</Text>
<Building>
<AssociatedRegions>Colony01</AssociatedRegions>
</Building>
Expand Down Expand Up @@ -367,7 +388,11 @@
<GUID>1500010456</GUID>
<Name>Gas Power Plant NW</Name>
<IconFilename>data/ui/2kimages/main/3dicons/icon_electric_works_gas.png</IconFilename>
<InfoDescription>1500011584</InfoDescription>
</Standard>
<Text>
<TextOverride>1500010020</TextOverride>
</Text>
<ProductionChain>
<Building>1500010457</Building>
<Tier1>
Expand Down
38 changes: 3 additions & 35 deletions mods/building-biogas-production/data/config/gui/texts_english.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@
<Text>Reduced coverage with 1/2 gas consumption.</Text>
</Text>
<Text>
<GUID>1500010456</GUID>
<Text>[AssetData(1500010020) Text]</Text>
</Text>
<Text>
<GUID>1500010457</GUID>
<Text>[AssetData(1500010020) Text]</Text>
<GUID>1500011584</GUID>
<Text>Biogas Production (Jakob)</Text>
</Text>
</ModOp>

<!-- # Biogas -->
<ModOp Type="add" Path="/TextExport/Texts">
<Text>
Expand All @@ -29,10 +25,6 @@
<GUID>1500010011</GUID>
<Text>Produces gas using dung from animal farms.</Text>
</Text>
<Text>
<GUID>1500010012</GUID>
<Text>[AssetData(24806) Text]</Text>
</Text>
<Text>
<GUID>1500010013</GUID>
<Text>Animal farms store dung for further processing.</Text>
Expand All @@ -41,33 +33,9 @@
<GUID>1500010015</GUID>
<Text>Dung Collector</Text>
</Text>
<Text>
<GUID>1500010018</GUID>
<Text>[AssetData(24806) Text]</Text>
</Text>
<Text>
<GUID>1500010019</GUID>
<Text>[AssetData(24806) Text]</Text>
</Text>
<Text>
<GUID>1500010037</GUID>
<Text>[AssetData(24806) Text]</Text>
</Text>
<Text>
<GUID>1500010450</GUID>
<Text>[AssetData(1500010010) Text]</Text>
</Text>
<Text>
<GUID>1500010451</GUID>
<Text>Biogas</Text>
</Text>
<Text>
<GUID>1500010452</GUID>
<Text>[AssetData(1500010451) Text]</Text>
</Text>
<Text>
<GUID>1500010453</GUID>
<Text>[AssetData(1500010015) Text]</Text>
</Text>
</ModOp>
</ModOps>

0 comments on commit fa1e5ca

Please sign in to comment.