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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-09-12, 03:50 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I understand somewhat

Given the following:

[Campaign.CampObj.MacroObj 3]
ObjectiveID=TG_British_Supplies
Name=Campaign.CampObj.MacroObj 3.Name
MapZone=BritishSupplies
ValuePointsProvided=3
FurtherInfo=Campaign.CampObj.MacroObj 3.FurtherInfo
StartDate=19390901
EndDate=19400601
IsCompleted=false
IsFailed=false
IsUnlocked=true
AssocMissionsActive=
AssocMissionsCompleted=
ObjActivationAchievements=OBJ Invasion Of Poland
[Campaign.CampObj.MacroObj 3.PersObj 1]
PersObjType=0
Name=Sink_100,000_tons_of_cargo_in_South_Western_A pproaches
Description=Campaign.CampObj.MacroObj 3.PersObj 1.Description
RelatedMapLocations=Area_Southwestern
IsCompleted=false
[Campaign.CampObj.MacroObj 3.PersObj 1.Amount]
IsTonnage=true
Tonnage=100000
NumOfShips=0
[Campaign.CampObj.MacroObj 3.PersObj 1.CrtAmount]
IsTonnage=false
Tonnage=0
NumOfShips=0
[Campaign.CampObj.MacroObj 3.PersObj 1.TargetType 1]
Type=102
TargetType=1

[Campaign.CampObj.MacroObj 3.PersObj 1.TargetType 2]
Type=101
TargetType=1

[Campaign.CampObj.MacroObj 3.PersObj 1.TargetType 3]
Type=103
TargetType=1

[Campaign.CampObj.MacroObj 3.PersObj 1.TargetType 4]
Type=107
TargetType=1

[Campaign.CampObj.MacroObj 3.PersObj 1.TargetType 5]
Type=109
TargetType=1

[Campaign.CampObj.MacroObj 3.PersObj 1.TargetType 6]
Type=108
TargetType=1

[Campaign.CampObj.MacroObj 3.PersObj 1.TargetIdentif 1]
TargetIdType=1
ToNode=St. Nazaire
FromNode=Bristol
[Campaign.CampObj.MacroObj 3.PersObj 1.TargetIdentif 2]
TargetIdType=1
ToNode=Bristol
FromNode=St. Nazaire

It appears that this 'problem' only appears on those entries that end with .TargetType x correct?

How does one cross reference the Type=x for each entry to what it should be? For instance the entry ending in .TargetType 6 where can I find what the actual Type=x should be? How do I know that Type=108 is incorrect? How do I know that TargetType=1 is correct?
TheDarkWraith is offline   Reply With Quote
Old 04-09-12, 04:47 PM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
It appears that this 'problem' only appears on those entries that end with .TargetType x correct?
\yes - it looks like when the TargetType=1 it works correctly.
This "1" is saying - target is set by type.

So it will also have "Type=x" if x being a ship type found in roaster/names.cfg.

Code:
 
;Warships
Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
Type5=Minesweeper
Type6=Light Cruiser
Type7=Heavy Cruiser
Type8=Escort Carrier
Type9=Fleet Carrier
Type10=Battlecruiser
Type11=Battleship
Type12=Minelayer
Type13=Auxiliary Cruiser
Type14=Special OPS Boat
Type15=Landing Craft
Type16=Elite Patrol Craft
Type17=Elite Destroyer escort
Type18=Elite Escort Carrier
Type19=Super Fleet carrier
Type20=Super Battleship
;Merchant ships
Type100=Replenishment
Type101=Tanker
Type102=Cargo
Type103=Troop Transport
Type104=Coastal Vessel
Type105=Life Raft
Type106=Survivor
Type107=Z ships
Type108=Rare Cargo ship
Type109=Rare Troop Transport
Type110=Environmental
;Submarine
Type200=Submarine
Type201=Replenishment Submarine
Type202=Missile Submarine
Type203=Environmental

If TargetType=0 - this is where I think there is an error.
This "0" is saying - target is set by class (name).

Class=BCRenown
Type=102
TargetType=0

So the name is BCRenown and is found in the sea folder ships cfg
This may be enough for the game to be able to id the target, but it also lists the ship type (as with the example above for TargetType=1)

