SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-04-08, 07:36 AM   #1
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 224
Downloads: 365
Uploads: 6
[TEC] Shells.dat + Shells.zon Node Numbers in 1.5 v1.1

Ahoy Skippers und Kapitäns!

Now version at 1.1.

- found some typos (copypasta).
- added info about US and GE submarine guns ammos.

- I have had this updated version for some time but didn't update it until today, 18.march.08

"Inspired" by the post in second page of the Progress on TM and SH4 ver 1.5 thread:

Quote:
Originally Posted by skwasjer
Quote:
Originally Posted by Ducimus
Basicallye i dont feel like redoing every shell adjustment (hard to without a bloody label on them, i have to open up the dat, look at the node names, and then hunt for the child in the sim file , not fun.)
Use the new Find option in v0.6. Next to plain text, it accepts id's in hex format, so basically copy the shell id to clipboard, and paste it in the Find dialog (with the sim file open). The Find function searches both in id and parent id fields for the value you entered. Still tedious, but not as much as before
Thought I'll give it a go.
Ctrl+F in 3ditor helps a lot.
Lotsa copypasta.

So first I booted S3ditor and made ShellsDat.txt file with a list of Nodes + Shellsize + Id from the Shells.dat file
looks like this:

Code:
Node:      Shell:        Id:

2          105mm_HE      0x6843a9abc98196cc

6          105mm_AP      0xa2802057c98196cc

10         105mm_AA      0xf7cf3679c98196cc

12         16Inch_HE     0xae2b0cf1c98196cc

etc...

Then I created ShellsZon.txt file, booted S3ditor and
Shells.zon file nodes and copyed the ParentId number to clipboard
and then searched my ShellsDat.txt for a match.

Pay attention to Node number in left, add 1 to it and you got yourself
the Nodenumber to tweak the AmmoDamageInfo.

Also, I added the corresponding Node Number Shells.dat in the end,
note how the numbering goes backwards.

You could just copy the code and save it as a textfile if you need this data:

Code:
SH4 v.1.5

v.1.1.

- found some typos (copypasta)
- added info about US and GE submarine guns ammos.

This data found with Silent-3ditor-beta06 in Shells.zon:
Also, I added the corresponding Node Number that Shells.dat has,  in the end,
note how the numbering goes backwards. :doh: 

--------------------------------------------------------------------------------------------

Node:      Shell:        ParentId:                  Id:                   Node in Shells.dat

2          30mm_HE       0x765548d9c98196cc         0x01ff205e96cb1c67     202

4          30mm_AP       0x6c99cd09c98196cc         0x01ff00624e0b0264     198

6          2pdr_AA       0x7f6ddabdc98196cc         0x8ddf41f95d5de9f0     194

8          2pdr_AP       0xf15ae9d9c98196cc         0x8ddf41859bb40de0     190

10         2pdr_HE       0x240b417fc98196cc         0x8fdd61870683c468     186

12         20mm_AA       0xd3fece5fc98196cc         0x8fdd6020c9944f4c     182

14         20mm_AP       0x3a65f923c98196cc         0x6ee1e054fbe5a0ea     178

16         20mm_HE       0xcad8fd87c98196cc         0x8fdd61b552161350     174

18         37mm_AA       0x92e0e4c5c98196cc         0x803a2180818fca42     170

20         37mm_AP       0xbb09b24bc98196cc         0x77ca819a2bc1bb18     166

22         37mm_HE       0x68937049c98196cc         0x8fdd6055ba760610     162

24         40mm_AA       0xe9382df9c98196cc         0x805a0032af6ada0a     158

26         40mm_AP       0x13277047c98196cc         0x6ee1e044dc27750a     154

28         40mm_HE       0x5a10c7abc98196cc         0x8fdd6119361a8528     150

30         88mm_AA       0x42e3b49bc98196cc         0x8167e0f7fde69a32     146

32         88mm_AP       0x7cf440f1c98196cc         0x6e8b210d4092a366     142

34         88mm_HE       0x35c3f71dc98196cc         0x8fdd60a33dd36fac     138

36         88mm_S        0x56545dc1c98196cc         0x77ca8149ce0bdaa2     134

38         3Inch_AA      0xe81901e9c98196cc         0x8167e1e96ccc6d8e     130

40         3Inch_AP      0x78b32f37c98196cc         0x816d81fcbc734b04     126

42         3Inch_HE      0xc41089f7c98196cc         0x8fdd8164c707f604     122

