边缘世界 RimWorld

边缘世界 RimWorld

Railgun Weaponry - No PRF Dependency
TwotoolusFLY_LSh.st 2021 年 8 月 5 日 上午 10:08
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
< >
正在显示第 1 - 3 条,共 3 条留言
Holgast  [开发者] 2021 年 11 月 14 日 下午 6:33 
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.
TwotoolusFLY_LSh.st 2021 年 11 月 15 日 下午 9:07 
GOOD :hardhat::highlvl:
reth 2023 年 4 月 23 日 下午 4:34 
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)
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50