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 - WinnieTheJinping

#1
Help / Re: A quick tutorial of xpathing and patching
December 12, 2021, 08:31:05 PM
Hi there,

So I'm trying to patch the statBases of the Human pawn, but so far while the xpath is correct, it doesn't patch it nor throw up any errors.

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
      <operations>
        <!-- Makes ALL pawns superhumans -->
        <li Class="PatchOperationAdd">
          <xpath>
            Defs/ThingDef[defName="Human"]/statBases
          </xpath>
          <value>
            <!-- General -->
            <GlobalLearningFactor>10000</GlobalLearningFactor>
            <RestRateMultiplier>100</RestRateMultiplier>
            <EatingSpeed>10000</EatingSpeed>
            <ImmunityGainSpeed>10000</ImmunityGainSpeed>
            <InjuryHealingFactor>10000</InjuryHealingFactor>
            <CarryingCapacity>10000</CarryingCapacity>
            <ForagedNutritionPerDay>100</ForagedNutritionPerDay>
            <FilthRate>0</FilthRate>
            <!-- Social Stats -->
            <NegotiationAbility>10000</NegotiationAbility>
            <PawnBeauty>10000</PawnBeauty>
            <ArrestSuccessChance>10000</ArrestSuccessChance>
            <TradePriceImprovement>10000</TradePriceImprovement>
            <DrugSellPriceImprovement>10000</DrugSellPriceImprovement>
            <SocialImpact>10000</SocialImpact>
            <TameAnimalChance>10000</TameAnimalChance>
            <TrainAnimalChance>10000</TrainAnimalChance>
            <BondAnimalChanceFactor>10000</BondAnimalChanceFactor>
            <!-- Medical -->
            <MedicalTendSpeed>10000</MedicalTendSpeed>
            <MedicalTendQuality>10000</MedicalTendQuality>
            <MedicalOperationSpeed>10000</MedicalOperationSpeed>
            <MedicalSurgerySuccessChance>10000</MedicalSurgerySuccessChance>
            <!-- General Work -->
            <WorkSpeedGlobal>1</WorkSpeedGlobal> <!-- I don't recommend making this higher-->
            <MiningSpeed>10</MiningSpeed> <!-- Also this one -->
            <DeepDrillingSpeed>10000</DeepDrillingSpeed>
            <MiningYield>10</MiningYield> <!-- Any higher and it might flood all your stockpiles -->
            <SmoothingSpeed>10000</SmoothingSpeed>
            <ResearchSpeed>10</ResearchSpeed> <!-- And this one -->
            <AnimalGatherSpeed>10000</AnimalGatherSpeed>
            <AnimalGatherYield>100</AnimalGatherYield>
            <PlantWorkSpeed>10000</PlantWorkSpeed>
            <PlantHarvestYield>10</PlantHarvestYield>
            <DrugHarvestYield>10</DrugHarvestYield>
            <HuntingStealth>100</HuntingStealth>
            <ConstructionSpeed>10000</ConstructionSpeed>
            <ConstructSuccessChance>10000</ConstructSuccessChance>
            <FixBrokenDownBuildingSuccessChance>10000</FixBrokenDownBuildingSuccessChance>
            <!-- Crafting -->
            <SmeltingSpeed>10000</SmeltingSpeed>
            <GeneralLaborSpeed>10000</GeneralLaborSpeed>
            <DrugSynthesisSpeed>10000</DrugSynthesisSpeed>
            <CookSpeed>10000</CookSpeed>
            <FoodPoisonChance>0</FoodPoisonChance>
            <DrugCookingSpeed>10000</DrugCookingSpeed>
            <ButcheryFleshSpeed>10000</ButcheryFleshSpeed>
            <ButcheryMechanoidSpeed>10000</ButcheryMechanoidSpeed>
            <ButcheryFleshEfficiency>10</ButcheryFleshEfficiency>
            <ButcheryMechanoidEfficiency>1000</ButcheryMechanoidEfficiency>
          </value>
        </li>
      </operations>
</Operation>
</Patch>
#2
Quote from: slgray16 on June 10, 2019, 12:23:04 AM
It seems i don't have cookiecutter installed, or I am running the command in the wrong location.   

C:\>cookiecutter gh:n-fisher/cookiecutter-rimworld-mod-development

'cookiecutter' is not recognized as an internal or external command,
operable program or batch file.

The cookiecutter instuctions are just a link to a GIT solution.  How do I install it?   Does it need a path entry?

Yeah it does
#3
I'm having the same problem. PIP is firing, but apparently cookiecutter is not installed anywhere. I've spent a good half hour googling a solution and have yet to find any
Edit:
1) Had to add cookiecutter to path. This was helpful: https://cookiecutter.readthedocs.io/en/latest/installation.html
2) Visual Studio 2019 had to have the FULL Python workload. IDK why, but it works and I don't want to break it.

Now I have cookiecutter. And all because I just wanted to see if i could get it up. I don't even need it HAHAHHAHA
#4
So I'm working on a mod which adds stuff which are resistant to, or completely negates toxic fallout. Animals were easy, a toxic sensitivity tag and they were done. Plants on the other hand, I have no idea how to go around doing. Has anyone tried this or know how to pull it off?

Edit : Plant's have statbases too. It just seems like it doesn't guarantee resistance to fallout.