Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Chestburster

#1
Outdated / Re: [A12D] Community Core Library v0.12.4
October 28, 2015, 03:21:43 AM
Thanks 69. I never noticed the missing s there, only searching inside the files. It must have happened after rebuilding the folder structure on my work PC and copying it on my laptop.

I'll take a look at the hopper code. Thanks again.
#2
Outdated / Re: [A12D] Community Core Library v0.12.4
October 27, 2015, 04:35:46 PM
I hope those 3 attachments are more helpful.

[attachment deleted due to age]
#3
Outdated / Re: [A12D] Community Core Library v0.12.4
October 25, 2015, 07:20:05 AM
Well i'm stuck now.. i took the example defs and compared them with my own but i cant find out why it is still throwing errors (Screenshot attached).

<AdvancedResearchDef>

<defName>CraftHMG</defName>
<Priority>0</Priority>

<researchDefs>
<li>BasicTurretCrafting</li>
</researchDefs>

<recipeDefs>
<li>BuildHMGTurret</li>
</recipeDefs>

<thingDefs>
<li>TableTinker</li>
</thingDefs>

</AdvancedResearchDef>




<RecipeDef>
<defName>BuildHMGTurret</defName>
<label>Build M2 Browning</label>
<description>Build a M2 Browning Turret Gun</description>
<jobString>Building M2 Turret Gun.</jobString>
<workAmount>8000</workAmount>
<workSpeedStat>SmeltingSpeed</workSpeedStat>
<effectWorking>Smelt</effectWorking>
<soundWorking>Recipe_Smelt</soundWorking>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>6</minLevel>
</li>
</skillRequirements>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Heavy_Component</li>
</thingDefs>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>Weapon_Parts</li>
</thingDefs>
</filter>
<count>10</count>
</li>
<li>
<filter>
<thingDefs>
<li>Spare_Parts</li>
</thingDefs>
</filter>
<count>10</count>
</li>
<li>
<filter>
<thingDefs>
<li>Parts_Steel</li>
</thingDefs>
</filter>
<count>5</count>
</li>
<li>
<filter>
<thingDefs>
<li>SyntheticMaterials</li>
</thingDefs>
</filter>
<count>2</count>
</li>
</ingredients>
<products>
<MGTurret_Crate>1</MGTurret_Crate>
</products>
<fixedIngredientFilter>
<thingDefs>
<li>Heavy_Component</li>
<li>Weapon_Parts</li>
<li>Spare_Parts</li>
<li>Parts_Steel</li>
<li>SyntheticMaterials</li>
</thingDefs>
</fixedIngredientFilter>
<workSkill>Crafting</workSkill>

</RecipeDef>




<ResearchProjectDef>
<defName>BasicTurretCrafting</defName>
<label>Basic Turret Crafting</label>
<description>Allows you to build the Tinker's Workbench.</description>
<totalCost>500</totalCost>
<prerequisites>
<li>AdvancedGunTurret</li>
</prerequisites>
</ResearchProjectDef>




