![]() |
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. :rock: |
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. |
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. |
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. |
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? |
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.
|
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. :up: |
All times are GMT -5. The time now is 05:38 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.