44         4Inch_AA      0x7c6a2135c98196cc         0x8167e1389a15e6da     118

46         4Inch_AP      0x421bf431c98196cc         0x6ee1e035087a8cda     114     

48         4Inch_HE      0xc540beafc98196cc         0x8fdd80c59f54e440     110

50         4_7Inch_AA    0xe411f8fdc98196cc         0x8167e1295e71e206     106

52         4_7Inch_AP    0x41022aa5c98196cc         0x6ee1c01dee44a8ea     102

54         4_7Inch_HE    0xc911ff8fc98196cc         0x8fdd80e7be24fda8     98

56         5Inch_AA      0xfa9f1d0fc98196cc         0x8f59c0dcc5357050     94

58         5Inch_AP      0xc08dc92bc98196cc         0x8f59c1ad1fde8f2c     90

60         5Inch_HE      0xda387dfbc98196cc         0x8fdd8192556939ec     86

62         5_25Inch_AA   0x4ebc512bc98196cc         0x8167a1fb96cec242     82

64         5_25Inch_AP   0xc09fd2d5c98196cc         0x8167e108746393b6     78

66         5_25Inch_HE   0x01013e11c98196cc         0x8fdd8039598e8868     74

68         6Inch_AA      0x41961c1dc98196cc         0x8167e020c4a0a546     70

70         6Inch_AP      0x94c7b4bbc98196cc         0x6ee1c1a4d929296a     66

72         6Inch_HE      0x9b237749c98196cc         0x8fdd8037bbecae34     62

74         8Inch_AA      0xae8391b9c98196cc         0x8f59c11166784880     58

76         8Inch_AP      0x885a00abc98196cc         0x8f59c02a34db9768     54

78         8Inch_HE      0xf8d660a5c98196cc         0x8fdd806665b6be58     50

80         14Inch_AA     0x761cd737c98196cc         0x8fdd81dafba34cd8     46

82         14Inch_AP     0x184e4d13c98196cc         0x6ee1c1eb5b93f9a6     42

84         14Inch_HE     0xb69ce823c98196cc         0x8fdd81f7926eed54     38

86         15Inch_AA     0x5f46f7bdc98196cc         0x8fdda02157a11680     34

88         15Inch_AP     0xef2518d1c98196cc         0x6ee1c067b3f769a6     30

90         15Inch_HE     0xb640dcd9c98196cc         0x8fdda16df403bf84     26

92         16Inch_AA     0x932dffddc98196cc         0x8fdda17d0dc1d41c     22   

94         16Inch_AP     0x3e1d083fc98196cc         0x8cb7e0eed39f7840     18

96         16Inch_HE     0xae2b0cf1c98196cc         0x8fdda105e4e8e6e0     12

98         105mm_AA      0xf7cf3679c98196cc         0x955a805c78336f70     10

100        105mm_AP      0xa2802057c98196cc         0x955a803277e310a0     6

102        105mm_HE      0x6843a9abc98196cc         0x955a810b956b79dc     2

--------------------------------------------------------------------------------------------

"a Big Thanks" for skwasjer for the editor, it kicks butt all the time!


This data is vital for modders so
feel free to use this data anyway you like.

I dont mind about some credits tho,
but its not mandatory.
:P




jimbob 8.march.2008
Connecting gun to ammo:
Code:

Connecting gun to ammo:
  For example 20mm_Oerlikon_Single.sim, what node number it uses in shells.zon?

  - Open the file in S3D, navigate to node 7 (properties)
      - + ammo_storage
        - Click the AA and "shell=420804335894781292"
          - In property details we got Id:
            0x3a65f923c98196cc
            
  - which I then searched in this file to find the node number.
  
  ...there probably coulda been easier way,
     but at the same time I did some listing of Id's etc,
     could come handy later on.
     




GerSubParts folder *deck_gun*.sim files;

File(s):
   Ammo type  - Node in Shells.zon  - Shell value in sim file

Deck_Gun_GE20mm_Turret.sim
Deck_Gun_GE20mm_Vierling.sim
Deck_Gun_GE20mmSingle.sim
Deck_Gun_GE20mmSingle_Shield.sim
Deck_Gun_GE20mmTwin.sim
Deck_Gun_GE20mmTwin_Shield.sim

   AP           14                    0x3a65f923c98196cc
   HE           16                    0xcad8fd87c98196cc
   AA           12                    0xd3fece5fc98196cc
   SS           36                    0x56545dc1c98196cc