Now if the game also reads the type=102 - this will not match with the type in the ships cfg file. For this ship (Renown) it is type 10

Quote:
How does one cross reference the Type=x for each entry to what it should be? For instance the entry ending in .TargetType 6 where can I find what the actual Type=x should be? How do I know that Type=108 is incorrect? How do I know that TargetType=1 is correct?
This is either read from the roaster/names.cfg or the Sea/ships names/ships name.cfg - both should match.

So - if your app can check if in campaign folder campaign.cfg has the entry TargetType=0
It should check the ship class(name) from same file (campaign.cfg) and then look in that ships cfg file for unittype - then check that is the same as the Type=x in the campaign.cfg
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-09-12, 05:51 PM   #3
Swat
中国水兵
 
Join Date: Mar 2006
Location: Czech Republic Prague
Posts: 286
Downloads: 224
Uploads: 0
Default

I ran the test now after OHII 1.8 patch 2.

There are two bad news and one good news. It will be definitely different depending on the installation of every skipper here. So the first bad news is that I had a ctd southeast of Scapa again when I was making my approach. No contacts, the game crashed. Loaded the game back and finally made my way in. Now the good news is the game didn't crash inside the base. Fired four torps at the capital ship, watched the sinking with all the fireworks etc. Even attacked and sunk one destroyer with my aft torpedo-hit, explosions, sinking, everything good.

Second bad news is that all other ships are absolutely inert again just like if it was without IRAI. I mean stationary, hydrophones on, pinging and everything, doing nothing. Loaded the game again and tried again and destroyers are only shining at me, can be surfaced or submerged, get no fire from them. However I did take a heavy fire from the capital ship when surfaced and close.

Just to conclude my findings if it's going to be any help for your awsome work (I mean all the modders now). I'm using MMM where IRAI is included, I just applied OHII patch 1.2. Should I start new career to make this change function properly? But I think it's definitely going somewhere because before this patch no way I could spot/approach/attack/observe the capital ship. Then I escaped Scapa with objective accomplished (full bar on "Sink one capital ship at Scapa flow").
__________________

First Patrol Of U-21 Part 1:http://www.youtube.com/watch?v=DqBqInzBaGc
First Patrol Of U-21 Part 2:http://www.youtube.com/watch?v=WWqyTaomDjM
Swat is offline   Reply With Quote
Old 04-10-12, 01:16 AM   #4
misha1967
Commander
 
Join Date: May 2004
Location: Texas, USA
Posts: 470
Downloads: 78
Uploads: 0
Default

Quote:
Originally Posted by Swat View Post
I ran the test now after OHII 1.8 patch 2.

There are two bad news and one good news. It will be definitely different depending on the installation of every skipper here. So the first bad news is that I had a ctd southeast of Scapa again when I was making my approach. No contacts, the game crashed. Loaded the game back and finally made my way in. Now the good news is the game didn't crash inside the base. Fired four torps at the capital ship, watched the sinking with all the fireworks etc. Even attacked and sunk one destroyer with my aft torpedo-hit, explosions, sinking, everything good.

Second bad news is that all other ships are absolutely inert again just like if it was without IRAI. I mean stationary, hydrophones on, pinging and everything, doing nothing. Loaded the game again and tried again and destroyers are only shining at me, can be surfaced or submerged, get no fire from them. However I did take a heavy fire from the capital ship when surfaced and close.

Just to conclude my findings if it's going to be any help for your awsome work (I mean all the modders now). I'm using MMM where IRAI is included, I just applied OHII patch 1.2. Should I start new career to make this change function properly? But I think it's definitely going somewhere because before this patch no way I could spot/approach/attack/observe the capital ship. Then I escaped Scapa with objective accomplished (full bar on "Sink one capital ship at Scapa flow").
At least the CTDs are gone from within Scapa.

The other CTD may have been random. I've noticed those, and they usually resolve themselves. The last one I had was a bit more of a bother, though.

I was coming home from Scapa and, all of a sudden while getting closer to the canal entrance near Wilhelmshaven, off the coast of Denmark, I CTD'd. So I reloaded the most recent save, which was an auto-save, and it CTD'd as it was loaded. Went back to the last of my own saves and everything was OK. I think what happened was that the auto-saves just jump in and save whenever, and I was running TC in an area with a lot going on (low FPS), whereas my own saves are usually from TC1. I think sometimes the game, when attempting to save when the CPU is too busy, creates problems.

