Log in

View Full Version : File locations/index references for 10.5cm, 88mm, 37mm & 20mm ammo/guns


Cptn_Enth
03-04-10, 08:22 PM
Evening guys,

I'm trying to figure out where Ubi placed the references for the deck guns and ammo storage for the sub's deck & flak guns, but they do not seem to be in their usual locations, for example, in Basic.cfg, the ammo storage/unit for the various guns used to be referenced here, just below the conning tower data:

[SUBMARINE_AMMOLIMITS1] ;105mm
MaxAmmoPerSlot=20
[SUBMARINE_AMMOLIMITS2] ;88mm
MaxAmmoPerSlot=40
[SUBMARINE_AMMOLIMITS3] ;37mm
MaxAmmoPerSlot=400
[SUBMARINE_AMMOLIMITS4] ;20mm
MaxAmmoPerSlot=1000

I've tried changing these values by a small increment, but the changes are not applied in game. Also, I've tried browsing the shells.sim and shells.zon files to see the explosion/AP values for the various ammunition (105, 88, 37, & 22mm rounds), but the indexes aren't noted at all...I was wondering if anyone knew which indexes belonged to which round, or if there was an easy way to figure it out using the existing tools we have at our disposal...

Thanks in advance to everyone in the mod community for all of their tireless work!

Regards,

Enth

runno
03-17-10, 08:38 AM
These values are stored in data/Objects/Guns folder. Each gun has its .sim and .zon file. The ammo storage parameters are in the .sim file.

I've modified them and have now both the deck gun and flaks with storage of 32000 rounds each shell type (AP, HE) as well as modified shell speed and reload time.

They feel like miniguns :up:

wamphyri
03-17-10, 09:37 AM
use goblin editor to open up all the shell files and you'll see the 20mm and 30mm shell types listed. Just double click the shell you want to change and click ammodamageinfo and all the info you want is right there. If your using s3d it just has lost of listings for ammodamageinfo and hard to find the exact one you want.

Cptn_Enth
03-17-10, 03:51 PM
Thanks a ton guys...haven't messed with the Goblin Editor yet...guess this will give me something to do over the weekend. :) (Side note: Ubi really needs to annotate things better :P)


While I'm there, maybe I'll see what I can tinker with to get ships to sink by flooding damage/fire damage...I know other much more learned and talented modders are already working to crack the code, but another pair of eyes can't hurt, right?

Thanks again,

E.

Punkedit
03-17-10, 06:41 PM
Under the gun folder there is only .sim I do not see the .zon could you please help.

JL2010
03-18-10, 02:11 AM
Gentlemen, where can I download the software "Goblin Editor". Thanks in adv. I can't find any download pages even with google & yahoo search.

reboot
03-18-10, 02:39 AM
Gentlemen, where can I download the software "Goblin Editor". Thanks in adv. I can't find any download pages even with google & yahoo search.

It's in your sh5 root folder. It comes with the game.

Decoman
03-18-10, 02:42 AM
I wonder, what kind of filetype is a .zon file? Is the data found in .zon files used in any particular way?

runno
03-18-10, 06:32 AM
Punkedit, there could be only .sim files there, I did not check before posting the message. However, with guns the .zon files are irrelevant anyway.

Decoman, I have used the .zon files to set the hit points and armor level values of ships and airplanes. There are a lot of armor level strings there, which usually are valued -1, but one of them is different. It's right after ColisionableObject string (that's the exact string, no typo there) and the value after the ArmorLevel string reflects the thickness of the hull (e.g. for merchant ships it was about 20-25 and for CV/BB it was over 90). The deck gun was not able to penetrate any ships with this value over 25, but after modding the value, it was. The HitPoints value is (like the name says) the value, how much damage can a ship take.

runno
03-18-10, 06:36 AM
I've used the Goblin, but after I already modded the files with hex editor. Goblin is easier to use for beginners, but if you know where and what to look for, I recommend a hex editor, which supports the Intel hex. From what I've used, only Hex Workshop supports it, but it is not freeware. However, it has a hex convertor (BConv32.exe), which can be used as standalone with some other freeware hex editor.