IronWeed (need help porting it into alpha 8 (THIS NOT MY MOD)

Started by AntiMatter, December 19, 2014, 06:11:53 PM

Previous topic - Next topic

AntiMatter

i take no credit in this mod. it used to be done by one guy then got updated by another when alpha 7 hit... and now i'd like some help making it work in alpha 8.

here's the code for it:

<?xml version="1.0" encoding="utf-8" ?>
<Plants>


<ThingDef Name="PlantBase" Abstract="True">
    <eType>Plant</eType>
    <category>Plant</category>
    <thingClass>Plant</thingClass>
    <altitudeLayer>LowPlant</altitudeLayer>
    <useStandardHealth>True</useStandardHealth>
    <statBases>
      <Flammability>1.0</Flammability>
    </statBases>
    <tickerType>Rare</tickerType>
    <selectable>False</selectable>
    <neverMultiSelect>True</neverMultiSelect>
    <drawerType>MapMeshOnly</drawerType>
    <shaderType>CutoutPlant</shaderType>
    <plant>
      <harvestDestroys>true</harvestDestroys>
      <harvestingSound>Harvest_Standard</harvestingSound>
      <harvestFinishSound>Harvest_Standard_Finish</harvestFinishSound>
      <sowWork>150</sowWork>
      <fertilityMin>0.5</fertilityMin>
      <fertilityFactorGrowthRate>1.0</fertilityFactorGrowthRate>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <growMinGlow>Overlit</growMinGlow>
      <lifeSpan>200000</lifeSpan>
      <seedShootMinGrowthPercent>0.6</seedShootMinGrowthPercent>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.00</max>
      </visualSizeRange>
    </plant>
  </ThingDef>


<!--=========================== Crops ==============================-->

 
  <ThingDef ParentName="PlantBase">
    <defName>IronWeed</defName>
    <label>Iron Weed</label>
    <statBases>
      <MaxHealth>85</MaxHealth>
      <Beauty>12</Beauty>
    </statBases>
    <description>A strange alien plant that grows a metallic core at it's base.  It has nutrional value, but the plant's core can be harvested as a source of metal.</description>
    <graphicPathFolderRandom>Plant/IronWeed</graphicPathFolderRandom>
    <selectable>true</selectable>
    <pathCost>10</pathCost>
    <food>
      <quality>Plant</quality>
      <nutrition>10</nutrition>
    </food>
    <plant>
      <shootsSeeds>false</shootsSeeds>
      <harvestTag>Standard</harvestTag>
      <harvestedThingDef>Metal</harvestedThingDef>
      <harvestDestroys>true</harvestDestroys>
      <harvestYieldRange>
        <min>2</min>
        <max>5.0</max>
      </harvestYieldRange>
      <sowableGround>true</sowableGround>
      <sowableHydroponic>true</sowableHydroponic>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <lifeSpan>200000</lifeSpan>
      <fertilityFactorGrowthRate>0.4</fertilityFactorGrowthRate>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.05</max>
      </visualSizeRange>
    </plant>
  </ThingDef>

</Plants>


if anyone could point out what's wrong with this and show me what to put in to fix it i'd be very greatful :D

Thanks!

AntiMater.

EDIT: the only thing in the .zip is an "about" folder (and texture folder) and inside the about folder it says:

<ModMetaData>
<name>IronWeed</name>
<author>NephilimNexus - A7 Update by Skullywag</author>
<targetVersion>Alpha 7</targetVersion>
<description>Sick of mining?  Trading ships too slow?  An alien species of plant has been discovered made entirely of metal.  How's that for convenience?</description>
</ModMetaData>


so i'm guessing anyone can edit it at will? i could be wrong...

P.S. i'm pretty sure the author said people could take it up and edit it because he gave up on it but if any admin people find this to be false just drop me a message and remove this thread. i don't want any trouble :)
sometimes, all you need is to get out and push.
-Jeb kerman

Match

Quote<?xml version="1.0" encoding="utf-8" ?>
<Plants>


   <ThingDef Name="PlantBase" Abstract="True">
    <eType>Plant</eType>
    <category>Plant</category>
    <thingClass>Plant</thingClass>
    <altitudeLayer>LowPlant</altitudeLayer>
    <useStandardHealth>True</useStandardHealth>
    <statBases>
      <Flammability>1.0</Flammability>
    </statBases>
    <tickerType>Rare</tickerType>
    <selectable>False</selectable>
    <neverMultiSelect>True</neverMultiSelect>
    <drawerType>MapMeshOnly</drawerType>
    <shaderType>CutoutPlant</shaderType>
    <plant>
      <harvestDestroys>true</harvestDestroys>
      <harvestingSound>Harvest_Standard</harvestingSound>
      <harvestFinishSound>Harvest_Standard_Finish</harvestFinishSound>
      <sowWork>150</sowWork>
      <fertilityMin>0.5</fertilityMin>
      <fertilityFactorGrowthRate>1.0</fertilityFactorGrowthRate>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <growMinGlow>Overlit</growMinGlow>
      <lifeSpan>200000</lifeSpan>
      <seedShootMinGrowthPercent>0.6</seedShootMinGrowthPercent>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.00</max>
      </visualSizeRange>
    </plant>
  </ThingDef>
   
   
   <!--=========================== Crops ==============================-->

 
  <ThingDef ParentName="PlantBase">
    <defName>IronWeed</defName>
    <label>Iron Weed</label>
    <statBases>
      <MaxHealth>85</MaxHealth>
      <Beauty>12</Beauty>
    </statBases>
    <description>A strange alien plant that grows a metallic core at it's base.  It has nutrional value, but the plant's core can be harvested as a source of metal.</description>
    <graphicPathFolderRandom>Plant/IronWeed</graphicPathFolderRandom>
    <selectable>true</selectable>
    <pathCost>10</pathCost>
    <food>
      <quality>Plant</quality>
      <nutrition>10</nutrition>
    </food>
    <plant>
      <shootsSeeds>false</shootsSeeds>
      <harvestTag>Standard</harvestTag>
      <harvestedThingDef>Metal</harvestedThingDef>
      <harvestDestroys>true</harvestDestroys>
      <harvestYieldRange>
        <min>2</min>
        <max>5.0</max>
      </harvestYieldRange>
      <sowableGround>true</sowableGround>
      <sowableHydroponic>true</sowableHydroponic>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <lifeSpan>200000</lifeSpan>
      <fertilityFactorGrowthRate>0.4</fertilityFactorGrowthRate>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.05</max>
      </visualSizeRange>
    </plant>
  </ThingDef>
   
