SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [WIP] Playable Cachalot class submarine (https://www.subsim.com/radioroom/showthread.php?t=165945)

Hitman 03-23-10 01:48 PM

[WIP] Playable Cachalot class submarine
 
... because I have a WIP project :D:D:D

peabody 03-23-10 02:28 PM

Quote:

Originally Posted by Hitman (Post 1330311)
... because I have a WIP project :D:D:D


Mikhayl has an excellent tutorial for doing this, and he takes you step by step to clone an existing sub. It should be in the sticky section.

Peabody

Hitman 03-23-10 02:51 PM

Unfortunately it's been deleted: http://www.subsim.com/radioroom/showthread.php?t=134575

:damn:

Hitman 03-23-10 03:04 PM

TEASERS: :D:D

http://img519.imageshack.us/img519/9153/wip1m.jpg


http://img87.imageshack.us/img87/2540/wip2c.jpg


http://img693.imageshack.us/img693/9954/wip3z.jpg


HINT: It's American, saw service in WW2's early years until retired, and only two of its class were ever built. And it's much smaller than a Narwhal ;)

miner1436 03-23-10 03:42 PM

Cachalot class submarine?
http://www.uboat.net/allies/warships...0_cachalot.jpg

Hitman 03-23-10 03:47 PM

Quote:

Cachalot class submarine?
BINGO :D

http://img179.imageshack.us/img179/5199/cachalot.jpg

keltos01 03-23-10 04:19 PM

tuto last part :

Quote:

Now go to UPCDataGe\UPCCampaignData and open Flotilla.upc with your notepad :

copy paste one of the units' data :

[Flotilla 1.UserPlayerUnitType 1]
ID= F1IXD2
NameDisplayable= Type IX-D2 U-boat
AvailabilityInterval= NULL, NULL
IDLinkUserPlayerUnitType= IXD2
UnitTypeCommonality= 10 ; to be used when a random choice is assigned
IDFlotillaLinkTransferTo= NULL

[Flotilla 1.UserPlayerUnitType 3]<-change the unit number according to the number of subs in game : here it's the third one
ID= F1Newsub1 <-change
NameDisplayable= Type Newsub 1 U-boat <-change
AvailabilityInterval= NULL, NULL
IDLinkUserPlayerUnitType= Newsub1 <-change
UnitTypeCommonality= 10 ; to be used when a random choice is assigned
IDFlotillaLinkTransferTo= NULL

save

go a bit down and you'll see this :

[Flotilla 1.UserPlayerUnitType 1.Objective 1]
ID= MB11OBj1
NameDisplayable= NULL
AvailabilityInterval=1943-04-01, 1943-06-15
ObjectiveCode= China-Sea

[Flotilla 1.UserPlayerUnitType 1.Objective 2]
ID= MB11OBj2.......


copy paste all missions (9 normally)

change the Unit number to your Newsub1 number, which here is number 3 :

[Flotilla 1.UserPlayerUnitType 3.Objective 1]
ID= MB11OBj1
NameDisplayable= NULL
AvailabilityInterval=1943-04-01, 1943-06-15
ObjectiveCode= China-Sea

[Flotilla 1.UserPlayerUnitType 3.Objective 2]
ID= MB11OBj2.......

save and exit


now open CareerStart.upc

you'll see 4 flotilla files:

[CareerStart 1.Flotilla 1]
ID= C1Flotilla1
NameDisplayable= Penang
IDLinkFlotilla= Penang ; link to ID in Flotilla upc file
IDLinkUserPlayerUnits= F1IXD2, 1, F1XVIII, 1
FlotillaBriefingText=
FlotillaCommonality= 1

Add your ship to each one, do this for all careerStart( 1943, 1944, 1945) :

[CareerStart 1.Flotilla 1]
ID= C1Flotilla1
NameDisplayable= Penang
IDLinkFlotilla= Penang ; link to ID in Flotilla upc file
IDLinkUserPlayerUnits= F1IXD2, 1, F1XVIII, 1, F1Newsub1, 1 <--add
FlotillaBriefingText=
FlotillaCommonality= 1

save and exit, implement using JSGME, you should be able to start a campaign with your NewSub1 from Penang now.

Keltos01


send it to me
, I'll make your a Narwhal clone for this one

will remake the tutorial tomorrow or thursday

keltos

peabody 03-23-10 04:51 PM

Quote:

Originally Posted by Hitman (Post 1330550)
BINGO :D

If you need help, let us know, I'm sure there are several that would be available including myself.

Since you are familiar with some of this I will try a condensed version.

Set up a folder to make a MOD with Data folder inside. And I will list the files you need.

1. Find a sub that is similar in number of tubes, guns etc so it will be that much easier to do. I'll use Porpoise, you can follow the directions using any other sub. Create the same folder structure as where the files come from.

2. Data/Submarine/NSS_Porpoise....copy the entire folder.
3. Data/Roster/American/Submarine/SSPorpoise.cfg
4, Data/Menu/Data/SubmarineClasses/P_Class_01.dds
5. Data/UPCData/UPCUnitsData/Unitparts2Porpoise.upc
6. Data/Objects/Conning_P_01.dat, .sim, .val, .cam, .zon

That should do it for copying files.

Now editing:

One major thing to remember is the classname must match in each file they are in.

Start with Data/Roster/American/Submarine/SSPorpoise.cfg change the filename to SSCachalot.cfg

[UnitClass]
ClassName=SSCachalot Very Important
UnitType=200 200=submarine, leave it
AppearanceDate=19350815 change if necessary
DisappearanceDate=19451115
DisplayName=US Cachalot Change

[Texture 1]
TextureName=data/Submarine/NSS_Cachalot/NSS_Cachalotclass_T01.tga
LightmapTextureName=data/Submarine/NSS_Cachalot/NSS_Cachalot_O01.tga
StartDate=19350815
EndDate=19430512
Frequency=1

Change the info in green and continue if there is a second texture, reset dates as needed.
Below this is the names used for the subs in that class, you can have one or as many as you want.
[Unit 1]
Name=USS MYboat
DOC=19350815
DOD=19451115

[Unit 2]
Name=USS Pike
DOC=19351202
DOD=19451115

************************************************** *******
I have to leave for a while, will complete when I return
************************************************** ***

Ok, let's go to the Data/Menu/Data/SubmarineClasses/P_Class_01.dds
Change to Cachalot_Class_01.dds Later you can change the actual .dds image.

************************************************** ******
Next: Data/UPCData/UPCUnitsData/Unitparts2Porpoise.upc

change to Unitparts8Cachalot.upc You not only have to change the name you also have to change the number to the next number in line. Since the stock game has 7 I am using 8. NOTE: if you have other subs in there and get to high, 1 and 10 will conflict with each other so one sub will not have a tower.
Open the Unitparts8Cachalot.upc with notepad:

[UnitPart 1]
ID=CachalotClassConningEarlyWar
Type= CachalotClassConningTower
NameDisplayable= Start of war Conning Tower
UnitPartInterval=NULL, NULL
ExternalLinkName3D= data/objects/Conning_Cachalot_01
HullTextureNameOverride=data/Submarine/NSS_Cachalot/NSS_Cachalotclass_T01.tga
HullLightmapTextureNameOverride=data/Submarine/NSS_Cachalot/NSS_Cachalotclass_O01.tga
HullNormalmapTextureNameOverride= NULL
MenuSilhouetteTextureNameOverride= Cachalot_Class_01.tga

change the Porpoise and P to Cachalot.

Below that will be Compartments, you can rename the compartments ID using
Cachalot instead of Porpoise
[UnitPart 1.Compartment 1]
CompartmentType= 1
StatusActive= Yes
ID= CachalotConnWatch

This file may contain more than one tower, which the Porpoise does. If your tower will not change then delete the other towers which will be [UnitPart 2] etc.

************************************************** *************
Now Data/Objects/Conning_P_01.dat, .sim, .val, .cam, .zon
change filenames as before, replace the P with Cachalot for each file.

Now you need S3D.

1. Open the Conning_Cachalot_01.dat
2. Using the button at the top open the .sim, .val, .cam .zon on top of each other.
3. If we don't change the IDs of these entries they could conflict with others so we will remap them.
4. Go to the Menu/Tools/RemapIDs a window opens.
5. Click the "Random" button....only this one time DO NOT CLICK THE RANDOM BUTTON AGAIN.
6. Click OK
7. File SAVE
8. File Close
9. Now the .zon file will close and you are at another window.
10. Select Tools/RemapIDs DO NOT CLICK RANDOM.
11. Click OK
12 File Save
14 File close
repeat for each of the windows then close S3D. Remember ONLY CLICK RANDOM ON THE FIRST WINDOW.

************************************************** ****************
Now to Data/Submarine/NSS_Porpoise
Change the folder name. Then go inside and change the filenames.

Now since you just did it for the tower, we will do the .dat, .sim, .zon, .val, .cam, .dsd. Notice there is one more here the .dsd. It contains the sounds so you do not need it in the tower also.

Open .dat then use the buttons at the top right and open all of them.
1. Tools/RemapIds
2. Click Random
3 Click OK
4. File Save
5. File Close
6. Tools/RemapIDs
7. Do NOT click Random
8. Click OK
9. File Save
10. File close
Rinse and Repeat....Remembering to only click random the first time.
When you are done, close S3D.

Open the NSS_
Cachalot.cfg.

[Unit]
ClassName=SS
Cachalot
3DModelFileName=data/Submarine/NSS_Cachalot/NSS_Cachalot
HumanPlayable=YES
Interior=data/Interior/NSS_Porpoise/NSS_Porpoise
UnitType=200
MaxSpeed=19
MaxSpeedSubmerged=8
Length=91.7448
Width=7.601
RenownAwarded=130

Do not change the Interior since there is no Cachalot interior.

Change any necessary data. As you go down you will find data such as Surface depth and others. Remember that is in there since it will be in the Cachalot.sim file also, so they should match.

Save

Open the NSS_Cachalot.upc with notepad.

[UserPlayerUnit 1]
ID=Porpoise
NameDisplayable=Porpoise
UnitName= USS Porpoise
Type=Porpoise
UpgradeClass=1
UnitInterval= 1935-08-15, 1945-11-15
ExternalClassName=SSPorpoise
Nationality=American
CrewRanks=12
Evolution= Normal
Damage= 0
TextureName=data/Submarine/NSS_Porpoise/NSS_Pclass_T01.tga
LightmapTextureName=data/Submarine/NSS_Porpoise/NSS_Pclass_O01.tga
NormalmapTextureName= NULL
MenuSilhouetteTextureName= P_Class_01.tga

[UserPlayerUnit 1.UnitPartSlot 1]
ID=PorpoiseConningSlot
NameDisplayable=Conning Tower Slot
Type=NULL
AcceptedTypes=PClassConningTower
IDLinkUnitPartIntervalDefault1= NULL, 1942-07-31, PClassConningEarlyWar
IDLinkUnitPartIntervalDefault2= 1942-08-01, 1943-05-31, PClassConningHalfCut
IDLinkUnitPartIntervalDefault3= 1943-06-01, NULL, PClassConningLateWar

ExternalNodeName3D= Z01

Again change the names of Porpoise and P to Cachalot.

Notice the UnitPartSlot 1 is the tower and there are three listed with dates. If your sub only has one then delete the other two or put semicolons ; in front of the line so the computer will ignore them. (marked in yellow above)

Now you can continue down to the "Compartments" and change the IDs like you did in the tower.

[UserPlayerUnit 1.Compartment 1]
CompartmentType= 1
StatusActive= Yes
ID= CachalotSternTorpedo

Now if I didn't mess something up, you should have a working sub. Then you can go to the subs .dat file and put in your 3D model, and make other changes that may be necessary. Before doing any more changes though, enable the MOD and see if it works at least in a single mission.

The info Keltos gave above shows how to add it to the Campaign.

Peabody

Hitman 03-24-10 08:12 AM

Thanks for the help. The Porpoise would indeed be the best one to clone, as it had the same number of torpedo tubes, type or armament, etc, and I also have used her hull and conning tower as a base for the Cachalot.

If one you guys can do a quick clone of Porpoise for chachalot class that would be great. Then it will be a matter of replacing the hull, conning tower and textures with the new ones, as well as movinga round everything to match the new positions (The Cachalot is some 10 metres smaller than a Porpoise, so I scaled down everything).

The main help i will need is with retexturing the new model. Keltos, will your progam do that easily, providing textures like those from Narwhal I skinned?

keltos01 03-24-10 04:16 PM

[QUOTE=Hitman;1331452]Thanks for the help. The Porpoise would indeed be the best one to clone, as it had the same number of torpedo tubes, type or armament, etc, and I also have used her hull and conning tower as a base for the Cachalot.
ok
If one you guys can do a quick clone of Porpoise for chachalot class that would be great. will do

Then it will be a matter of replacing the hull, conning tower and textures with the new ones, as well as movinga round everything to match the new positions (The Cachalot is some 10 metres smaller than a Porpoise, so I scaled down everything).

The main help i will need is with retexturing the new model:har: who would've thought ! ;)
. Keltos, will your progam do that easily, providing textures like those from Narwhal I skinned?

yeah I can try that, we did the Narwhal, remember ? ;)

