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-05-08, 11:20 PM   #1
Stuffer
Watch
 
Join Date: Jun 2007
Posts: 26
Downloads: 21
Uploads: 0
Default How do you add subs to the game? (Like was done with the Tench and Narwhal in RSRD)

I'm trying to figure out how to add submarines to the game using the same method that was done in RSRD for the Tench and Narwhal.

I'm trying to add in the Type XXI submarine as its own sub instead of replacing the Type XVIII with it. I thought I had it down, but I hit a roadblock. Whenever I click the U-boat Campaign button in the main menu, I now get a CTD. Obviously I did something wrong or I'm missing some changes somewhere.

If you can give me a hand, I'd appreciate it. Thanks.
__________________
U-Boat Snorkel Beta 2b -
http://www.megaupload.com/?d=OIBS3J5R
(With optional Type XVIII to Type XXI conversion)
Stuffer is offline   Reply With Quote
Old 03-05-08, 11:27 PM   #2
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

For me to explain that......

I'd have to be at home and not at work, cause its a whole lot of typing.

SHort of it is, - cloning.
Theres two ways to clone. Remap ID's of a the data files of a sub, and rename it, so it becomes unique (and hence a new sub), and you can apply its own unique statistics

or Inheirt the data files from a sub, and instantiate it as a new object, but in this method, you have two subs that share a dependancy on the same files. So they both will have the same statistics - just a different name, crew, sensor and equipment loadout, or even a different nationality. Many units are borrowed in the game like this. Tug boat for example, every country has one, and they're all inheirted from the same set of files.
Ducimus is offline   Reply With Quote
Old 03-05-08, 11:39 PM   #3
Stuffer
Watch
 
Join Date: Jun 2007
Posts: 26
Downloads: 21
Uploads: 0
Default

Heh, yeah. Figured it would be a lot of typing.

I started off with the inherit method, but wasn't sure if it would work or not so I ended up going through and making unique IDs and cloning the files over from the XVIII. I thought I'd tied up all the loose ends but like I said, I missed something.

Let me see if I can come up with a list of the files I've added/altered. In the meantime, I may start from scratch but go straight for the cloning process. Since I sorta combined the two in my efforts, I probably borked something.
__________________
U-Boat Snorkel Beta 2b -
http://www.megaupload.com/?d=OIBS3J5R
(With optional Type XVIII to Type XXI conversion)
Stuffer is offline   Reply With Quote
Old 03-05-08, 11:41 PM   #4
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Best way to figure it out.

Reverse engineer the tench mod, and compare it to the balao. Line by line, in every file.
Dont forget the unitparts.upc in the UPC directory either.
Ducimus is offline   Reply With Quote
Old 03-06-08, 03:09 AM   #5
Stuffer
Watch
 
Join Date: Jun 2007
Posts: 26
Downloads: 21
Uploads: 0
Default

Still no luck. Starting over has given me the same end results.

I'm curious about a few parameters and what they reference to:

- IDUserLinkPlayerUnits
- UpgradeClass (In the .upc and .upcge files)

And when you create the UnitPartsXTypeXXI file (or whatever sub you are adding), does the X need to be a specific number, or can it just be the next in line following the previous files?
__________________
U-Boat Snorkel Beta 2b -
http://www.megaupload.com/?d=OIBS3J5R
(With optional Type XVIII to Type XXI conversion)
Stuffer is offline   Reply With Quote
Old 03-06-08, 03:16 AM   #6
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

I think these files have to be in numerical sequence, in other words, if the sequence number ends in 5, then your new file should be 6.
Ducimus is offline   Reply With Quote
Old 03-06-08, 03:33 AM   #7
Stuffer
Watch
 
Join Date: Jun 2007
Posts: 26
Downloads: 21
Uploads: 0
Default

I think I've figured out the problem now. I completely missed the IDs that needed changing in a number of files within the Data/Submarine folder.

Time to hit the sack now but tomorrow hopefully I can get this settled for good. Thanks for the help.
__________________
U-Boat Snorkel Beta 2b -
http://www.megaupload.com/?d=OIBS3J5R
(With optional Type XVIII to Type XXI conversion)
Stuffer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 05:53 AM.


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