| Author |
Working NSSUBoat9C sub mine layer with mines.. |
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-16 19:28  
well done a bit of intensive testing my self allso...and hit one snag...
precisely because these mines stay where there put and don't vanish...and because you can view them via the torp cam....once you get above a certain number of mines seeded throught-out an area...the torp cam kicks out,,,causing an error...
this ;
Thu Mar 14 05:13:14 2002
Error -1 [m_nTracks >= SUB_MAX_TORP_TRACKS]
DirectX code: "Unrecognized error: 0xffffffff"
F:DevelSH2SimSourcesCSubControl.cpp
Line 3587
(i reckon i've interperated that right..?)
but i had layed about 15 mines ,
because they don't vanish after a period of time ,AND you can scan round them ALL with the torp cam..(.which is quite an interesting experience ..mining a harbour then retreating to a safe distance and watching the mines to see if you kill any merchants via the torp cam...lol)..
sooo...may have to limit the amount you can carry...which is a pity..the type XB carried 66 mines launched from 30 tubes...( so launching them out of the torp tubes is not completely out of the question...they need to be launched vertically from the deck area to be ok)
i can either reduce the amount of ammo/tubes
or perhaps as FAdmiral suggested (good idea)
changing two of the tubes for normal torpedoes..or increase the loading times for the mines..
both probably...
allso am wondering what the maximum distance for the torp cam is...because you could mine a harbour in america..slog back to lorient..then hit the torp cam and watch the action...that might cause an error or two lol... allso thinking on this entry for the boat///
MaxTorpedoLaunchDepth = 22
might accept deeper settings if i added it to the units section of the boat UDF
then could build a sub screen around friendly harbours..be safe for surface ships because they will sit at the depth you lay them..
all in all it's quite an interesting project!
UP-DATE.....
yes 16 is the limit before the error occurrs..but...during the experiments for this stuff...i made a mine that launched...(ie it fired when the torp launch buttons was pressed with all the appropiate sounds...but did not show on the torp cam...ie the torp cam button remained greyed out..).scratched my head about that for a while...but if i can remember the file entrys for this mine, i can mix them in with the torp cam mines and increase the number of mines to a realistic (and entertaining!) amount...seeding a harbour/estuary with 60 or so mines then pegging it out to a safe distance to watch the action sounds highly intrigue-ing..
_________________
CB-site
[ This Message was edited by: CB.. on 2002-08-16 20:42 ]
 
|
FAdmiral
Joined: Feb 28, 2002 Posts: 1401 From: Atlanta, GA, USA
| Posted: 2002-08-16 22:21  
Yes, this mine idea has many interesting
possibilities. Haven't tried the torp cam
yet but will get to that. Now if there was
a jrf file (3D pic) to go with the mines,
that would be great.... (mine.jrf ???)
JIM
_________________ Contrary to popular belief, most people do possess a photographic memory. The problem is most of them are simply out of film.
 
|
Mark K
Joined: Feb 27, 2002 Posts: 474 From: Petaluma, California
| Posted: 2002-08-16 23:18  
Looking at the code, it looks like SUB_MAX_TORP_TRACKS is set to 12.
thanks,
Mark Kundinger
(Ultimation)
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-17 04:59  
cheers Mark
definitely getting 16 in the water, then as you press the fire button for number 17;
the error occurs... do you know which entry in the adf/ddf/udf,s instructs the game to use the torp cam ?
which of the exe's is the code found in...?
to be honest i'm not sure what these torp tube mines are supposed to look like...any body got a pic?
but german subs did fire mines out of the normal torp tubes..which would make them either completely round and quite small, or barrell shaped..so may-be we're not so far off from it with the ODC_Barrel.jrf
i don't know ;
wish i could make jrf files ...
i've made entire aircraft in g-max in less than 12 hours..
a small round(?) object perhaps with detonation spikes sticking out (as per the movies) would take perhaps ten minutes to make..Seaadler could you help us out here?
up-date;
ahh sorry seaadler / having had a look at the odc-barrel.jrf in a hex editor ..i'm sure (it being ordinace) it would need many hours of hard trail and error to get the correct references for use in SH2..(my apologies)...tell you what tho..whilst i was experimenting...i opened a destroyer jrf and replaced the
AA1
entry with
UZO
went back into the game with a player destroyer mod i keep trying to perfect, and bingo, hitting the uzo button brought up the uzo station where the anti aircraft gun (number one) originally was...tho without the stand...just the eye "viewer" part..was visable but it worked..
i have no experience with hex editors at all..but some one with a lot of experience might be able to do all sorts of stuff..
i had a go at adding the cavitations to the non player british sub..cut n pasted the appropiate section(?)...data_cav.../ into the brit sub jrf..
no good tho..it crashed ..but it might be possible if i was use-full with hex editing...ahh well may pick it up as i go along...heck an expert might be able to replace the deck gun (main1) on a minelayer sub with a torp tube (TT1) and edit it to fire vertically..?
worth experimenting with..even if i am stuck with trail and error..
_________________
CB-site
[ This Message was edited by: CB.. on 2002-08-17 05:23 ]
[ This Message was edited by: CB.. on 2002-08-17 06:03 ]
 
|
Seeadler
Joined: Feb 27, 2002 Posts: 194 From: Germany
| Posted: 2002-08-17 07:24  
Quote:
|
Seaadler could you help us out here?
|
|
sure, but I need some pictures of these mines, there were several types of mines! The only one I found was this:
http://uboat.net/technical/mines.htm
 
|
Blowballast
Joined: Jul 17, 2002 Posts: 164 From: La Spezia - Italia
| Posted: 2002-08-17 07:53  
A guy (Canarb) create this with 3D studio max
This is my sig in Betasom forum...it's a fake...but pheraps in the future...
_________________
www.betasom.it
Pestis eram vivus - moriens mors tua ero.
 
|
Blowballast
Joined: Jul 17, 2002 Posts: 164 From: La Spezia - Italia
| Posted: 2002-08-17 08:01  
The photo of the mine come from here:
www.regiamarina.net
(i try to enter but now it doesn't work..)
The mine above isn't the final version, Canarb is working on it and when it will be completed we'll add the textures
_________________
www.betasom.it
Pestis eram vivus - moriens mors tua ero.
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-17 08:25  
cheers !!!
that would look great in the game..if you could make it nice one...cheers B-ballast as-well!! he he great stuff!
tho meantime those mines shown at u-boat net, are fine for the normal torp tube fired mines..the odc_barrell.jrf looks close enougth to pass for that type of mine...( i figured they would need to be barrel shaped to get out the torp tubes in real life..lol!!)
the ones they layed from specailised minelaying subs came out the deck vertical tubes and probably looked more like the version BB has shown...tho i dun know abotu the spikes..? they were tethered tho so they would have the chain..or something similar perhaps?
i dun mind , would love to see those mines in the game..
_________________ <a href="http://www.ebort.com/index.html"target = blank>CB-site</a>
 
|
Seeadler
Joined: Feb 27, 2002 Posts: 194 From: Germany
| Posted: 2002-08-17 09:04  
aaah great site of mine pictures!
I think for the modified sub we need a mine model like the one from uboat.net, a torpedotube launched mine. If it is possible to modify a dd as a mine laying unit, then we need a sphere model of mines.
So I warm up my multigen-creator this weekend to see what is possible to model some of these mines and converting it to jrf!
 
|
Blowballast
Joined: Jul 17, 2002 Posts: 164 From: La Spezia - Italia
| Posted: 2002-08-17 09:58  
Seeadler, if you want the 3D model of sferic mines, I could ask to Canarb to send you his work.
I was thinking if sferic mine could be used as "units". I mean like GUN...
So not only a weapon used by DD or Sub, but something that can be add in sdf while making the mission.
So we can fill the entrance of some ports with these mines (i.e. Scapa Flow).
Something like that:
[GROUP2]
Type = SHIPTASKFORCE
UnitType = Sea Mine
Side = 1
Name = Costal Defence
Nationality = Britain
WayptDisplay = DO_NOT_SHOW
[UNIT2]
Group = 2
TypeAbrev = SM (?)
Class = SMSeaMine (?)
Name = Mine
Flag = TRUE
Guide = TRUE
MultiSelect = TRUE
Location = 14.460667, 35.938009
Orientation = 40
Depth = 15
Captain = 80
Crew = 80
IconName = MINE
Display = SHOW_AS_UNIT
[UNIT3]
Group = 2
TypeAbrev = SM
Class = SMSeaMine
Name = Mine
Flag = TRUE
Guide = TRUE
MultiSelect = TRUE
Location = 14.460667, 35.938009
Orientation = 40
Depth = 5
Captain = 80
Crew = 80
IconName = MINE1
Display = SHOW_AS_UNIT
Using variable depth we can make things harder for the sub
_________________
www.betasom.it
Pestis eram vivus - moriens mors tua ero.
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-17 12:29  
Quote:
|
On 2002-08-16 23:18, Mark K wrote:
Looking at the code, it looks like SUB_MAX_TORP_TRACKS is set to 12.
thanks,
Mark Kundinger
(Ultimation)
|
|
my apologies Mark,
must have been addled when i said 16..tho i could have sworn it ...certainly can't recreate it now tho lol...so 12 it is , is there any way i can alter that?
again apologies..
i've up-dated the minelayer so it stays within the MAX_TORP_TRACKS limit and posted it along with a mission so folks can have a look at it;
/ same link.../
http://www.ebort.com/index.html
front tubes should only be fired as FAdmiral noted...whilst in "reverse" ,
_________________
CB-site
[ This Message was edited by: CB.. on 2002-08-17 13:22 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-17 15:20  
hey i've be messing around with player dd's; really was trying to get some sort of depth charge working but ended up with the working mines instead,theres some usefull things that you can do to the dd udf file to arrange the uzo bridge stations a bit more conjusively..(if u allready know them ..sorry,, but may be use-full to have them here any way)
[UNIT]
Category = SUBMARINE
Type = GENERIC
Class = SSUBoat9C
Model = NDMSClemson
Origin = Germany
Date = 3502
Crew = 25
UpdatesPerSecond = 10
Preprocess = TRUE
ExemptFromSilliness = TRUE
Translate = 1,-0.7,30
the translate allows you to move the uzo/bridge/peri combination
lateral/vertical/longitudal
it doesnt effect the aa/deck gun stations..
i put the uzo on the back of the ship by the depth charge racks ..with the entrys above..
the diving stuff...can be altered to scuttle mode..lol..
[VESSEL]
Displacement = 35000
SubDisplacement = 40000
TestDepth = 12
CrushDepth = 13 ; diving depth 80m construction 120, calculated crush 150
MinSubmergedDepth = 5
MaxPeriscopeDepth = 1
AlarmTime = 135 ; slower than other II's
[PROPULSION]
Type = DIESELELECTRIC
System = Propulsion
Screws = 2
Speed = 39
Range = 8600 ; 1050 at 12kt
SubSpeed = 0
SubRange = 0
FuelCapacity = 1760.05
going to periscope depth takes you below crush depth ..no sub range so you can't surface within around ten seconds you are sinking and get the hull crushed message..
you soon learn to leave it alone
you can have some sort of working pinging sonar....it does all the right stuff..ie pings when you are near a sub etc..references to the sound room screen (for what it's worth..which isnt much)
but it does work..
add this sensor..
[SENSOR5]
Type = SONAR
System = SonarGE_SKF
you can lay mines out the back ..as the minelayer..from the rear tubes..
but i really want depth charges..
going to keep trying tho..might stumble across somthing that works..
i'm sure theres loads more options for this sort of stuff floating around out there
getting the guns to work is a puzzle..the deck gun usually works right off..the aa guns are a law unto them selves lol..but i read that some one has sorted it..(cant find the post again tho);
add depthcharges..and thats the lot...!!
may-be might even help in multi-player ??
DC clients use twice as much bandwidth as SH2 clients...so a SH2 destroyer might be a boon..but it may just be because the DC client has more going on because they are on the surface?
no idea
_________________
CB-site
[ This Message was edited by: CB.. on 2002-08-17 15:35 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-18 07:08  
i think perhaps the
[m_nTracks >= SUB_MAX_TORP_TRACKS]
janus error that occurrs if you carry/fire more than 12 mines may be related more to the TDC torp timer than perhaps the torp cam..eventually found that setting the mine speed to -1 or any minus amount
disabled the torp cam , but even tho the tubes loaded and fired as normal the exterior view showed no mine,,and no contact /explosion...
on the sonar side for add mod..
the
sonar.ddf files respond
to this style of entry
LOSPassive = FALSE ; Line of sight not required for this sensor
IDEnemy = FALSE ; Sensor cannot identify friend or foe
IDType = TRUE ; Sensor can identify general unit type
IDUnit = FALSE ; Sensor cannot identify exact unit
IDDeath = TRUE ; Sensor cannot detect when a contact dies
IDRangePassive = TRUE ; Sensor can determine range when passive
IDBearingPassive = TRUE ; Sensor can determine bearing when passive
IDElevation = TRUE ; Sensor can determine elevation or depth
at first try any way..
hey if adding mines as units in mission files proves tricky..i had a quick attempt.not straight forward..would certainly need to use a seperate set of files for the unit mine as apposed to the weapon mine...
be tricky getting them to explode on contact..?
but how about making a simple model for submarine nets?
and adding them to the game via the bases.ini probably in the same way you got the lighthouses in game?
if the collision detection is enabled
(and i have no idea how difficult it might be to do that)
then you would have an effective sub defence screen..and it could make for very interesting missions...?
i added a milk cow as a base via the bases.ini so i could start a mission from a supply sub..named it milk cow and there it was as a blue icon on the map...pernament in all missions campaigns tho..
but thats not a disadvantage with sub nets..
would like to be able to add sunken ships as harbour defence in this way too..if it can be figure out how to make them appear submerged..
_________________
CB-site
[ This Message was edited by: CB.. on 2002-08-18 07:15 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-18 10:10  
yes i think it's possible to have sunken ships added either as bases via the ini or as units via the mission file...
the
translate = 0,0,0
addition to the units section of whatever UDF file you create will move the visual model
even tried it on the mines..
[UNIT]
Category = ORDNANCE
Type = Torpedo
Class = DC
Model = ODC_barrel
Name = SDC
UpdatesPerSecond = 5
Translate = 0,-30.7,0
this put the mine once launched at around
40 metres depth/
meaning that you can make a range of different mine ammo each set to launch at different depths, this way you could build up that mine screen you are after B-Ballast;
not sure wether the collision detection/detonation occurrs at the new visual depth or the original depth/
Update= it seems to occur at the new visual model depth...as launching a mine whilst stationary, prior to translating the model, allways blew up the ship..after translating, your are safe.. which makes sense ,the collision/detonation allmost certainly is coded into the model file,?; so where it sits that's where the detonation will occur...very good news for mine laying at varing depths..etc
(of course doing the opposite to a normal torpedo would result in it flying above the surface of the water.........translate = 0,30,0 would do it,, but that would be a bit daft ..er... or would it? might be refined into the missile perhaps?)
this is not a problem with sub launched mines ...as you can launch them at the depth you are laying at..down to around 30m /
but with ship launched mines this would be a way of laying set depth mines,
if any one has any idea if it's possible to increase the depth settings of a torp/mine from the torp status room beyond 15 metres ...it would be a more playable option,
hey allso has any one any idea how to put the aa gun from the type xx1 boat (the visual model ) on another boat?
allmost a depth charge...
am making a new mine weapon set of files that will vanish after a short period of time to be used as depth charges (of sorts..they are short term deep water mines at present)
so the player can carry and use a healthy amount...as these mines only explode on contact, the more the merrier , no easy task sinking a sub with them..but with practice it can be done...
still working on making them more practcal as depth charges..
on the sub nets perhaps...making a model..then using the translate entrys to place them under water at harbour mouths would work...even if they cannot be crash enabled, the visual effect would be very pleasing ? whaddya think?
_________________
CB-site
[ This Message was edited by: CB.. on 2002-08-18 10:19 ]
[ This Message was edited by: CB.. on 2002-08-18 11:38 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-08-18 15:36  
he he!!! lol!!!
me brains boiling over....if i take the mine udfs
add the translate entrys
so the mines appear above the deck gun area..
translate = 2,2,-7
would probably do it...
thats
2 so it appears slightly to one side...and misses the con tower if you are moving forward
2 lifts the spawn/fire point slightly above the sub
-7 moves the spawn/fire point back towards the con tower
resembling the specialised minelayer subs deck launch tubes /
no need to mod an exsisting torp file..simply copy one rename it and point the torpedo tube and ammo entrys in the (again copyied and pasted renamed) sub udf file...
ie copying and renaming
torpedo.udf
torpedo.adf
torpedo.ddf
to
TorpedoGE_mn.udf
torpedoGE_mn.adf
torpedoGE_mn.ddf
and
NssuBoat9Cmine.udf
to
NssuBoat9Cmineb.udf
adding the modded entrys to the new files
saves overwriting stock files ..which means you wont lose track of what the heck your doing lol
a small but nice idea would be to alter the sim.stb
found in sh2/text/english
the torp staus room entrys ;
TORP_TI|MINE/DC/T-I
TORP_TII|T-II
TORP_TIII|T-III
TORP_FAT_I|T-I/FaT
TORP_FAT_III|T-III/FaT
TORP_TIIIA|T-IIIa
TORP_FAT_IIIA|T-IIIa/FaT
TORP_TV|TV
the type of torp labeled in the stores etc
is dictated by the entry in the mine ADF file
sh2/sim/systems
this is my mine ADF
; German Type seamine torpedo ammo
[AMMUNITION]
Category = torpedo
UnitType = TorpedoGE_mn
Type = DC
SubType = 10010
Name = Seamine
DamagePoints = 97.5 ; 97.5 per CCarlson with HMD and aluminum
MagazineSize = 2
TimeToEnable = 17.25 ; 250 meters @ 40 knots
;SinkRate = 14.4 ; m/s, 9.9fps
DudProbability = 0.0
Radius = 1150
as far as i can prove to my-self the
SubType = 10010
tells the sim that it's TI as far as the stores room is concerned..changing the number changes the name ..
so adding mine to the TI label in the sim.stb brings up mine in the stores...might be able to get round that by adding torp types..but not tried it yet..this ull do for now..
while i'm here ; heres the mine DDF file aswell
; Generic torpedo launching weapon
[SYSTEM]
UpdatesPerSecond = 5
Model = ODC_barrel
[WEAPON]
ElevationRate = 0.15 ; Radians / second
TraversalRate = 0.07 ; Radians / second
GunLoadRate = 0.008333 ; Guns loaded per second
and the UDF
[UNIT]
Category = ORDNANCE
Type = Torpedo
Class = DC
Model = ODC_barrel
Name = seamine
UpdatesPerSecond = 10
[BODY]
Mass = 2800 ; kg
[PROPULSION]
Type = TORPEDO
System = Propulsion
RangeAtSpeed1 = 120.25, 0.01 ; ranges at different speeds
RangeAtSpeed2 = 120.35, 0.01 ; list in order slowest to fastest
RangeAtSpeed3 = 120.5, 0.01 ; units are nautical miles, knots
[FUEL]
[MANEUVER]
System = Maneuver
;SinkRate = 14.4 ; mps (14.5 fps teardrop early)
MaxGyroAngle = 135
//////////
then it's just a matter of altering the weapons loadout in your sub UDF file like this
[WEAPON6]
Type = TORPEDO
Node = TT1
System = TorpedoGE_mn
RotRange = 0,0,0
TravRange1 = 0,0,0
AmmoStore = 1
PreloadCell = 1
[WEAPON7]
Type = TORPEDO
Node = TT2
System = TorpedoGE_mn
RotRange = 0,0,0
TravRange1 = 0,0,0
AmmoStore = 1
PreloadCell = 1
[WEAPON8]
Type = TORPEDO
Node = TT3
System = TorpedoGE_mn
RotRange = 0,0,0
TravRange1 = 0,0,0
AmmoStore = 1
PreloadCell = 1
[WEAPON9]
Type = TORPEDO
Node = TT4
System = TorpedoGE_mn
RotRange = 0,0,0
TravRange1 = 0,0,0
AmmoStore = 1
PreloadCell = 1
[WEAPON10]
Type = TORPEDO
Node = TT5
System = TorpedoGE_mn
RotRange = 180,180,180
TravRange1 = 180,180,180
AmmoStore = 2
PreloadCell = 1
[WEAPON11]
Type = TORPEDO
Node = TT6
System = TorpedoGE_mn
RotRange = 180,180,180
TravRange1 = 180,180,180
AmmoStore = 2
PreloadCell = 1
;;;;; TORPEDO LOADOUTS ;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;; TORPEDO LOADOUTS ;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; --- Early war torpedo loadout
#if between(19390101,date,19430101)
[AMMOSTORE1] ;; Forward torpedo room
AmmoType1 = TorpedoGE_mn
MagazineCount1 = 6
[AMMOSTORE2] ;; Aft torpedo room
AmmoType1 = TorpedoGE_mn
MagazineCount1 = 6
[AMMOSTORE3] ;; External storage
AmmoType1 = TorpedoGE_TI_Pi1e
MagazineCount1 = 0
#endif
;; --- Mid-war torpedo loadout (FaT I's)
#if between(19430101,date,19431001)
[AMMOSTORE1] ;; Forward torpedo room
AmmoType1 = TorpedoGE_mn
MagazineCount1 = 6
[AMMOSTORE2] ;; Aft torpedo room
AmmoType1 = TorpedoGE_mn
MagazineCount1 = 6
[AMMOSTORE3] ;; External storage
AmmoType1 = TorpedoGE_TI_Pi1e
MagazineCount1 = 0
#endif
;; --- Late-war torpedo loadout (TV's)
#if between(19431001,date,19460101)
[AMMOSTORE1] ;; Forward torpedo room
AmmoType1 = TorpedoGE_mn
MagazineCount1 = 6
[AMMOSTORE2] ;; Aft torpedo room
AmmoType1 = TorpedoGE_mn
MagazineCount1 = 6
[AMMOSTORE3] ;; External storage
AmmoType1 = TorpedoGE_TI_Pi3
MagazineCount1 = 0
#endif
________________
CB-site
[ This Message was edited by: CB.. on 2002-08-18 16:28 ]
 
|
|