keltos

keltos01 03-25-10 05:49 AM

NSS Cachalot v 1.1
 
NSS Cachalot v 1.1

http://img710.imageshack.us/img710/5199/cachalot.jpg

loadout :

http://img718.imageshack.us/img718/8365/loadout.jpg

http://img31.imageshack.us/img31/9996/cachalot2.jpg

at sea :

http://img682.imageshack.us/img682/2302/cachalot1.jpg

Characteristics of the Class adjusted in the Cachalot.cfg and NSS_Cachalot.sim to RL specifications

! she needs two .30 caliber machine guns at the start of the war !

I need Peabody to implement the .50 MG, I couldn't...

awaiting .obj model of real Cachalot hull and tower Hitman ! :yep:

Pmed to Hitman

regards,

keltos

Hitman 03-25-10 08:45 AM

Excellent keltos :yeah:

you got PM :up:

The model was quite easy because it is very similar to the Porpoise class, just resizing, adding the ammo containers and reworking the stern did the trick. The good news is that in those earlier boats like Dolphin and Cachalots there are no external tube doors to add, just the small circular doors, so it should be much easier than the headache they gave you with Narwhal :yeah:

AVGWarhawk 03-25-10 09:11 AM

We got some real sub makers here! :yeah:

Sledgehammer427 03-25-10 07:45 PM

