View Full Version : [TUT] Adding gun mounts to playable units
ETR3(SS)
02-17-10, 10:08 PM
The purpose of this thread is to show you how to add gun mounts to playable units.
Tools required:
S3D
Notepad
The first step is to choose what unit you want to work with. For the purpose of this tutorial I have chosen the Ohio Class Submarine. Now what we want to do is open up the .dat file using S3D. Open up the main node for our unit. Now right click that node and highlight "Append New Child Chunk", then select Nodes and then Node. This should insert a new Node at the end of the other nodes. Just like the previous step select this node, right click and highlight "Append New Child Chunk", then add a Label. So your new node with its label should look like this:
XXX:Node- <New Label> XXX:<New Label>
XXX= the number for those entries.
Now we want to name our new node. To do this select our label sub-entry. On the right side you should get a text box that you can type in. Currently <New Label> is in that box. Enter "slot_M01_NSS_S18" into that box. Remember how we added the new node to the unit in the beginning? Now we have to do that again in the node you just created. This time enter "cfg#M01_NSS_S18" into the our new <New Label> box. Let's break this down so you understand what you are entering.
cfg#M01_NSS_S18
M=Main Armament
Variants of this are:
A= Anti Aircraft
S= Secondary Armament
01=Mount Number
NSS_S18=Unit Name
Armed with that knowledge you can now change the label to suit your needs. Should look like this:
Playable Unit
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1254
Now we want to position the node where we want our gun at. Select the first node we created and use this menu to position it.
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1255
A red dot in the model preview represents where you node is at at that moment. Once you get your node positioned where you want save it. That's it for the .dat file.
Next is the sim file so go ahead and open that up. First thing you want to do here is right click and "Append New Chunk," select the Controllers then the Controller option. Select this new entry and a text box will show up on the right. Enter obj_Turret in that field. Now right click on our new entry and select "Append New Child Chunk", Properties, SH4, SHSim, obj_Turret. So we should now have the following:
XXX: obj_TurretXXX: obj_Turret
Now select the sub-entry and a menu appears on the right. What we are interested in in this menu is Traverse and Elevation. Under each are the tree things we are primarily interested in; min, max, and speed. For traverse min is how far left the mount can rotate, and max is how far right. Speed is the speed the mount rotates in º/sec. The same settings for Elevation should be self explanatory. That does it for the sim file!
Next we open the units UPC file found in the Submarine/NSS_Unit Name folder. Our first stop here is the compartments listing. We want to add a new compartment to our unit. For Ohio I added this compartment:
[UserPlayerUnit 1.Compartment 6]
CompartmentType= 2
StatusActive= No
ID= S18DeckGun
NameDisplayable= Deck Gun
Type=NULL
FunctionalType= ArtilleryRoom
MechanicalCoef= 0.5
ElectricsCoef= 0.5
GunsCoef= 0.2 ;0..1
WatchmanCoef= 0.5
WatchStandingCoef= 0.048
MaintenanceCoef= 0.0144
RepairsCoef= 0.072
ReloadingweaponCoef= 0.072
SleepCoef= -0.12
LeadersSlots=0
CrewMembersSlots= 0
EffciencyDenominator=2
EffciencyDenominatorBS=2
Hitpoints=200
CrewExposure=0.7
EquipmentsExposure=0.1
WeaponsExposure=0.1
ExternalDamageZoneTypeID3D= 43
DamageDescription1= NULL, 0, 0.2, 0, 1, 1, Minor damage, 0, 0, NULL, 0, 0.2, 0.2
DamageDescription2= NULL, 0.2, 0.6, 0, 1, 1, Medium damage, 0, 0, NULL, 0, 0.2, 0.5
DamageDescription3= NULL, 0.6, 1, 0, 1, 1, Heavy damage, 0, 0, NULL, 0, 0.2, 1 I added this as the last compartment. Something to make sure you change is the compartment number. If the previous compartment is compartment 7 obviously name this new one compartment 8. The next thing we need to add now is crew slots for our new compartment.You will want to add this at the end of all the other crew member slots in the file just before the equipment and weapons slots start. Again this is what I added for Ohio:
; ******** DECK GUN *********
[UserPlayerUnit 1.Compartment 6.CrewMemberSlot 1]
ID=CrewMemberSlot_DGunL1
NameDisplayable= Deck Gun Leader
Type= Leader
WatchIndex= 0
IDLinkCrewMember= CPOGuns
WatchCrewMemberSlot3D= WM1@slot_M01
BattleStationsCrewMemberSlot3D= WM1@slot_M01
WatchAccessoriesForAdding3DObjects= NULL
WatchAccessoriesForSubtracting3DObjects= NULL
BattleAccessoriesForAdding3DObjects= NULL
BattleAccessoriesForSubtracting3DObjects= NULL
[UserPlayerUnit 1.Compartment 6.CrewMemberSlot 2]
ID=CrewMemberSlot_DGunC1
NameDisplayable= Deck Gun Crew
Type= Crewman
WatchIndex= 0
IDLinkCrewMember= NR
WatchCrewMemberSlot3D= WM2@slot_M01
BattleStationsCrewMemberSlot3D= WM2@slot_M01
WatchAccessoriesForAdding3DObjects= NULL
WatchAccessoriesForSubtracting3DObjects= NULL
BattleAccessoriesForAdding3DObjects= NULL
BattleAccessoriesForSubtracting3DObjects= NULL Make sure the compartment number for your crew slots matches the compartment number you entered earlier. Next step is adding the weapon slots slots. Just like the crew slots add this after all the other equipment and weapons slots but before the Upgrade Slots.
;------------------------------------------------------------
; DECK GUN
;------------------------------------------------------------
[UserPlayerUnit 1.Compartment 6.WeaponSlot 1]
ID= BowDeckGun
NameDisplayable= Deck Gun Mount
Type=NULL
AcceptedTypes= NULL
UserCustomizable=No
IDLinkBunker= GunsAmmoBunker
IDLinkWeaponIntervalDefault1= NULL, NULL, NULL, NULL
ExternalNodeName3D= M01
ExternalObjectName3D= NULL
ExternalDamageZoneTypeID3D= -1
[UserPlayerUnit 1.Compartment 2.Bunker 1] ; Deck Gun and Flak guns ammo
ID=GunsAmmoBunker
Capacity=10
IDLinkAmmunitionIntervalDefault1= NULL, NULL, NULL, 0 Now we add an entry under UpgradePackSlot.
[UserPlayerUnit 1.UpgradePackSlot 3]
ID= UpgBowDeckGun
NameDisplayable= Deck Gun Mount
Type=NULL
AcceptedTypes=USDeckGun
UserCustomizable=Yes
IDLinkUpgradePackSlots= BowDeckGun
IDLinkUpgradePackSlotsIntervalDefault1= NULL, 1943-08-01, Upack4in50calDG
IDLinkUpgradePackSlotsIntervalDefault2= 1943-08-02, NULL, Upack3in50calDGOne last thing to enter to make our new mount work in-game and that's under FunctionalSubsystem. Like before this goes at the end of that section.
[UserPlayerUnit 1.FunctionalSubsystem 25]
ID= CrewDeckGun
NameDisplayable= Deck Gun
FunctionalType= CrewMembersGrouping
IDLinkFunctionalSubsystemSlots= CrewMemberSlot_DGunL1, 0,CrewMemberSlot_DGunC1, 0Note that the colored entries must match each other, yellow for yellow, red for red, etc. This gives you the basics you need to add a gun mount to a playable unit. My next post will be about changing the gun that is mounted by default, yes you can have the Yamatos 18in guns on a submarine!
ETR3(SS)
02-17-10, 10:09 PM
Our objective here is to replace a standard Deck Gun with one of our choosing. A lot of the skills needed to perform this are obtained by following part 1 of the tutorial above, but part 2 should still be pretty simple. Again for this example I will be using the Ohio sub.
Now the next thing we have to figure out is what type of gun do we want to replace this with? For this tutorial I will use the US 14in Triple gun turret. Once you've made your selection we need to find out where all the AI unit guns are stored. Go to Data\Library\ShipParts, in here you find three sets of files named "guns_radars". The gun I'm using can be found in "guns_radars_03.dat". Once you have identified what file set your new gun is in, make a copy of that file set. I will be copying the guns_radars_03.dat and sim files. Now paste that in your USSubParts folder. Now that we've made a copy lets rename it. For simplicities sake we will name the files like the game has the other deck gun files named. So my "guns_radar_03" becomes "Deck_Gun_14." Now that we have that renamed open it up. Delete all the other guns in here except for the one you are using. Now save it. Open up the .sim file along with our dat file. We want to search for our gun in this sim file and delete all the other entries. Use the ID number of our gun to find its entry in the sim file. Now the next thing to do takes us back to the dat file. We need to rename our gun in here. Keep in mind that the base and the barrels both need to be renamed. I'm going to change mine to "14in_base_US" and "14in_barrels_US". Save again. Now over to the sim file. In here we want to select the wpn_Cannon sub-entry. Then in the right side expand obj_turret. You will see an entry named Barrel. The name there and the name for our barrels in the dat file must match so make that change here.Once we have only our gun entries in both files, save both files. Here's what our dat file looks like:
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1305
And here's the sim file:
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1304
Now in order not to confuse the game we have a couple more steps in our files. The first step is going to be remaping ID numbers. Go up to "Tools", select "Remap IDs". This brings up a window with a few options. First you want to press the Random button, then press Ok. Now save the dat file. Now do the same thing in the sim file except for pressing the Random button. If you press the Random button while Remapping IDs in the sim file, the IDs won't match and our gun won't work.
Our next stop is the Weapons.upc file found in Data\UPCData\UPCUnitsData. If you don't have a copy of this file already make one. In this file we are going to add our new gun. Let's copy the entry for the 4in 50cal deck gun and paste it at the bottom, this will be our template with which to work.
The first change we want to make to this is the [Weapon 6] line to [Weapon XX], where XX=the next number in the series for entries, mine happens to be 12. On the next line we will change ID= 4in50calUS to ID= 14in50calUS. Next line, 4"/50 Caliber Cannon becomes 14" /50 Caliber Cannon. Now we go down to the AmmoTypesAccepted line. For this we need to open up the Shells.dat file which is in the Library folder. This file lists all the shells in the game, from 20mm all the way up to 16in. So to find out what shell my gun fires I'm going to go to the Deck_Gun_14.sim file to find out. Look for the ammo_storage entry and expand it and it's sub entries. Only one of these entries here has a shell and amount, the rest are all zeroes.
Quick side note, there are four types of shells:
AP= Armor Piercing
HE= High Explosive
AA= Anti Aircraft
SS= Starshell
So we want to copy the shell type number and use that to "find" our shell in shells.dat. And we come up with...huh? A 14in gun is firing a 16in shell? Lucky for us all the shells are labeled in a manor that we can understand. So I'm going to take the extra step of changing my gun to firing 14in shells instead of 16in shells. Any gun can fire any shell you tell it to in the game, it's as simple as selecting the shells ID number and pasting it into the appropriate place in the guns sim file.
Now lets go back to our Weapons.upc file and the AmmoTypesAccepted line. I'll make the change from 4inAPUS to 14inAPUS. One more line to change in this entry and that's the ExternalLinkName3D line. We want that to be the same as our guns name in the dat file, so I'll change mine to 14in_base_US. Save the Weapons file and open the UpgradePacks.upc file. Here's the end result of our entry into the Weapons.upc file:
[Weapon 12]
ID= 14in50calUS
NameDisplayable= 14"/50 Caliber Cannon
FunctionalType= WpCannon
WeaponInterval= NULL, NULL
WeaponSlotType= NULL
AmmoTypesAccepted= 14inAPUS
AmmoTypeLoaded= NULL
AmmoMagazineRemaining= 0 ;Not used
AmmoMagazineSize= 1
LeadersSlots=0
WeaponCrewMembersSlots= 2
ExternalLinkName3D= 14in_base_US
Hitpoints= 100
DamageDescription1= NULL, 0, 0.2, 0, 1, 1, Jam, 0, 0, NULL, 1, 0.3, 0.2
DamageDescription2= NULL, 0, 1, 0, 0.5, 1, Chamber Explosion, 50, 5, NULL, 1, 2, 10 ;skill over 1 for unserviceable/destroyed gun
Just like in the Weapons.upc file we will copy the entry for the 4" 50cal deck gun, [UpgradePack 13], and paste it at the bottom. First thing to change is the [UpgradePack 13] to the next in the series, mine will be [UpgradePack 32]. Next to change is the ID line. I'll change mine to Upack14in50calDG. NameDisplayable is our next line to change, mine will be 14" 50 cal Deck Gun. One last line to change here, IDLinkUpgradePackElements. What you enter on this line must match the ID line for our gun in the Weapons.upc file. And the end result here:
[UpgradePack 32]
ID= Upack14in50calDG
NameDisplayable= 14" 50 cal Deck Gun
FunctionalType= UpFTypeWeaponCannon
UpgradePackSlotType= USDeckGun
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= NULL, NULL, 400
IDLinkUpgradePackElements= 14in50calUS
Now to the NSS_OhioSSBN.upc. We want to go down to the UpgradePackSlot section of the file, now find the entry for our deck gun. Remove "IDLinkUpgradePackSlotsIntervalDefault2= 1943-08-02, NULL, Upack3in50calDG". Now change the date of 1943-08-01 to the word NULL. This ensures that you will have this gun throughout the war. Now we need to change Upack4in50calDG to match the ID of our new gun in the UpgradePacks.upc file. So this now becomes Upack14in50calDG. Try it out in game. At this point the gun should be there but you cannot man the gun yourself. So now we have to included that. To do this we have to give our new gun a .cam file. The end result:
[UserPlayerUnit 1.UpgradePackSlot 3]
ID= UpgBowDeckGun
NameDisplayable= Deck Gun Mount
Type=NULL
AcceptedTypes=USDeckGun
UserCustomizable=Yes
IDLinkUpgradePackSlots= BowDeckGun
IDLinkUpgradePackSlotsIntervalDefault1= NULL, NULL, Upack14in50calDG
The easiest way to do this is to copy the .cam file of one of the three deck guns in the USSubParts folder. I've copied Deck_Gun_4_50.cam and renamed it Deck_Gun_14 to match the other files for my gun. One important thing to do to this file after renaming it is to Remap IDs like before, no need to press the Random button, just Remap IDs. Now let's go to our guns dat file. Open up the first node. Right click on the node and select Append New Child Chunk\Nodes\Node. Then select this new node, right click and select Appen New Child Chunk\Label. I'm going to enter Dmy_cam_14 for the name of this label. This is going to our camera view for our gun. At this point you may want to position the node someplace where you can have a good view unobstructded. Here's what our dat file looks like now.
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1303
Once you have that positioned we need to link that to our cam file. So copy the ID number for our new node and go over to the cam file. Change the Parent IDs on both of the CamUserData main entries to that of our node from the dat file. Save all your work and make sure it works in the game.
ETR3(SS)
02-17-10, 10:09 PM
The third part of this tutorial will focus on adding AA guns to our boat. Since this is very similar to adding deck guns to our boat I'll be quote the first part of this tutorial frequently and making appropriate changes. Again the Ohio has been choosen for this tutorial. For the AA guns we will be working with the Conning Tower files which can be found under the Objects folder.
Now what we want to do is open up the .dat file using S3D. Open up the main node for our unit. Now right click that node and highlight "Append New Child Chunk", then select Nodes and then Node. This should insert a new Node at the end of the other nodes. Just like the previous step select this node, right click and highlight "Append New Child Chunk", then add a Label. So your new node with its label should look like this:
XXX:Node- <New Label>XXX:<New Label>
XXX= the number for those entries.
Now we want to name our new node. To do this select our label sub-entry. On the right side you should get a text box that you can type in. Currently <New Label> is in that box. Enter "slot_A01_NSS_Tambor_Tower_01" into that box. Remember how we added the new node to the unit in the beginning? Now we have to do that again in the node you just created. This time enter "cfg#A01_NSS_Tambor_Tower_01" into the our new <New Label> box. Let's break this down so you understand what you are entering.
cfg#A01_NSS_Tambor_Tower_01
A= Anti Aircraft
Variants of this are:
M=Main Armament
S= Secondary Armament
01=Mount Number
NSS_Tambor_Tower_01=Unit Name
Armed with that knowledge you can now change the label to suit your needs. Should look like this:
Playable Unit
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1254
Now we want to position the node where we want our gun at. Select the first node we created and use this menu to position it.
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1255
A red dot in the model preview represents where you node is at at that moment. Once you get your node positioned where you want save it. That's it for the .dat file.
Next is the sim file so go ahead and open that up. First thing you want to do here is right click and "Append New Chunk," select the Controllers then the Controller option. Select this new entry and a text box will show up on the right. Enter obj_Turret in that field. Now right click on our new entry and select "Append New Child Chunk", Properties, SH4, SHSim, obj_Turret. So we should now have the following:
XXX: obj_TurretXXX: obj_Turret
Now select the sub-entry and a menu appears on the right. What we are interested in in this menu is Traverse and Elevation. Under each are the tree things we are primarily interested in; min, max, and speed. For traverse min is how far left the mount can rotate, and max is how far right. Speed is the speed the mount rotates in º/sec. The same settings for Elevation should be self explanatory. That does it for the sim file!
Next we open the units UPC file found in the UPCData/UPCUnitsData folder. Our first stop here is the compartments listing. We want to add a new compartment to our unit. For Ohio I added this compartment:
[UnitPart 1.Compartment 2]
CompartmentType= 2
StatusActive= No
ID= OhioConnAA
NameDisplayable= AA Guns
Type=NULL
FunctionalType= FlakRoom
MechanicalCoef= 0.2
ElectricsCoef= 0
GunsCoef= 0.5 ;0..1
WatchmanCoef= 0.5
WatchStandingCoef= 0.048
MaintenanceCoef= 0.0144
RepairsCoef= 0.072
ReloadingweaponCoef= 0.072
SleepCoef= -0.12
LeadersSlots=0
CrewMembersSlots= 0
EffciencyDenominator=1
EffciencyDenominatorBS=1
Hitpoints=200
CrewExposure=0.3
EquipmentsExposure=0.1
WeaponsExposure=0.1
ExternalDamageZoneTypeID3D= 44
DamageDescription1= NULL, 0, 0.2, 0, 1, 1, Minor damage, 0, 0, NULL, 0, 0.2, 0.2
DamageDescription2= NULL, 0.2, 0.6, 0, 1, 1, Medium damage, 0, 0, NULL, 0, 0.2, 0.5
DamageDescription3= NULL, 0.6, 1, 0, 1, 1, Heavy damage, 0, 0, NULL, 0, 0.2, 1I added this as the last compartment. Something to make sure you change is the compartment number. If the previous compartment is compartment 7 obviously name this new one compartment 8. The next thing we need to add now is crew slots for our new compartment.You will want to add this at the end of all the other crew member slots in the file just before the equipment and weapons slots start. Again this is what I added for Ohio:
; ******** FLAK *********
[UnitPart 1.Compartment 2.CrewMemberSlot 1]
ID=CrewMemberSlot_FlakC1
NameDisplayable= AA Gun Crew
Type= Crewman
WatchIndex= 0
IDLinkCrewMember= NR
WatchCrewMemberSlot3D= WM1@slot_A01
BattleStationsCrewMemberSlot3D= WM1@slot_A01
WatchAccessoriesForAdding3DObjects= NULL
WatchAccessoriesForSubtracting3DObjects= NULL
BattleAccessoriesForAdding3DObjects= NULL
BattleAccessoriesForSubtracting3DObjects= NULL
Make sure the compartment number for your crew slots matches the compartment number you entered earlier. Next step is adding the weapon slots slots. Just like the crew slots add this after all the other equipment and weapons slots but before the Upgrade Slots.
;------------------------------------------------------------
; FLAK GUNS
;------------------------------------------------------------
[UnitPart 1.Compartment 2.WeaponSlot 1]
ID= CTBackAA
NameDisplayable= AA Mount
Type=NULL
AcceptedTypes= NULL
UserCustomizable=No
IDLinkBunker= GunsAmmoBunker
IDLinkWeaponIntervalDefault1= NULL, NULL, NULL, NULL
ExternalNodeName3D= A01
ExternalObjectName3D= NULL
ExternalDamageZoneTypeID3D= -1
Now we add an entry under UpgradePackSlot.
;************************************************* ***********
;
; UpgradePackSlot
;
;************************************************* ***********
[UnitPart 1.UpgradePackSlot 1]
ID= UpgAAGun
NameDisplayable= Anti-Aircraft Gun
Type=NULL
AcceptedTypes=USLightAA
UserCustomizable=Yes
IDLinkUpgradePackSlots= CTBackAA
IDLinkUpgradePackSlotsIntervalDefault1= NULL, NULL, Upack20mmSingle
One last thing to enter to make our new mount work in-game and that's under FunctionalSubsystem. Like before this goes at the end of that section.
[UserPlayerUnit 1.FunctionalSubsystem 25]
ID= CrewFlak
NameDisplayable= AA Gun Crew
FunctionalType= CrewMembersGrouping
IDLinkFunctionalSubsystemSlots= CrewMemberSlot_FlakC1, 0Note that the colored entries must match each other, yellow for yellow, red for red, etc. This gives you the basics you need to add a AA gun mount to a playable unit. If you want to change the default weapon, say you wanted a quad 40mm, the steps are exactly the same as they are in part 2 of the tutorial. Also, if you want to add more than one mount you need to repeat the steps of this tutorial for each mount.
ETR3(SS) (http://www.subsim.com/radioroom/member.php?u=237956). What can I say. I was going to scrap the idea but after all the work you have done I'm back on it.
Cheers I'll try to apply your tutorial today :salute:
Ducimus
02-18-10, 10:07 PM
Great writeup. :up:
Great post!!!.......:yeah::yeah:..Lotta work....:salute:
VonHesse
02-21-10, 03:41 PM
My next post will be about changing the gun that is mounted by default, yes you can have the Yamatos 18in guns on a submarine!
Yay! Can't wait. Thanks ETR3(SS). Looking forward to the next part:salute:
ETR3(SS)
02-21-10, 04:08 PM
Part 2 is up. See post #2.:salute:
VonHesse
02-22-10, 05:46 PM
Holy cow, I made a mod! My S-boat now has a 4" double gun turret!
Now to make more... with even bigger guns, muahahaha!
@ETR3(SS) : Thank you, thank you, thank you. Oh, and did I mention...
Thank You! :D :woot: :salute:
clayp in back of room(raises hand):oops:ERR Sir how do you tell the main node?
rea00cy
02-23-10, 01:28 AM
Oh, my god...! I have been eager for this kind of tutorial for years, since I strongly want to do somemodding by myself. It's the first that I've found that shows people some details of the game files and how to change them. Thanks very, very much for posting!:DL
Yet, a very bitter disapointment struck me hard when, after following the tutorial almost to the end, I could not find the UpgradePacks.upc file:wah: I used the WExplorer search engine and it returne nothing (???)
(I downloaded the ohio class sub for SH4 v1.4 just to follow the instructions of this tutorial).
Can anyone outhere help me, please!!!!!!:damn:
Thanks,
rea00cy
peabody
02-23-10, 03:37 AM
Oh, my god...! I have been eager for this kind of tutorial for years, since I strongly want to do somemodding by myself. It's the first that I've found that shows people some details of the game files and how to change them. Thanks very, very much for posting!:DL
Yet, a very bitter disapointment struck me hard when, after following the tutorial almost to the end, I could not find the UpgradePacks.upc file:wah: I used the WExplorer search engine and it returne nothing (???)
(I downloaded the ohio class sub for SH4 v1.4 just to follow the instructions of this tutorial).
Can anyone outhere help me, please!!!!!!:damn:
Thanks,
rea00cy
@rea00cy
The UpgradePacks.upc is in the Data/UPCData/UPCUnitsData folder.
@Clay
Hi Clay, Hope you are back for a long time now!! The "main node" for any object is the first one and is farthest to the left. There will be "child nodes" under it, but they will be indented.
http://www.subsim.com/radioroom/picture.php?albumid=181&pictureid=1305
So in this image of the gun, 9 is the main node for the gun. The ones above it with the colored circles are materials/textures that are applied to the gun. They are not part of the actual gun, just the "Paint" that goes on the gun.
Nodes 8 and 10 as you see are indented and are "child nodes" and 9 in the Main node or "Parent node" if that might make it easier to understand.
Hope that helps.
Peabody
de vliegende hollander
02-23-10, 07:48 AM
hi all
etr3 i have doing your tutorial but i quess that i have something wrong :haha:
i have to try to put a deckgun on a xxi but i have a problem and have not always my swimmingclodes with me
look your self
wat have i doing wrong ?
grt henk
http://i49.tinypic.com/2v2gze9.jpg
ETR3(SS)
02-23-10, 09:56 AM
Looks like the problem is the location of your node in the boats dat file. You obviously want to move it up and back...way back.:haha:
de vliegende hollander
02-23-10, 01:47 PM
So that looks better and my feet stay dry :woot:
http://i50.tinypic.com/2lcm6a.jpg
Thanks Peabody,that clears that up fine...:yeah:How are you doing? I'm feeling a little better....
de vliegende hollander
02-23-10, 06:46 PM
hi all
i have here a xxi with a fore and a aft 5inch gun turret
only i have a couple problems the aft turret is facing to the front and not to the back
and i can use only one turret
is it possible that i can use both ?
grt henk
http://i47.tinypic.com/91ig5e.jpg
peabody
02-23-10, 07:21 PM
Thanks Peabody,that clears that up fine...:yeah:How are you doing? I'm feeling a little better....
I feel with my fingers mostly....:D Glad to hear you are doing better. You know how to feel better right? You give up everything that tastes good or is fun. :wah: Take care, if you need any help, just dial 1-555-PEA-BODY, if I don't know the answer, I will make something up.
Take Care, My Friend,
Peabody
peabody
02-23-10, 07:27 PM
hi all
i have here a xxi with a fore and a aft 5inch gun turret
only i have a couple problems the aft turret is facing to the front and not to the back
and i can use only one turret
is it possible that i can use both ?
grt henk
:o:o What is that? A BattleSub? As far as I know you can use one deckgun and 3 flakguns. As for the one facing the wrong way, open in S3D and find the node (M01 or M02 usually) that is facing the wrong way. In the "Node Positioning" section that you used to position the guns, make Rotation y=180.
Peabody
de vliegende hollander
02-23-10, 07:44 PM
i have change it to 1 fore main gun 105mmdg and the 2 20 mm aa
but i can play with one aa and the 105mmdg
how can i make it possible that i can use the second aa also
grt henk
ps: do you not like a batlle sub peabody ? :D
peabody
02-23-10, 09:37 PM
i have change it to 1 fore main gun 105mmdg and the 2 20 mm aa
but i can play with one aa and the 105mmdg
how can i make it possible that i can use the second aa also
grt henk
ps: do you not like a batlle sub peabody ? :D
Just like he is doing the tutorial, only you add A01 and A02 nodes in the tower which is usually in the Objects folder. And the upc stuff and they are usually in the Unitparts section inside the UPCData folder. That is the upc file for the tower. But the XXi is not a stock sub so I am not sure how it is set up. But if you find the A01 or first flak gun you need another node in the .dat and info like the tutorial like the A01 that you already have. Compartment, Crewman (usually only one on a flakgun unless it is a "heavy") and the flakgun entry. Just look at A01 and do the same thing only make it A02.
Peabody
I'm as far as placeing the new compartment in the Gato UPC file,I cant find where it goes in the Gato file and I dont really think I have done anything right to this point..Maybe so....:hmmm:
peabody
02-24-10, 03:12 AM
I'm as far as placeing the new compartment in the Gato UPC file,I cant find where it goes in the Gato file and I dont really think I have done anything right to this point..Maybe so....:hmmm:
Clay,
The tutorial is mainly for new subs/ships made from scratch that don't have any guns yet. The Gato already has the compartments and crewmen and slots necessary to add a gun. So some of the steps you don't need to do. But, so you will know if you need to do it in the future, the compartments just goes next in line for the compartments.
If you take a few minutes to go through the subs.upc file you will see a pattern to it. At first it just look like a mess. But this is the way it is layed out.
1. Compartments
2. Crewmembers for the compartments
3. Equipment and Weapons for the compartments
4. Upgrades for the Equipment and weapons.
5. Functional subsystems..These entries just define what all that stuff it so the game wil know.
So once you see how things go in order, you can follow the tutorial to see how it got there.
If it was the Gato it would be put on like this:
[UserPlayerUnit 1. Compartment 7]
That creates the compartment. A gun is considered a compartment, just like the engine room is considered a compartment.
[UserPlayerUnit 1. Compartment 7. CrewmemberSlot 1]
And
[UserPlayerUnit 1. Compartment 7. CrewmemberSlot 2]
This creates a place to put the men on the gun
[UserPlayerUnit 1. Compartment 7. WeaponSlot 1]
That creates a place to put the gun
Then he show how to put upgrades if you want the gun to change or be able to buy a different one during the war.
Then he shows the funtionalsubsystems.
So I think maybe the reason you got confused as to where to put it is because it is already there on a stock sub, and most of the mod subs. The only difference is in the tutorial he is using compartment 6 and on the gato it is compartments 7 and 8. So if you follow through reading the tutorial but look at the gato compartment 7 it will make sense.
So if you go to part 2 of the tutorial you can put a gun on the sub that isn't normally available for a sub. Etr3 is going to take one out of the GunsRadars.dat which are normally on ships and put it on a sub, and on the Gato you already have a place to put it.
Hope that makes sense.
Peabody
Ok Bro then theres no sense me messing with it..I have 2 deck and 2 AAA on my Gato..Thanks for clearing the whole thing up...:up:
ETR3(SS)
02-25-10, 02:02 PM
Part 3 of the tutorial is now up! See 3rd post.
P.S. @ peabody, thanks for stepping in and helping out! :salute:
peabody
02-25-10, 02:49 PM
Part 3 of the tutorial is now up! See 3rd post.
P.S. @ peabody, thanks for stepping in and helping out! :salute:
Hope I didn't step on your toes. Clay was having a little trouble because he was using a sub that already had the stuff you were describing and it got a bit confusing because of that.
Great tutorial on a difficult topic. Appreciate the time you put into it.
Peabody
ETR3(SS)
02-25-10, 03:02 PM
Hope I didn't step on your toes. Clay was having a little trouble because he was using a sub that already had the stuff you were describing and it got a bit confusing because of that.
Great tutorial on a difficult topic. Appreciate the time you put into it.
PeabodyNo toes on stepped on at all.:)
DJ_Reonic
08-22-10, 09:53 AM
This is AWESOME!!! Now I can make my Ohio a death ship, even without nukes. Now I'm just curious, how would I go about setting up the guns so they are stored in the missile tubes, and then on the surface, the tubes open and the guns pop out.
I just want to see how to get the tubes to open, and get the guns to lower and raise. If possible, I'd like to learn how to set up the commands/timing so the guns come out only when the guns are manned, so that the sub looks like a regular Ohio until I call GQ.:arrgh!:
Kinda like a Q-ship, just really fast, mean, and quiet.
I hope it's not too much trouble, I'm just a complete n00b in this stuff and want to learn.
chrysanthos
08-18-16, 07:56 PM
etr3 this is great tutorial all i want to ask is that does it work with surface convert playble ships or liners wich dont have any deck gun to fire back at enemy and antiaircraft gun too?
itadriver
08-19-16, 03:01 AM
Thanks.!!!!!!!!! :)
ETR3(SS)
08-19-16, 04:14 AM
etr3 this is great tutorial all i want to ask is that does it work with surface convert playble ships or liners wich dont have any deck gun to fire back at enemy and antiaircraft gun too?It will work with any ship in the game.
Thank you very much! :salute:
now let's try add a phalanx to a modern sub to make perfect weapon :D
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.