<ThingDef ParentName="BenchBase">
<DefName>TableTinker</DefName>
<label>Tinker's Workstation</label>
<ThingClass>Building_WorkTable</ThingClass>
<Description>A workbench with tools for producing turrets.</Description>
<graphicData>
<texPath>Things/Building/Production/Tinker_Workbench</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>(3,1)</drawSize>
</graphicData>
<stuffCategories>
<li>MetallicParts</li>
</stuffCategories>
<costStuffCount>15</costStuffCount>
<CostList>
<Spare_Parts>5</Spare_Parts>
<ElectronicComponents>5</ElectronicComponents>
<Mechanism>5</Mechanism>
</CostList>
<AltitudeLayer>Waist</AltitudeLayer>
<fillPercent>0.5</fillPercent>
<useHitPoints>True</useHitPoints>
<statBases>
<WorkToMake>4750</WorkToMake>
<MaxHitPoints>300</MaxHitPoints>
<Flammability>1.0</Flammability>
<Cleanliness>-3</Cleanliness>
</statBases>
<Size>(3,1)</Size>
<DesignationCategory>Production</DesignationCategory>
<Passability>PassThroughOnly</Passability>
<pathCost>70</pathCost>
<hasInteractionCell>True</hasInteractionCell>
<interactionCellOffset>(0,0,-1)</interactionCellOffset>
<surfaceType>Item</surfaceType>
<recipes>
<li>BuildHMGTurret</li>
<li>BuildAvengerTurret</li>
<li>BuildChainTurret</li>
<li>BuildVulcanTurret</li>
<li>BuildAGLTurret</li>
<li>BuildEMPTurret</li>
<li>BuildLaserTurret</li>
<li>BuildPLaserTurret</li>
<li>BuildPlasmaTurret</li>
<li>BuildAMTurret</li>
<li>BuildCannonTurret</li>
<li>BuildHowitzerTurret</li>
<li>BuildDevastatorTurret</li>
<li>BuildLMSTurret</li>
<li>BuildMMSTurret</li>
<li>BuildHMSTurret</li>
<li>BuildSteelBase</li>
<li>BuildPlasteelBase</li>
<li>BuildCopperBase</li>
<li>BuildAluminiumBase</li>
<li>BuildTitaniumBase</li>
<li>BuildVancidiumBase</li>
<li>BuildCarbonBase</li>
</recipes>
<inspectorTabs>
<li>ITab_Bills</li>
</inspectorTabs>
<building>
<spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
</building>
<comps>
<li>
<compClass>CompPowerTrader</compClass>
<startElectricalFires>true</startElectricalFires>
<basePowerConsumption>500</basePowerConsumption>
<soundPowerOn>PowerOnSmall</soundPowerOn>
<soundPowerOff>PowerOffSmall</soundPowerOff>
</li>
<li>
<compClass>CompAffectedByFacilities</compClass>
<linkableFacilities>
<li>Stool</li>
<li>Small_ToolCabinet</li>
</linkableFacilities>
</li>
<li Class="CommunityCoreLibrary.CompProperties_LowIdleDraw">
<compClass>CommunityCoreLibrary.CompPowerLowIdleDraw</compClass>
<idlePowerFactor>0.1</idlePowerFactor>
</li>
</comps>
<researchPrerequisite>BasicTurretCrafting</researchPrerequisite>
<placeWorkers>
<li>PlaceWorker_ShowFacilitiesConnections</li>
</placeWorkers>
</ThingDef>


PS: Can the hopper def be used to feed turrets with ammunition?

[attachment deleted due to age]
#4
Outdated / Re: [A12D] Community Core Library v0.12.4
October 23, 2015, 06:54:46 PM
I tried that earlier and it didn't work (it just removed the table from the architect menu after i added the thingDef). Tried it again just to make sure.. still the same errors.

<AdvancedResearchDef>

<defName>CraftHMG</defName>
<Priority>0</Priority>

<researchDefs>
<li>BasicTurretCrafting</li>
</researchDefs>

<recipeDefs>
<li>BuildHMGTurret</li>
</recipeDefs>

<thingDef>
<li>TableTinker</li>
</thingDef>

</AdvancedResearchDef>


Just wondering.. is there some sort of caching going on in rimworld? I removed the other ARDefs but they are still throwing errors (even after restarting my notebook).
#5
Outdated / Re: [A12D] Community Core Library v0.12.4
October 23, 2015, 03:28:51 PM
Heya,

i've ran into some problems with the AdvancedResearchDef. My game is always throwing cross-reference errors (BuildHMGTurret) when adding the advanced defs. Could someone tell me what i did wrong? (Bills work when i remove the advanced defs)

<AdvancedResearchDef>

<defName>CraftHMG</defName>
<Priority>0</Priority>

<researchDefs>
<li>BasicTurretCrafting</li>
</researchDefs>

<recipeDefs>
<li>BuildHMGTurret</li>
</recipeDefs>

</AdvancedResearchDef>

---------------------------------

<ResearchProjectDef>
<defName>BasicTurretCrafting</defName>
<label>Basic Turret Crafting</label>
<description>Allows you to build the Tinker's Workbench.</description>
<totalCost>500</totalCost>
<prerequisites>
<li>AdvancedGunTurret</li>
</prerequisites>
</ResearchProjectDef>

---------------------------------

