Ludeon Forums

RimWorld => Mods => Help => Topic started by: esbe1595 on April 19, 2015, 08:57:02 AM

Title: Could someone help me fix this weapon problem?
Post by: esbe1595 on April 19, 2015, 08:57:02 AM
Hello everyone.

Ive recently been working on my first mod which adds a new gun type and damage type. I had the mod working as intended earlier but after returning from a trip. It somehow doesnt work anymore. I must have accidentally changed something. If someone would try installing the mod, testing it and tell me where i cocked up i would be really grateful. Im also trying to make it only damage flesh and that is why the name of wounds to solid bodyparts is wierd.

https://www.dropbox.com/sh/2kzh89l3ivqn7g8/AADdPO6JfL9H5IgzekG79R5da?dl=0 <-- Link to the mod

Thanks.
Title: Re: Could someone help me fix this weapon problem?
Post by: BBream on April 21, 2015, 01:57:37 AM
I don't want to check it until you tell something to be changed and what problem is. It is too many possiblity to check it.
Title: Re: Could someone help me fix this weapon problem?
Post by: esbe1595 on April 21, 2015, 02:14:08 AM
Quote from: BBream on April 21, 2015, 01:57:37 AM
I don't want to check it until you tell something to be changed and what problem is. It is too many possiblity to check it.

My problem is that it gives a bunch of errors when i load the mod and i dont have a clue what these errors mean. So i thought somebody else maybe could tell me where i screwed up.
Title: Re: Could someone help me fix this weapon problem?
Post by: BBream on April 21, 2015, 02:24:14 AM
Then you can upload screenshot or output_log.txt file. It is useful for fixing xml error. You can find it in RimWorld###Win_Data folder. I need it.
Title: Re: Could someone help me fix this weapon problem?
Post by: BBream on April 21, 2015, 03:36:39 AM
In Hediffs_Injuries.XML, you omit </HediffDefs> in end of line.

I'm not a compiler. If you upload your log file if you can, you can save earth. This post views are 40 now. If you upload log file, then 40 peoples save installing time. PROFIT! Trust me ::)

You weapon is partially work. Mechanoid is still taken damage. Anyway you finally did it.
What is cytoboil's effect? I can't find in any dictionary.
Title: Re: Could someone help me fix this weapon problem?
Post by: esbe1595 on April 21, 2015, 07:23:57 AM
Quote from: BBream on April 21, 2015, 03:36:39 AM
In Hediffs_Injuries.XML, you omit </HediffDefs> in end of line.

I'm not a compiler. If you upload your log file if you can, you can save earth. This post views are 40 now. If you upload log file, then 40 peoples save installing time. PROFIT! Trust me ::)

You weapon is partially work. Mechanoid is still taken damage. Anyway you finally did it.
What is cytoboil's effect? I can't find in any dictionary.

You mean cytoboil in English or in the scripting?

I also have no clue what you mena with "omit" and pretty much the rest of the post. Im kind of a moron :(
Title: Re: Could someone help me fix this weapon problem?
Post by: BBream on April 21, 2015, 07:52:46 AM
You should add </HediffDefs> In end of Hediffs_Injuries.XML like:


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

  <HediffDef Name="InjuryBase" Abstract="True">
    <hediffClass>Hediff_Injury</hediffClass>
    <displayWound>true</displayWound>
  </HediffDef>

 
  <HediffDef ParentName="InjuryBase">
<defName>Cytoboil</defName>
<label>cytoboil wound</label>
<naturallyHealed>true</naturallyHealed>
<painPerSeverity>1</painPerSeverity>
    <painPerSeverityOld>0.5</painPerSeverityOld>
    <comps>
      <li>
        <compClass>HediffComp_Treatable</compClass>
        <labelTreatedWell>Restored</labelTreatedWell>
        <labelTreated>Poorly restored</labelTreated>
        <labelTreatedWellInner>Restored</labelTreatedWellInner>
        <labelTreatedInner>Poorly restored</labelTreatedInner>
        <labelSolidTreatedWell>If you see this. I fucked up</labelSolidTreatedWell>
        <labelSolidTreated>If you see this. I fucked up</labelSolidTreated>
      </li>
      <li>
        <compClass>HediffComp_Infecter</compClass>
        <infectionChance>0.0</infectionChance>
      </li>
      <li>
        <compClass>HediffComp_GetsOld</compClass>
        <oldLabel>Old cytoboil wound</oldLabel>
      </li>
    </comps>
<injuryProps>
<bleeding>0.92</bleeding>
<canMerge>false</canMerge>
<fullyHealableOnlyByTreatment>true</fullyHealableOnlyByTreatment>
<destroyedLabel>Vapourized</destroyedLabel>
<destroyedOutLabel>Vapourized</destroyedOutLabel>
</injuryProps>
</HediffDef>
 
</HediffDefs>


I mean cytoboil's english meaning.
Title: Re: Could someone help me fix this weapon problem?
Post by: esbe1595 on April 23, 2015, 10:37:20 AM
Quote from: BBream on April 21, 2015, 07:52:46 AM
You should add </HediffDefs> In end of Hediffs_Injuries.XML like:


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

  <HediffDef Name="InjuryBase" Abstract="True">
    <hediffClass>Hediff_Injury</hediffClass>
    <displayWound>true</displayWound>
  </HediffDef>

 
  <HediffDef ParentName="InjuryBase">
<defName>Cytoboil</defName>
<label>cytoboil wound</label>
<naturallyHealed>true</naturallyHealed>
<painPerSeverity>1</painPerSeverity>
    <painPerSeverityOld>0.5</painPerSeverityOld>
    <comps>
      <li>
        <compClass>HediffComp_Treatable</compClass>
        <labelTreatedWell>Restored</labelTreatedWell>
        <labelTreated>Poorly restored</labelTreated>
        <labelTreatedWellInner>Restored</labelTreatedWellInner>
        <labelTreatedInner>Poorly restored</labelTreatedInner>
        <labelSolidTreatedWell>If you see this. I fucked up</labelSolidTreatedWell>
        <labelSolidTreated>If you see this. I fucked up</labelSolidTreated>
      </li>
      <li>
        <compClass>HediffComp_Infecter</compClass>
        <infectionChance>0.0</infectionChance>
      </li>
      <li>
        <compClass>HediffComp_GetsOld</compClass>
        <oldLabel>Old cytoboil wound</oldLabel>
      </li>
    </comps>
<injuryProps>
<bleeding>0.92</bleeding>
<canMerge>false</canMerge>
<fullyHealableOnlyByTreatment>true</fullyHealableOnlyByTreatment>
<destroyedLabel>Vapourized</destroyedLabel>
<destroyedOutLabel>Vapourized</destroyedOutLabel>
</injuryProps>
</HediffDef>
 
</HediffDefs>


I mean cytoboil's english meaning.

Its a term i invented. Its a mix of "cyto" from cytoplasma and "boil" since the weapons boil the cyto plasma.