Could someone help me fix this weapon problem?

Started by esbe1595, April 19, 2015, 08:57:02 AM

Previous topic - Next topic

esbe1595

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.

BBream

#1
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.

esbe1595

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.

BBream

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.

BBream

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.

esbe1595

#5
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 :(

BBream

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.

esbe1595

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.