<RecipeDef>
<defName>BuildHMGTurret</defName>
<label>Build M2 Browning</label>
<description>Build a M2 Browning Turret Gun</description>
<jobString>Building M2 Turret Gun.</jobString>
<workAmount>8000</workAmount>
<workSpeedStat>SmeltingSpeed</workSpeedStat>
<effectWorking>Smelt</effectWorking>
<soundWorking>Recipe_Smelt</soundWorking>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>6</minLevel>
</li>
</skillRequirements>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Heavy_Component</li>
</thingDefs>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>Weapon_Parts</li>
</thingDefs>
</filter>
<count>10</count>
</li>
<li>
<filter>
<thingDefs>
<li>Spare_Parts</li>
</thingDefs>
</filter>
<count>10</count>
</li>
<li>
<filter>
<thingDefs>
<li>Parts_Steel</li>
</thingDefs>
</filter>
<count>5</count>
</li>
<li>
<filter>
<thingDefs>
<li>SyntheticMaterials</li>
</thingDefs>
</filter>
<count>2</count>
</li>
</ingredients>
<products>
<MGTurret_Crate>1</MGTurret_Crate>
</products>
<fixedIngredientFilter>
<thingDefs>
<li>Heavy_Component</li>
<li>Weapon_Parts</li>
<li>Spare_Parts</li>
<li>Parts_Steel</li>
<li>SyntheticMaterials</li>
</thingDefs>
</fixedIngredientFilter>
<workSkill>Crafting</workSkill>
</RecipeDef>

---------------------------------

<ThingDef ParentName="BenchBase">
<DefName>TableTinker</DefName>
<label>Tinker's Workstation</label>
<ThingClass>Building_WorkTable</ThingClass>
<Description>A workbench with tools for producing turrets.</Description>
<graphicData>
<texPath>Things/Building/Production/Tinker_Workbench</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>(3,1)</drawSize>
</graphicData>
<stuffCategories>
<li>MetallicParts</li>
</stuffCategories>
<costStuffCount>15</costStuffCount>
<CostList>
<Spare_Parts>5</Spare_Parts>
<ElectronicComponents>5</ElectronicComponents>
<Mechanism>5</Mechanism>
</CostList>
<AltitudeLayer>Waist</AltitudeLayer>
<fillPercent>0.5</fillPercent>
<useHitPoints>True</useHitPoints>
<statBases>
<WorkToMake>4750</WorkToMake>
<MaxHitPoints>300</MaxHitPoints>
<Flammability>1.0</Flammability>
<Cleanliness>-3</Cleanliness>
</statBases>
<Size>(3,1)</Size>
<DesignationCategory>Production</DesignationCategory>
<Passability>PassThroughOnly</Passability>
<pathCost>70</pathCost>
<hasInteractionCell>True</hasInteractionCell>
<interactionCellOffset>(0,0,-1)</interactionCellOffset>
<surfaceType>Item</surfaceType>
<recipes>
<li>BuildHMGTurret</li>
<li>BuildAvengerTurret</li>
<li>BuildChainTurret</li>
<li>BuildVulcanTurret</li>
<li>BuildAGLTurret</li>
<li>BuildEMPTurret</li>
<li>BuildLaserTurret</li>
<li>BuildPLaserTurret</li>
<li>BuildPlasmaTurret</li>
<li>BuildAMTurret</li>
<li>BuildCannonTurret</li>
<li>BuildHowitzerTurret</li>
<li>BuildDevastatorTurret</li>
<li>BuildLMSTurret</li>
<li>BuildMMSTurret</li>
<li>BuildHMSTurret</li>
<li>BuildSteelBase</li>
<li>BuildPlasteelBase</li>
<li>BuildCopperBase</li>
<li>BuildAluminiumBase</li>
<li>BuildTitaniumBase</li>
<li>BuildVancidiumBase</li>
<li>BuildCarbonBase</li>
</recipes>
<inspectorTabs>
<li>ITab_Bills</li>
</inspectorTabs>
<building>
<spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
</building>
<comps>
<li>
<compClass>CompPowerTrader</compClass>
<startElectricalFires>true</startElectricalFires>
<basePowerConsumption>500</basePowerConsumption>
<soundPowerOn>PowerOnSmall</soundPowerOn>
<soundPowerOff>PowerOffSmall</soundPowerOff>
</li>
<li>
<compClass>CompAffectedByFacilities</compClass>
<linkableFacilities>
<li>Stool</li>
<li>Small_ToolCabinet</li>
</linkableFacilities>
</li>
<li Class="CommunityCoreLibrary.CompProperties_LowIdleDraw">
<compClass>CommunityCoreLibrary.CompPowerLowIdleDraw</compClass>
<idlePowerFactor>0.1</idlePowerFactor>
</li>
</comps>
<researchPrerequisite>BasicTurretCrafting</researchPrerequisite>
<placeWorkers>
<li>PlaceWorker_ShowFacilitiesConnections</li>
</placeWorkers>
</ThingDef>


Edit: Improved formatting