Home » PLAYER'S HQ 1.13 » v1.13 General Gameplay Talk » Wrong ammo in JA2Vanilla 1.13
Wrong ammo in JA2Vanilla 1.13[message #335291] Sun, 31 August 2014 08:14 Go to next message
Tyco

 
Messages:189
Registered:September 2001
Location: Be'er Sheva, Israel
I'm playing Vanilla JA2 with the latest build (7435) of version 1.13 (running vfs_config.JA2Vanilla.ini from the INI Editor) on a fresh JA2 installation from GOG.com, and the ammo isn't acting right.

Unloading guns gives me a different ammo type with different ammo graphics, but it loads back into the weapon just fine. The ammo that comes in the merc's inventory displays AP or HP color when loaded into the corresponding weapon; specifically, .38 Special ammo has HP color and Barracuda has AP color (though that may be a 1.13 feature). Some ammo dropped by enemy does not match the item description (9mm calico 50-round mag having only 7 out of 7 bullets in it).

I tried running the game from the JA2.exe and from the INI Editor but the ammo mixup is the same.

Is this a bug with the recent build? Am I running the game wrong? Would really appreciate some help.

The INI file I edited was Data\Ja2_Options.ini, didn't touch any of the others.
Re: Wrong ammo in JA2Vanilla 1.13[message #335300] Sun, 31 August 2014 13:01 Go to previous messageGo to next message
Buggler

 
Messages:207
Registered:November 2009
Confirmed compatible ammo messed up in Data folder.

To reproduce with vfs_config.JA2Vanilla.ini:
- Play with Drop all
- Unload ammo from gun e.g. Glock 17 or Barracuda OR Mouseover the guns to see the compatible ammo highlight in sector inventory


Could someone take a look and fixed it?
(I'm not into gun/item thingy.)

Thanks. Smile
Re: Wrong ammo in JA2Vanilla 1.13[message #335305] Sun, 31 August 2014 15:06 Go to previous messageGo to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
Using a clean install, with stable GameDir r2131 and stable exe r7444. I set
VFS_CONFIG_INI = vfs_config.JA2Vanilla.ini
in Ja2.ini. With this, I cannot reproduce the error - I am missing a step here?

Edit1: Hmmmmmm. Using the ini editor I can however. grml.

[Updated on: Sun, 31 August 2014 15:10] by Moderator



Re: Wrong ammo in JA2Vanilla 1.13[message #335307] Sun, 31 August 2014 15:27 Go to previous messageGo to next message
silversurfer

 
Messages:2546
Registered:May 2009
Let's do a quick check.

First Data-1.13 folder:

Item 71 "9x19mm Mag 15" in Items.xml (GameDir 2130):
class index = 28 -> Magazines.xml:
calibre = 2 -> 9x19mm in AmmoStrings.xml
mag size = 15
ammo type = 0 -> Ball ammo type in AmmoTypes.xml

This seems correct.

Now to the Data folder:

Item 71 "9x19mm Mag 15" in Items.xml (GameDir 2130):
class index = 5 -> Magazines.xml:
calibre = 2 -> 9x19mm in AmmoStrings.xml
mag size = 15
ammo type = 2 -> AP ammo type in AmmoTypes.xml

This seems wrong.

Now we take a look at the old 4870 folders:

First Data-1.13 folder:

Item 71 "9x19mm Mag 15" in Items.xml (GameDir 4870):
class index = 22 -> Magazines.xml:
calibre = 2 -> 9x19mm in AmmoStrings.xml
mag size = 15
ammo type = 0 -> Ball ammo type in AmmoTypes.xml

This looks correct.

And this is the Data folder:

Item 71 "9x19mm Mag 15" in Items.xml (GameDir 4870):
class index = 4 -> Magazines.xml:
calibre = 2 -> 9x19mm in AmmoStrings.xml
mag size = 15
ammo type = 1 -> HP ammo type in AmmoTypes.xml

To me it looks like vanilla ammo types have never been correct unless I'm reading the data wrong.

Re: Wrong ammo in JA2Vanilla 1.13[message #335308] Sun, 31 August 2014 15:39 Go to previous messageGo to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
Even worse, in the Data:

Item 79 ".38 S-Load HP" in Items.xml (GameDir 2130):
class index = 3 -> Magazines.xml:
calibre = 2 -> 9x19mm in AmmoStrings.xml
mag size = 15
ammo type = 0 -> Ball ammo type in AmmoTypes.xml

As a result, a HP speedloader of a different caliber is used as a mag.

Edit1: The Magazines and Items xmls were moved in r1584, but there are no relevant changes to this afterwards. Before that there were plenty of revamps of Magazines.xml... including a few for UB (why?). Ugh. I have no idea which xmls are the correct ones. Uh Oh

Edit2: time travel action... Items.xml, Magazines.xml and Weapons.xml from r494 (September 2006) is bad, as we now get a 357 HP mag...

Edit3: r866 (mid-2007) seems to work fine, Beretta 92F refuses to take speedloaders and spawns a 15 9x19mm Mag when spawned fresh...

Edit4: r1203 (end of 2009) seems fine as well...

Edit5: r1398 is bad. For a change, we now use .38 AP in 9mm guns.

Edit6: Using a r1431 Magazines.xml with r1398 Items and Weapons is fine... apart from the fact that all guns now spawn without magazines :headbanger:

[Updated on: Sun, 31 August 2014 16:20] by Moderator



Re: Wrong ammo in JA2Vanilla 1.13[message #335309] Sun, 31 August 2014 16:01 Go to previous messageGo to next message
Uriens

 
Messages:333
Registered:July 2006
I'm under impression that it's better to either update ini editor or to remove it completely. It seems that it's current state causes lots of bug reports.
Re: Wrong ammo in JA2Vanilla 1.13[message #335310] Sun, 31 August 2014 16:03 Go to previous messageGo to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
In this case, the xmls in the Data folder are faulty, no error of the ini editor...

Also, afaik the source code to the INI Editor has been lost, so its archeotech now.


Re: Wrong ammo in JA2Vanilla 1.13[message #335311] Sun, 31 August 2014 16:39 Go to previous messageGo to next message
RoWa21

 
Messages:2029
Registered:October 2005
Location: Austria
Flugente

Also, afaik the source code to the INI Editor has been lost, so its archeotech now.


I have the source code of the INI Editor, it is not lost Smile
What should I update on the INI Editor? The problem has nothing to do with the INI Editor.

[Updated on: Sun, 31 August 2014 16:41] by Moderator



Re: Wrong ammo in JA2Vanilla 1.13[message #335313] Sun, 31 August 2014 17:24 Go to previous messageGo to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
As I am unable to assert at what point in the last 8 year this has gone fubar, I've simply corrected the xmls by hand. The issue was a wrong in Items.xml. Most had it off by 2, some by 1, and some did not have a magazine corresponding to it at all :bluesuspect:

Anyway, fix committed in r2135. As I do not know how fixes will be distributed to people using the stable release, you can also get corrected Items.xml and Magazines.xml from here. Just dump them into Data/TableData/Items and you will be done.

Do NOT, repeat, NOT!!! dump them into Data-1.13/TableData/Items!


Re: Wrong ammo in JA2Vanilla 1.13[message #335318] Sun, 31 August 2014 17:35 Go to previous messageGo to next message
RoWa21

 
Messages:2029
Registered:October 2005
Location: Austria
thanks flugente fox fixing the bug and providing the fixed file.
when we have fixed some bugs we will release an official update package in the future.


Re: Wrong ammo in JA2Vanilla 1.13[message #335322] Sun, 31 August 2014 18:28 Go to previous messageGo to next message
Tyco

 
Messages:189
Registered:September 2001
Location: Be'er Sheva, Israel
Thanks to everyone for help solve this bug, and thank you Flugente for fixing the xmls. I'm still amazed at how dedicated and supportive the Jagged Alliance community is 15 years after the game was lunched! You guys are great.

Thanks again.
Re: Wrong ammo in JA2Vanilla 1.13[message #336537] Fri, 10 October 2014 03:01 Go to previous message
MinotaurZombie
Messages:2
Registered:October 2014
I too want to give a big thanks to everyone for the help in this (especially Flugente for taking the time to go through the xml tables and correct the issues. I'm sure that took quite a bit of time). I just started playing this game for the first time and ran into the same issue. It's great to see a community like this for a game this old!
Previous Topic: rooftops bugged??
Next Topic: Technical problem with mouse aim turning invisible in JA2, after a new install
Goto Forum:
  


Current Time: Mon Jun 24 21:01:24 EEST 2019

Total time taken to generate the page: 0.01825 seconds