Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Troubles with new weapons again.. (SOLVED!!) (And I hope solved for good..)
Troubles with new weapons again.. (SOLVED!!)[message #366009] Thu, 28 March 2024 23:25 Go to previous message
Marcus is currently offline Marcus

 
Messages:110
Registered:November 2014
I wasted my afternoon in doing something I already did: adding new weapons at the end of the lists.
(My apologies, I feel like a cry overcomplicating things..)

Why I'm posting: The game crashes with an hunandled exception wich is a NEW problem for me. I never experienced it before.

Status of my files: I got fresh .xml's files from a new install. I only edited Items, Weapons and Attachments .xml's. Currently I reverted to a clean attachments.xml, but the game crashes just the same.
I checked Gunxx.sti, MDGUNS.sti and SMGuns.sti a dozen times, they are ok.

Expected behaviour when cheating a weapon in game: A weapon that can be fired and inspected with right clicking (And hopefully show right inventory/ground pictures): it should show just the 4 standard attachments slots.
What I get instead: The game crashes upon browsing BR site or right clicking on the weapon in my inventory. In an early attemp I modded in 3 weapons, only the first one showed the correct graphics.

Last but not least: Since it's a new problem maybe it's not related to my .xml's, instead it's a 1.13 bug?!? The version I'm using: JA2_113-v1-115-g32cae66-Ga965L0144-English. Should I upgrade for this?

Anyways, my .xmlfiles (It simply is copy and paste):

Items.xml

<CROUCH_MODIFIERS/>
<PRONE_MODIFIERS/>
</ITEM>
<ITEM>
<uiIndex>1762</uiIndex>
<szItemName>VT-A</szItemName>
<szLongItemName>VT-A Semiautomatic</szLongItemName>
<szItemDesc>Favored by most military officers, this Austrian semi-automatic pistol is considered the defacto standard side-arm worldwide.</szItemDesc>
<szBRName>VT-A</szBRName>
<szBRDesc>Even though most of this Austrian pistol's parts are plastic, it will get detected by airport x-ray machines. The simple design of this recoil-operated self-loader contains only 32 components and is a common army issue worldwide.</szBRDesc>
<usItemClass>2</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubClassIndex>1762</ubClassIndex>
<ubCursor>3</ubCursor>
<ubGraphicNum>374</ubGraphicNum>
<ubWeight>6</ubWeight>
<ubPerPocket>1</ubPerPocket>
<ItemSize>1</ItemSize>
<usPrice>796</usPrice>
<ubCoolness>2</ubCoolness>
<bReliability>4</bReliability>
<bRepairEase>3</bRepairEase>
<Damageable>1</Damageable>
<Repairable>1</Repairable>
<WaterDamages>1</WaterDamages>
<Metal>1</Metal>
<Sinks>1</Sinks>
<ShowStatus>1</ShowStatus>
<BR_NewInventory>5</BR_NewInventory>
<BR_UsedInventory>1</BR_UsedInventory>
<BR_ROF>36</BR_ROF>
<usOverheatingCooldownFactor>100.0</usOverheatingCooldownFactor>
<DamageChance>10</DamageChance>
<DirtIncreaseFactor>20.0</DirtIncreaseFactor>
<STAND_MODIFIERS/>
<CROUCH_MODIFIERS/>
<PRONE_MODIFIERS/>
</ITEM>
</ITEMLIST>

Weapons.xml:

<usOverheatingDamageThreshold>20000</usOverheatingDamageThreshold>
<usOverheatingSingleShotTemperature>100</usOverheatingSingleShotTemperature>
</WEAPON>
<WEAPON>
<uiIndex>1762</uiIndex>
<szWeaponName>VT-A</szWeaponName>
<ubWeaponClass>1</ubWeaponClass>
<ubWeaponType>1</ubWeaponType>
<ubCalibre>2</ubCalibre>
<ubShotsPer4Turns>18.72</ubShotsPer4Turns>
<ubBulletSpeed>21</ubBulletSpeed>
<ubImpact>25</ubImpact>
<ubDeadliness>16</ubDeadliness>
<ubMagSize>15</ubMagSize>
<usRange>115</usRange>
<usReloadDelay>200</usReloadDelay>
<BurstAniDelay>100</BurstAniDelay>
<ubAttackVolume>50</ubAttackVolume>
<ubHitVolume>3</ubHitVolume>
<sSound>299</sSound>
<sReloadSound>100</sReloadSound>
<sLocknLoadSound>106</sLocknLoadSound>
<SilencedSound>156</SilencedSound>
<bBurstAP>20</bBurstAP>
<APsToReload>12</APsToReload>
<SwapClips>1</SwapClips>
<MaxDistForMessyDeath>7</MaxDistForMessyDeath>
<ManualReloadSound>476</ManualReloadSound>
<nAccuracy>6</nAccuracy>
<ubAimLevels>3</ubAimLevels>
<Handling>9</Handling>
<usOverheatingJamThreshold>20000</usOverheatingJamThreshold>
<usOverheatingDamageThreshold>13500</usOverheatingDamageThreshold>
<usOverheatingSingleShotTemperature>45</usOverheatingSingleShotTemperature>
</WEAPON>
</WEAPONLIST>

Any ideas guys?

[Updated on: Fri, 29 March 2024 11:33]

Report message to a moderator

Sergeant
 
Read Message
Read Message
Read Message
Previous Topic: Fastest/most efficient way to test new items in game? (Solved!!)
Next Topic: A semi-useless explenation about WeaponClass.xml?!?
Goto Forum:
  


Current Time: Mon Dec 02 19:53:35 GMT+2 2024

Total time taken to generate the page: 0.00842 seconds