Deck_Gun_GE30mm_Turret.sim

   AP           4                     0x6c99cd09c98196cc
   HE           2                     0x765548d9c98196cc
   AA           12                    0xd3fece5fc98196cc
   SS           36                    0x56545dc1c98196cc



Deck_Gun_GE37mm_M.sim
Deck_Gun_GE37mm_SA.sim
Deck_Gun_GE37mm_TSA.sim , have AA ammos too.

   AP           20                    0xbb09b24bc98196cc
   HE           16                    0x68937049c98196cc
   AA           18                    0x92e0e4c5c98196cc
   SS           36                    0x56545dc1c98196cc


Deck_Gun_GE105mm.sim (has 20 SS shells)

   AP           100                   0xa2802057c98196cc
   HE           102                   0x6843a9abc98196cc
   AA           98                    0xf7cf3679c98196cc
   SS           36                    0x56545dc1c98196cc




USSubParts folder *deck_gun*.sim files;

File(s):
   Ammo type  - Node in Shells.zon  - Value in sim file

20mm_Oerlikon_Single.sim    " -- " means there's a 0.

   AP           14                    0x3a65f923c98196cc
   HE           16                    0xcad8fd87c98196cc
   AA           --                    ------------------ 
   SS           36                    0x56545dc1c98196cc


20mm_Oerlikon_Twin.sim

   AP           14                    0x3a65f923c98196cc
   HE           16                    0xcad8fd87c98196cc
   AA           --                    ------------------
   SS           --                    ------------------


Deck_Gun_40mm_Single.sim
Deck_Gun_40mm_Twin.sim

   AP           26                    0x13277047c98196cc
   HE           28                    0x5a10c7abc98196cc
   AA           --                    ------------------
   SS           --                    ------------------



Deck_Gun_12mm_Browning.sim

   AP           14                    0x3a65f923c98196cc
   HE           16                    0xcad8fd87c98196cc
   AA           12                    0xd3fece5fc98196cc
   SS           36                    0x56545dc1c98196cc





Deck_Gun_3_50.sim

   AP           32                    0x3a65f923c98196cc
   HE           34                    0x35c3f71dc98196cc
   AA           30                    0x42e3b49bc98196cc
   SS           36                    0x56545dc1c98196cc



Deck_Gun_4_50.sim

   AP           100                   0xa2802057c98196cc
   HE           102                   0x6843a9abc98196cc
   AA           98                    0xf7cf3679c98196cc
   SS           36                    0x56545dc1c98196cc


Deck_Gun_5_25.sim

   AP           64                    0xc09fd2d5c98196cc
   HE           66                    0x01013e11c98196cc
   AA           62                    0x4ebc512bc98196cc
   SS           36                    0x56545dc1c98196cc

..or, you could just DOWNLOAD these txt files.

There could be some errors due excessive copypasta,
but they could be easily fixed.




Have fun.

Last edited by jimbob; 03-19-08 at 01:31 AM.
jimbob is offline   Reply With Quote
Old 03-04-08, 11:06 AM   #2
swdw
Grey Wolf
 
Join Date: Sep 2007
Posts: 921
Downloads: 75
Uploads: 0
Default

Thanks a lot!!!!
__________________
"There are only two types of ships- submarines...... and targets" Unknown

"you wouldn't catch me on a ship that deliberately sinks itself"- comment to me from a surface sailor.

System:
AMD 6300 3.5 GHz | 32GB DDR3 | SATA 300 320GB HD, SATA III 1TB HD, SATA III 1.TB HD | ASUS Sonar DS sound card
NVIDIA 1660 Super OC | Windows 10
swdw is offline   Reply With Quote
Old 03-25-09, 08:04 AM   #3
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

extremely helpfull info here
  Reply With Quote
Old 06-21-10, 04:54 PM   #4
JoeCorrado
Weps
 
Join Date: Apr 2005
Location: Illinois
Posts: 366
Downloads: 176
Uploads: 5
Default

A working link for this:

http://www.filefront.com/16273105/TE...1.5-v.1.1.zip/
__________________
=============



My Game starts with GFO - Keepin' it real as it needs to be!
JoeCorrado is offline   Reply With Quote
Old 06-21-10, 05:26 PM   #5
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Wow, a two year old thread? Your on a crusade. I have the distinct impression you recently surfaced at close range to a merchant with the intent to pummel him with impunity via Deck gun fire, and instead ended up shouting colorful vindictive induced the spanking recieved.
Ducimus is offline   Reply With Quote
Old 06-22-10, 04:12 AM   #6
JoeCorrado
Weps
 