Agreed. I'm actually anxious to give this a try! :yeah:

I'm starting a V-boats forever chant, anyone with me?

(both from wikipedia)
"War came to Cachalot as she lay in Pearl Harbor Navy Yard in overhaul. In the Japanese attack on Pearl Harbor of 7 December 1941, one of her men was wounded, but the submarine suffered no damage. Yard work on her was completed at a furious pace, and on 12 January 1942 she sailed on her first war patrol. (Like her sisters, her MAN engines, license-built in the U.S., caused constant headaches, and she was eventually re-engined). After fueling at Midway Island, she conducted a reconnaissance of Wake Island, Eniwetok, Ponape, Truk, Namonuito, and Hall Island, returning to Pearl Harbor on 18 March with vitally needed intelligence of Japanese bases. Her second war patrol, for which she cleared from Midway on 9 June, was conducted off the Japanese home islands, where she damaged an enemy tanker. Returning to Pearl Harbor on 26 July, she cleared on her final war patrol on 23 September penetrating the frigid waters of the Bering Sea in support of the Aleutian Islands operations."

"After returning to Pearl Harbor, Cuttlefish put to sea on her first war patrol on 29 January 1942. On 13 February, she performed a reconnaissance of Marcus Island, gaining valuable information, and after patrolling in the Bonin Islands, returned to Midway Island on 24 March. She refitted there and at Pearl Harbor, and on 2 May cleared Midway for her second war patrol. From 18-24 May, she reconnoitered Saipan and the northern part of the Mariana Islands. On 19 May, she attacked a patrol ship, and while maneuvering for a second attack, was detected. She was forced deep to endure four hours of severe depth charging, more of which came her way on 24 May when she challenged three enemy destroyers. The next day an alert enemy plane caught her on the surface and dropped two bombs as she went under, both of them misses. As it became obvious the Japanese Fleet was out in strength, Cuttlefish was ordered to patrol about 700 nautical miles west of Midway, remaining on station during the Battle of Midway from 4-6 June 1942. She returned to Pearl Harbor on 15 June, and there and at Midway prepared for her third war patrol, for which she sailed on 29 July under the command of Lieutenant Commander Elliot E. Marshall. Patrolling off the Japanese homeland, she attacked a destroyer on 18 August, and received a punishing depth charge attack. Three days later, she launched a spread of torpedoes, three of which hit a freighter and one of which hit an escort. Explosions were seen, but the sinking could not be confirmed. On 5 September, she attacked a tanker which, it is believed, she sunk."