Anyway... The passive destroyers in Scapa after your attack I can't speak to as I was in a hurry to leave after I fired my salvo so I didn't stick around. I suppose it could be because of the disabling/enabling mods while on patrol which has been known to cause strange issues even when it shouldn't.
__________________
Ansonsten, Herr Lutter, ist alles in Butter
Liqui-cooled Intel i2550K @ 4.2 GHz, 8 Gb RAM, GTX 970 GPU
misha1967 is offline   Reply With Quote
Old 04-10-12, 11:44 AM   #5
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Thanks for the feedback guys

If anyone else is playing the first campaign with the new hotfix installed - please let us know how attacking the BBs in scapa works
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-10-12, 11:45 AM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
that's what I needed to know I'll work on this addition to the app tonight.

Thanks TDW
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-10-12, 11:49 AM   #7
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

There have been a few post lately about flotilla requests.

In SH5 the flotilla request option is there, but it looks different than the other SH games. With SH5 this flotillas are selected by the player in the campaign screen.



The above is the campaign screen from OHIIv1.9 and where you can select the next campaign - this also sets the flotilla.

I can change this page to make more info about the flotillas as well as the campaign that that flotilla would set for you.

If anyone has any suggestions about how this page should look or the flotilla information given - please post
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-09-12, 07:07 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
If TargetType=0 - this is where I think there is an error.
This "0" is saying - target is set by class (name).

Class=BCRenown
Type=102
TargetType=0

So the name is BCRenown and is found in the sea folder ships cfg
This may be enough for the game to be able to id the target, but it also lists the ship type (as with the example above for TargetType=1)

Now if the game also reads the type=102 - this will not match with the type in the ships cfg file. For this ship (Renown) it is type 10

This is either read from the roaster/names.cfg or the Sea/ships names/ships name.cfg - both should match.

So - if your app can check if in campaign folder campaign.cfg has the entry TargetType=0
It should check the ship class(name) from same file (campaign.cfg) and then look in that ships cfg file for unittype - then check that is the same as the Type=x in the campaign.cfg
that's what I needed to know I'll work on this addition to the app tonight.
TheDarkWraith is offline   Reply With Quote
Old 04-12-12, 07:45 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
So - if your app can check if in campaign folder campaign.cfg has the entry TargetType=0
It should check the ship class(name) from same file (campaign.cfg) and then look in that ships cfg file for unittype - then check that is the same as the Type=x in the campaign.cfg
This has been added. I also check all the Type= entries to ensure they are defined (irregardless of TargetType). If the Class= is defined then I also check to ensure this class exists in some country (has to be defined in at least one country). NOTE: the Class= can be defined for those TargetType=1 entries (the app found a couple with this defined). I wonder if this is an error or is ok

See post #1 of the SH5 Validator thread for new version (v2.0.6.0)
TheDarkWraith is offline   Reply With Quote
Old 04-12-12, 08:37 PM   #10
col_Kurtz
XO
 
Join Date: Mar 2008
Posts: 424
Downloads: 341
Uploads: 0
Default

Quote:
Originally Posted by misha1967 View Post
Sorry, Kurtz. The "no beards" mods don't actually exist. They're personal modifications to Stormy's mods I've made. I just had to rename them so I don't get them confused.

However, you can achieve the exact same effect by downloading my "Gillette Patch" from the link that Silent Steel gave you and enabling the parts you need (instructions in the readme file contained in the patch) right after Stormy's DBSM. What it does is the same thing as I did manually in the "no beards" mods, namely to remove the beards from your crew members.

I made the Gillette Patch specifically because other members asked me if I could help them achieve the same effect that I had from manually editing a few files in SDBSM.
Quote:
Originally Posted by flostt View Post
Are you looking for "The Gillete Patch" by Misha1967 ?

It's in this thread (Post No. 804)
http://www.subsim.com/radioroom/show...164552&page=54