Join Date: Apr 2005
Location: Illinois
Posts: 366
Downloads: 176
Uploads: 5
Default

Quote:
Originally Posted by Ducimus View Post
Wow, a two year old thread? Your on a crusade. I have the distinct impression you recently surfaced at close range to a merchant with the intent to pummel him with impunity via Deck gun fire, and instead ended up shouting colorful vindictive induced the spanking recieved.
I had put a torpedo into a small freighter and surfaced at what I believed was a safe distance to finish him off (and save a torpedo since he was less than 1800 tons and barely able to make headway) after my initial attack. Why waste a torpedo, right? Any sensible merchant captain would have abandoned ship and watched the inevitable from the safety of a life boat.

Well, I received 76% hull damage at a range of well over 600 yards before he went down!

You are right about the string of expletives that issued forth! But that was as nothing compared to...

Later in the patrol, when I had to dive quickly to avoid aircraft who were on a course to practically fly right over my conning tower.. I reacted immediately by ordering we dive to a safe depth of 200 feet, Then, I leisurely left the room for just a moment- secure in the knowledge that I had time to evade detection and all was well... I returned in time to hear the harried shouts from my crew mixed in with breaking glass and the sounds of stressed metal giving way... my weakened hull had given in like an egg shell.

It was too late, over in an instant and nothing I could do... it was a horrible way to go. The closing images still haunt me.
===

An excerpt; Billfish (SS-286) commanded by Edward Beach:

Quote:
DEPARTMENT OF THE NAVY -- NAVAL HISTORICAL CENTER

The submarine departed San Francisco Bay on 12 March and proceeded to Pearl Harbor. Following refresher training in Hawaiian waters, she sailed for the western Pacific and proceeded via the Marianas to the East China Sea to provide lifeguard service for Army Air Force B-29 bombers during raids on Honshu. Late in the month, she shifted to the Tsushima Strait area where, on 26 May, one of her torpedoes sank the 991-ton freighter Kotobuki Maru No. 7. Following an unsuccessful torpedo attack upon a small coastal cargo ship two days later, Billfish scored again when two of her torpedoes sank the 2,220-ton freighter Taiu Maru on 4 June in the Yellow Sea about a mile off the Korean coast. A short time later, she surfaced and destroyed three coastal steamers by gunfire. During the action, rifle fire from the third and last schooner killed Quartermaster 1st Class Robert V. Oliver and wounded another Billfish crewman. At noon on the 5th, the submarine launched a salvo of four torpedoes at a medium-sized freighter; but the target's simultaneous, radical course change caused all to miss. As Billfish left her patrol area, a Japanese plane dove out of the sun and dropped two well-aimed depth bombs that burst close aboard, violently shaking the submarine without doing her any serious harm. She arrived safely at Midway on 17 June for refitting.
__________________
=============



My Game starts with GFO - Keepin' it real as it needs to be!

Last edited by JoeCorrado; 06-22-10 at 11:53 AM.
JoeCorrado is offline   Reply With Quote
Old 06-30-10, 06:04 PM   #7
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 224
Downloads: 365
Uploads: 6
Default

There was some hassle with filefront some months ago, they almost quit,
thought I've fixed that link on my sig but it didn't work for a while.

Now it should work.

jimbob is offline   Reply With Quote
Old 07-22-10, 04:14 PM   #8
Hybris
Officer
 
Join Date: Jun 2006
Location: Periscope Depth...
Posts: 237
Downloads: 40
Uploads: 0
Default

Quote:
Originally Posted by jimbob View Post
There was some hassle with filefront some months ago, they almost quit,
thought I've fixed that link on my sig but it didn't work for a while.

Now it should work.

Sorry to necro a thread but the links are still down.
__________________
"His masters voice!"
"FASTER! FAAAASSSTTER!"

"All submariners have one universal wish regardless of nation, cause, or creed. That wish is that the boat goes up and stay up one more time then it goes down."
~Hybris 8/22/07
Hybris is offline   Reply With Quote
Old 07-22-10, 09:09 PM   #9
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Hybris View Post
Sorry to necro a thread but the links are still down.
the link works, filefront was spazzing out today is all

try it now
  Reply With Quote
Old 06-19-12, 06:16 PM   #10
doctarr
Swabbie
 
Join Date: Apr 2005
Posts: 8
Downloads: 125
Uploads: 0
Default

Thank you jimbob

I never quite understood how that worked until now.
doctarr is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.