even though their use in war was short-lived, I would like to see a custom campaign set up for these boats, harbor recon more than war patrols, should be easy to mix-and-match patrol objectives in the patrolobjectives.upc, which, this coming week, I'll be glad to work on!



(Keltos, Hitman, is it just me or are we becoming some kinda team? :D )

sergei 03-26-10 04:30 AM

Good stuff Team Cachalot.
More subs = always good. :up:

Hitman 03-26-10 08:48 AM

There's always one thing in the V Boats that had a certain appeal to me: The classic fleet boat concept, which reached its WW2 pinacle with the Tench class was in fact the end of a long evolution with many failiures on the way. But in any case, the end-result was something way different to the german submarines, which were mainly short or medium ranged and sized. The only german submarine comparable to a fleet boat is a IXD/2 U-Cruiser, but not a type VII or even a normal Type XB.

However, the cachalot class was a brief attempt at making a smaller and shorter range submarine, something much more comparable to a Type VII. For those that had interest in seeing how a smaller sub could do in the Pacific, this Cachalot class is a good chance to put it to a test. The maneuverability and dive times should be close to a Type IX, because it wasn't much bigger (769 tons a VIIC, 1050 a IXB, 1120 a IXC, 1120 tons a Cachalot)

Quote:

even though their use in war was short-lived, I would like to see a custom campaign set up for these boats, harbor recon more than war patrols, should be easy to mix-and-match patrol objectives in the patrolobjectives.upc, which, this coming week, I'll be glad to work on!
Yes, a short campaign covering the first year of the war and those special missions would be good. Also, given that they were retired by the end of 1942, that will allow the player to swap boat, which makes for a more vaired and interesting career IMO.

keltos01 03-26-10 11:11 AM

Cachalot Early War Version :

http://img444.imageshack.us/img444/2302/cachalot1.jpg

tower :

http://img51.imageshack.us/img51/2302/cachalot1.jpg

Cachalot Late War Version :

can't get the tower to show up although it's ready ! :damn:

coming..

all AO maps done

all animations (tubes, planes..) done


keltos

virtualpender 03-26-10 02:39 PM

You guys really are amazing...

peabody 03-26-10 02:41 PM

Quote:

Originally Posted by keltos01 (Post 1335165)
Cachal

Cachalot Late War Version :

can't get the tower to show up although it's ready ! :damn:

coming..

all AO maps done

all animations (tubes, planes..) done


keltos

It's in your PM. Just an ID mistake.

Peabody

Hitman 03-26-10 02:50 PM

Quote:

You guys really are amazing...
99% of the credit goes to keltos, he does the lion's part of this all,:up: and he also takes it like a true sportman :yeah:


All times are GMT -5. The time now is 03:40 PM.

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.