EDIT : misha beat me by a few minutes...
For dog sake - Gentlemen! That`s unfair!
Mr Trevally using IRAI 0.32 - ok - one confuse.
Mr sober showing now best ever fog nr 5... I saw nr 6 than - use the stog go. The second confused.
Now, Mr Misha...
And I`m trying the get right order with my mod soup... and what I have now? A lnaguage compilation - SH5 PL - installed german voices, with english-polish names, and now german subtitles... Oh lord, want you buy me a mercedes benz... my father drives porsche... I`m lost - totally lost.

Sorry for this off topic.
Yes, I DL gillette mod too... but there is no any mod called No beards

Thank you very much and happy hunting

Best regards,
Kurtz
__________________


DRM it`s a horror, horror... col. Kurtz Apocalypse Now
WinXP Pro SP3 2x1GB Geil 800Mhz DDR2, ATI 4850 Asus Top, E2160 1.80 Ghz overlocked to 2.79Ghz MoBo Asus P5b
col_Kurtz is offline   Reply With Quote
Old 04-13-12, 07:26 AM   #11
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
This has been added. I also check all the Type= entries to ensure they are defined (irregardless of TargetType). If the Class= is defined then I also check to ensure this class exists in some country (has to be defined in at least one country). NOTE: the Class= can be defined for those TargetType=1 entries (the app found a couple with this defined). I wonder if this is an error or is ok

See post #1 of the SH5 Validator thread for new version (v2.0.6.0)
Thanks TDW - I will check this out this evening
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-14-12, 11:34 AM   #12
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Okay, finally re-tested the dreaded Scapa Flow mission and have some news.

I had restarted my career and emptied the my documents/SH 5 folder, like Pedrobas suggested (i'm using modified version of the MMM 0.5). I also had the new patch applied.

So when I was entering the Scapa area, I had a CTD. It happened just like before. So I loaded and continued on, didn't crash anymore (just like before). But again, when the torpedoes closed on the BB, CTD. Tried many times but no luck. Once I fired only one torpedo and it didn't crash, but ofcourse I couldn't sink the ship that way. I could see that ships reacted, they turned on the search lights and I think I saw some destroyers starting engines.

I followed Mishas good example and disabled IRAI temporarily (actually I added the stock ship scripts over my mod soup, ship.aix and so on) and tried again, and hooray, all problems were gone! I could watch in camera mode how the torpedoes hit the Battleship and exploded without any hiccups. Tried this several times and everything worked. So, I think the problem must be connected to IRAI. Some part of the ship scripts is causing the crash I think.

EDIT:

Before installing the MMM, I didn't have problems in Scapa Flow. But MMM uses the same version of IRAI that I had before, so there is probably something happened in Scapa Flow updates that causes problems with IRAI.
Rongel is offline   Reply With Quote
Old 04-14-12, 11:47 AM   #13
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by Rongel View Post
Okay, finally re-tested the dreaded Scapa Flow mission and have some news.

I had restarted my career and emptied the my documents/SH 5 folder, like Pedrobas suggested (i'm using modified version of the MMM 0.5). I also had the new patch applied.

So when I was entering the Scapa area, I had a CTD. It happened just like before. So I loaded and continued on, didn't crash anymore (just like before). But again, when the torpedoes closed on the BB, CTD. Tried many times but no luck. Once I fired only one torpedo and it didn't crash, but ofcourse I couldn't sink the ship that way. I could see that ships reacted, they turned on the search lights and I think I saw some destroyers starting engines.

I followed Mishas good example and disabled IRAI temporarily (actually I added the stock ship scripts over my mod soup, ship.aix and so on) and tried again, and hooray, all problems were gone! I could watch in camera mode how the torpedoes hit the Battleship and exploded without any hiccups. Tried this several times and everything worked. So, I think the problem must be connected to IRAI. Some part of the ship scripts is causing the crash I think.
Thanks Rongel

Did removing IRAI fix the ctd when you enter scapa too?

I'm sorry I can't test this myself (making Op Monsun, so can't add and remove mods), but could you try opening TotalGermany campaign with ME2 and changing the BB from docked=true to docked=false and test again with IRAI on?

It could be to do with ship state - But when I have posted test missions before - docked BBs could be hit with no ctds (not sure how many people tested this)
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Reply

Tags
awesome, campaign, graf zeppelin, harbour, new bases, new ships, ohii

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 12:50 AM.


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