RimWorld

RimWorld

Railgun Weaponry - No PRF Dependency
can you fix xml error
XML error: <menuHidden>true</menuHidden> doesn't correspond to any field in type ThingDef. Context: <ThingDef ParentName="BaseWeaponTurret"><thingClass>ThingWithComps</thingClass><category>Item</category><drawerType>MapMeshAndRealTime</drawerType><drawGUIOverlay>true</drawGUIOverlay><altitudeLayer>Item</altitudeLayer><alwaysHaulable>true</alwaysHaulable><tickerType>Never</tickerType><equipmentType>Primary</equipmentType><useHitPoints>false</useHitPoints><pathCost>14</pathCost><selectable>true</selectable><statBases><MaxHitPoints>100</MaxHitPoints><Flammability>0</Flammability><DeteriorationRate>0</DeteriorationRate><Beauty>-3</Beauty><SellPriceFactor>0.20</SellPriceFactor><AccuracyTouch>0.75</AccuracyTouch><AccuracyShort>0.85</AccuracyShort><AccuracyMedium>0.95</AccuracyMedium><AccuracyLong>0.99</AccuracyLong><RangedWeapon_Cooldown>.4</RangedWeapon_Cooldown><Mass>7.4</Mass></statBases><comps><li Class="CompProperties_Forbiddable" /><li><compClass>CompEquippable</compClass></li><li Class="CompProperties_Styleable" /></comps><graphicData><onGroundRandomRotateAngle>35</onGroundRandomRotateAngle><graphicClass>Graphic_Single</graphicClass><texPath>Turret/RailGun_Top</texPath><drawSize>(2,2)</drawSize></graphicData><destroyOnDrop>true</destroyOnDrop><canGenerateDefaultDesignator>false</canGenerateDefaultDesignator><tradeability>None</tradeability><weaponTags><li>TurretGun</li></weaponTags><weaponClasses><li>Ranged</li></weaponClasses><defName>DTech_Gun_Railgun</defName><label>railgun turret gun</label><description>A charge rifle made to be mounted on a turret.</description><soundInteract>Interact_Rifle</soundInteract><menuHidden>true</menuHidden><verbs><li><verbClass>Verb_Shoot</verbClass><hasStandardCommand>true</hasStandardCommand><defaultProjectile>DTech_Bullet_Railgun</defaultProjectile><range>30</range><ticksBetweenBurstShots>0.2</ticksBetweenBurstShots><burstShotCount>1</burstShotCount><soundCast>Shot_ChargeRifle</soundCast><soundCastTail>GunTail_Medium</soundCastTail><muzzleFlashScale>6</muzzleFlashScale><consumeFuelPerShot>1</consumeFuelPerShot></li></verbs></ThingDef>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.DirectXmlToObject:ObjectFromXml<Verse.ThingDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<Verse.ThingDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>)
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()


https://gist.github.com/af8881618b9d5433d01d54e69c24ac63
< >
Showing 1-3 of 3 comments
Holgast  [developer] 14 Nov, 2021 @ 6:33pm 
hey thanks, I just saw this (looks like I don't get notified when someone posts a thread) It looks like menuhidden was deprecated in 1.3 so I'm uploading an update now to remove it.
GOOD :hardhat::highlvl:
reth 23 Apr, 2023 @ 4:34pm 
There are some other XML warnings in the debug log

Debug Log:
Parsed 0.2 as int.
Parsed 0.5 as int.
Parsed 1.5 as int.

In your XML:
<ticksBetweenBurstShots>0.2</ticksBetweenBurstShots>

(I assume this is getting rounded to 0, there are 60 ticks in 1 second)
< >
Showing 1-3 of 3 comments
Per page: 1530 50