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 10-29-10, 05:52 AM   #1
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

C:\Ubisoft\Silent Hunter 5\data\Scripts\Menu\Page CampaignSelection .
THE_MASK is offline   Reply With Quote
Old 10-29-10, 06:59 AM   #2
elanaiba
Ace of the Deep
 
Join Date: Mar 2005
Location: Bucharest, Romania
Posts: 1,056
Downloads: 3
Uploads: 3
Default

Magnum... the "videos" are just animations running on the maps... simply scripted.

See Tutorial.cfg and MissionBriefingText.tsr in each campaign folder.
__________________
With strength I burn...

elanaiba is offline   Reply With Quote
Old 10-29-10, 07:45 AM   #3
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Quote:
Originally Posted by sober View Post
C:\Ubisoft\Silent Hunter 5\data\Scripts\Menu\Page CampaignSelection .
All I can say is...
Thank you Sober.

Quote:
Originally Posted by elanaiba View Post
Magnum... the "videos" are just animations running on the maps... simply scripted.

See Tutorial.cfg and MissionBriefingText.tsr in each campaign folder.
So.. the campaign videos are stored in .ogg format? Thought thats used only for sound. I ask because I see something like SoundId=/Speech/HarborKMO/Normal/MB_HA_KMO_D13.ogg in the tutorial.cfg. I supose this is the campaign briefing what we see on the mission map when we talk with the officer in the bunker. Of course, for a new campaign I cannot provide a voice briefing so I will need to separate the visual part from the voice part... damn, this will be harder than I thought, fun over :|
Zedi is offline   Reply With Quote
Old 10-29-10, 07:47 AM   #4
elanaiba
Ace of the Deep
 
Join Date: Mar 2005
Location: Bucharest, Romania
Posts: 1,056
Downloads: 3
Uploads: 3
Default

There are no pre-rendered videos just scripted animations that move the camera, show this or that item/icon on the map, etc. ogg's are just the sound - the voiceover.

So its easy to script something new, just look in the tutorial.cfg
__________________
With strength I burn...

elanaiba is offline   Reply With Quote
Old 10-29-10, 08:19 AM   #5
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Ah.. so actually the tutorial is the script file that control the camera movement on the map. That's good news, thank's for the info.

Hum.. step by step, this will eventually work, it just need a LOT of time to set it up. In the meantime I managed to make the link working on the campaign selector.. for me this is already a major breakthrough. Thanks again guys!
Zedi is offline   Reply With Quote
Old 10-29-10, 10:00 AM   #6
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

With green, original script lines from Page CampaignSelection.py
With yellow, the new added campaign.

BlackMayNode = BlackPitNode.AddLink( Campaign( "BlackMay43", 9,
PageCampaignSelection_SelectionGroup_CampaignTree_ BlackMay ),
PageCampaignSelection_SelectionGroup_CampaignTree_ AirGap_BlackMay )
DistantWatersNode.AddLink( BlackMayNode,
PageCampaignSelection_SelectionGroup_CampaignTree_ DistantWaters_BlackMay )
ArcticConvoyNode.AddLink( BlackMayNode,
PageCampaignSelection_SelectionGroup_CampaignTree_ ArcticConvoys_BlackMay
)

OpenHorizonNode = OpenHorizonNode.AddLink( Campaign( "OpenHorizon43", 10,
PageCampaignSelection_SelectionGroup_CampaignTree_ OpenHorizon ),
PageCampaignSelection_SelectionGroup_CampaignTree_ AirGap_OpenHorizon )



Result:



Any help appreciated.
Zedi is offline   Reply With Quote
Old 10-29-10, 10:24 AM   #7
Obelix
Seasoned Skipper
 
Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
Default

So, perhaps you need to make these data in Page CampaignSelection.ini. Perhaps the script complains of the absence of these data in the ini-file.
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
Obelix is offline   Reply With Quote
Old 10-29-10, 11:48 AM   #8
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

You have a point.. I forgot to set up the values for the campaign description map .dds, there was MatFlags=0x9 instead of MatFlags=0x10, so the game had no clue where he can find the missing map. I corrected these values but I still got the error.

I suppose is no way to make it work considering what Elanaiba wrote here :

Quote:
There shouldn't be any problem extending the campaign/changing the campaigns, its just the campaign selection screen that is more hardcoded than we'd have wanted.

So the solution would be to extend one of the existing campaigns - for example take the first campaign and make it 1939-1943 ... or extend Black May up to the war's end.
That just sucks
Zedi is offline   Reply With Quote
Old 10-29-10, 01:13 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Magnum View Post
With green, original script lines from Page CampaignSelection.py
With yellow, the new added campaign.

BlackMayNode = BlackPitNode.AddLink( Campaign( "BlackMay43", 9,
PageCampaignSelection_SelectionGroup_CampaignTree_ BlackMay ),
PageCampaignSelection_SelectionGroup_CampaignTree_ AirGap_BlackMay )
DistantWatersNode.AddLink( BlackMayNode,
PageCampaignSelection_SelectionGroup_CampaignTree_ DistantWaters_BlackMay )
ArcticConvoyNode.AddLink( BlackMayNode,
PageCampaignSelection_SelectionGroup_CampaignTree_ ArcticConvoys_BlackMay )

OpenHorizonNode = OpenHorizonNode.AddLink( Campaign( "OpenHorizon43", 10,
PageCampaignSelection_SelectionGroup_CampaignTree_ OpenHorizon ),
PageCampaignSelection_SelectionGroup_CampaignTree_ AirGap_OpenHorizon )


Result:



Any help appreciated.
OpenHorizonNode is trying to assign itself. But more importantly where is OpenHorizonNode defined? It has to be a menu item somewhere in a Page x.ini file.
TheDarkWraith is offline   Reply With Quote
Old 10-29-10, 01:37 PM   #10
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Quote:
Originally Posted by TheDarkWraith View Post
OpenHorizonNode is trying to assign itself. But more importantly where is OpenHorizonNode defined? It has to be a menu item somewhere in a Page x.ini file.
In Page CampaignSelection.ini from data/Menu/Pages That file looks oke now, had the error with the MatFlags set to 0x9 intead of 0x10 .. 10 means the new campaign added... but is fixed now. Still, I got the same phyton error when starting a new career.

Here is a download link with the modifications I did so far, if any1 else is interested. Installed with JSGME will add the new campaign on the campaign selection screen, but soon as you start a new career, the game will freeze and will give you the error mentioned earlier.

In the meantime I found many things related to the campaign in the SimData.dll from the root folder. I suppose playing with the dll file is illegal, right?
Zedi is offline   Reply With Quote
Reply

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 01:03 PM.


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.