</Plants>

should be changed to

Quote<?xml version="1.0" encoding="utf-8" ?>
<Plants>


   <ThingDef Name="PlantBase" Abstract="True">
    <eType>Plant</eType>
    <category>Plant</category>
    <thingClass>Plant</thingClass>
    <altitudeLayer>LowPlant</altitudeLayer>
    <useStandardHealth>True</useStandardHealth>
    <statBases>
      <Flammability>0.8</Flammability>
    </statBases>
    <tickerType>Rare</tickerType>
    <selectable>False</selectable>
    <neverMultiSelect>True</neverMultiSelect>
    <drawerType>MapMeshOnly</drawerType>
    <shaderType>CutoutPlant</shaderType>
    <plant>
      <harvestDestroys>true</harvestDestroys>
      <soundHarvesting>Harvest_Standard</soundHarvesting>
      <soundHarvestFinish>Harvest_Standard_Finish</soundHarvestFinish>
      <sowWork>150</sowWork>
      <fertilityMin>0.5</fertilityMin>
      <fertilityFactorGrowthRate>1.0</fertilityFactorGrowthRate>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <growMinGlow>Overlit</growMinGlow>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.00</max>
      </visualSizeRange>
    </plant>
  </ThingDef>
   
   
   <!--=========================== Crops ==============================-->

 
  <ThingDef ParentName="PlantBase">
    <defName>IronWeed</defName>
    <label>Iron Weed</label>
    <statBases>
      <MaxHealth>85</MaxHealth>
      <Beauty>12</Beauty>
    </statBases>
    <description>A strange alien plant that grows a metallic core at it's base.  It has nutrional value, but the plant's core can be harvested as a source of metal.</description>
    **<graphicPath>Plant/IronWeed</graphicPath><graphicClass>Graphic_Random</graphicClass>**
    <selectable>true</selectable>
    <pathCost>10</pathCost>
    <food>
      <quality>Plant</quality>
      <nutrition>10</nutrition>
    </food>
    <plant>
      <dieIfLeafless>true</dieIfLeafless>
      <shootsSeeds>false</shootsSeeds>
      <harvestTag>Standard</harvestTag>
      <harvestedThingDef>Metal</harvestedThingDef>
      <harvestDestroys>true</harvestDestroys>
      <harvestYieldRange>
        <min>2</min>
        <max>5.0</max>
      </harvestYieldRange>
      <sowTags>
        <li>Ground</li>
        <li>Hydroponic</li>
      </sowTags>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <lifeSpan>200000</lifeSpan>
      <fertilityFactorGrowthRate>0.4</fertilityFactorGrowthRate>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.05</max>
      </visualSizeRange>
    </plant>
  </ThingDef>
   
</Plants>

The only thing I'm having trouble understanding how to code is this part as highlighted by the double asterisk.

Quote**<graphicPath>Plant/IronWeed</graphicPath><graphicClass>Graphic_Random</graphicClass>**

That said, i'm really just an amateur so some other folks might be able to help more.

AntiMatter

those last two you can't code would probably be the texture due to the nature of names and that path. i'll test that new .xml now and get back to you.

oh btw thanks!
sometimes, all you need is to get out and push.
-Jeb kerman

AntiMatter

ok it works

all i had to do was rename it and instead of "<harvestedThingDef>Metal</harvestedThingDef>" i put "<harvestedThingDef>Steel</harvestedThingDef>"

so thanks alot you know alot more than i do :P
sometimes, all you need is to get out and push.
-Jeb kerman

Rainbow Dash

#4
I don't know if you still need help or not but I updated IronWeed and gave it two research requirements:

    1)hydroponics

    2)How To Grow Steel In Your Backyard

Hydroponics because now you can only grow IronWeed in the hydroponics basin, and How To Grow Steel In Your Backyard to unlock the IronWeed plant for growing.

Any way, heres the zip file for you to do with as you please.  IronWeed

Rikiki

Sorry but:
1) Research description and About.xml are exchanged.
2) The research prerequisite does not prevent from planting ironweed once the hydroponics are researched. I suspect your research has no effect... :(

I believe <ResearchPrerequisite> can only be used for buildings.

Rainbow Dash

 :'(

Thanks for letting me know. I have now made it to where you have to build a hydroponics basin just for IronWeed called...


...wait for it!


Iron Weed Basin!

You unlock this basin after researching Hydroponics and How To Grow Steel In Your Backyard.

Heres the new download link: IronWeed(Alpha8)

p.s.: You may change the name and description of the IronWeed research (How To Grow Steel In Your Backyard) to what ever you like.