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
|
|
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
|
|
|
Re: Troubles with new weapons again..[message #366010 is a reply to message #366009]
|
Fri, 29 March 2024 01:06
|
|
Kitty |
|
Messages:473
Registered:October 2017 Location: Germany |
|
|
If you're using version "JA2_113-v1-115-g32cae66-Ga965L0144-English", "...v1_115..." is from August 2023 (last year, that's a tad to old)
So, yes. I'd suggest a fresh install of the newest 1.13 to be up-to-date with latest available features and fixes
You can download it from gitHub:
gitHub - release of the newest 1.13
(the zip-files are under "Assets")
At the moment of writing, I see version
"JA2_113-v1-134-gfad3a27-G72e5L0144-English" (which is from 20.03.2024)
Installing:
- a fresh, clean original ja2
- unzip download over it, overwrite when asked
- set desired resolution in IniEditor
- optional: make some settings in cnc-ddraw.exe (fullscreen, windowed, fps-rate, etc - stuff like that)
- start
--
better not try to unzip it over an already existing 1.13-install when troubleshooting or testing stuff
make a complete fresh install
that way you can eliminate any doubts if there might has been an issue due to install
--
weapon:
create graphics for sti-files
three sizes are required
an estimate of what's a good size can be seen when opening one of the Gun...sti in BigItems
size of md should be about half that size and size of sm again roundabout half size of the previous
take care of matching transparancy colour (i.e. full blue for big and md, but black for sm)
md and sm require those outlines in full green
use the pipette to get exact colour if unsure
add the sti-files
big one goes into "BigItems"
at the moment of writing this, the highest number used in newest version from gitHub is Gun374.sti
so your new number would be Gun375.sti in this case (always one number higher than the last you see there)
at "Interface" there is MDGuns.sti
open it with stiEditor
go to last index, which is 374 (in newest version from gitHub at the moment of writing)
hit the "+" to open next index, that will be 375
add your .bmp of md-picture in there (with "replace existing bmp")
the some goes for sm
"Tileset/0"
SMGuns.sti
do the same as for md, just use your picture for sm this time
new index will be 375 there as well
-
add new item at bottom of items.xml
at the time of writing this, the last item is 1762, so your new one should be 1763
now, there's the graphic-number tag
this will be 375 (the same number you've used for all three of the sti-files)
class index should be 1763
-
add new weapon to bottom of weapons.xml
should be index 1763 (same as in class index of items.xml)
-
that's assuming that you've set all tags correctly in items and weapons.xml
if you've just copypasted them and adjusted the abovementioned numbers, it should be ok
take a look at existing weapons to get the idea, better a common weapon to test things, not one with any special abilities
i.e., don't use something like the XM-29 OICW (a combination of launcher and gun) as template, just a plain gun
save all changed files
start a new game (no loading of a save, start a fresh new game)
then test the weapon ingame
--
bonne chance and thumbs up
-------------
As for that "unhandled exception"-error you've faced when using the old 1.13 version fom last year, try to check the error logs in Profiles/UserProfile_JA2113
Depending on what else it says in there, it may can give a hint about what has happened
i.e. did it say where that expception happened?
[Updated on: Fri, 29 March 2024 01:53]
How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN
I need more details. (Didi Hallervorden) Report message to a moderator
|
|
|
|
Re: Troubles with new weapons again..[message #366015 is a reply to message #366010]
|
Fri, 29 March 2024 11:42
|
|
Marcus |
|
Messages:110
Registered:November 2014 |
|
|
Ok, the problem was that my big GUNxxx.sti was named 1763 and not 375. Something you already told me several times and I couldn't get...
Anyway, I downloaded the latest build and got fresh files, I should have done it immediately.
Also, thanks for the clear tutorial: We should make a complete downlodable tut with the info you gave me. All info is already available on this forum, but you need to browse different threads and that can be an headhache for beginners. I can do it myself once I succesfully implement a few more weapons.
UPDATE: I managed to implement 3 handguns. They work correctly and sport the correct attachment slots! I'm HAPPY!
[Updated on: Fri, 29 March 2024 12:53] Report message to a moderator
|
Sergeant
|
|
|
Goto Forum:
Current Time: Mon Dec 02 19:35:23 GMT+2 2024
Total time taken to generate the page: 0.01134 seconds
|