View Full Version : [TEC] The Campaign .
THE_MASK
10-28-10, 12:49 AM
[TEC] The Campaign . Is it easier to add to the campaign in SH5 because the war is divided into campaigns . Instead of one person doing the whole game could we have a heap of people adding in lots of new folders like you make a new mission . For instance someone could add a scapa folder in the Total_Germany folder . Just a thought .
I'm not sure what are you sayin here, but if is [TEC] .. I need some tec advice from the more experimented moders regarding the campaign.
I managed to extend the campaign until 1945, but I cannot figure out where the heck are stored the videos for each campaign (when you select the missions in the bunker) and also why I can't select the new campaign on the campaign selection screen. Also, the highlight halo and campaign name is not show up even if I made the modifications directly in the page file. Is this part hardcoded?
http://farm5.static.flickr.com/4012/5125403046_8ecbfda812_b.jpg
Captain Can
10-29-10, 02:26 AM
hello guys.
Wolfling04 is already trying to extend campaign.you may wanna check his thread out. (http://www.subsim.com/radioroom/showthread.php?t=174883)
THE_MASK
10-29-10, 03:09 AM
Is it all done with the mission editor 2 ?
Is it all done with the mission editor 2 ?
Mostly. What I did was to copy the Black May folder and renamed all the files in it with the new name. Of course I edited these files and changed the name with the new one. Also checked it with the editor and all seems to be ok. The campaign selector had to be edited with the Menu editor and I also directly in the page ini file. I did the same there, copy and rename the Black May entry and renamed it with the new name.
What I miss there is the trigger to the campaign itself, I don't see any link nor description to the campaigns in the page files, only the path to the thumbnail and the coordinates ... this part is solved as you can see in the screenie above. Regarding the campaign movies, I searched for days for any clue regarding their location or how are they accessed but no luck so far.
What I have now is this ... the new campaign can be played after Black May time limit ends, but the main problem is that it cannot be selected on the campaign selection menu. So if I meet all the requirement for Black May, game over. If not, game will continue and the new missions from the new campaign will show up on the map. Actually, I got the same result as Wolfling04 so far.
So thats why I think this part is hardcoded, maybe because they wanna lock the game and the 43-45 part keep it for a possible addon ? :hmmm: Maybe a more experienced moder can confirm or not this theory... I'm out of solutions and completely stuck on it.
THE_MASK
10-29-10, 05:52 AM
C:\Ubisoft\Silent Hunter 5\data\Scripts\Menu\Page CampaignSelection .
elanaiba
10-29-10, 06:59 AM
Magnum... the "videos" are just animations running on the maps... simply scripted.
See Tutorial.cfg and MissionBriefingText.tsr in each campaign folder.
C:\Ubisoft\Silent Hunter 5\data\Scripts\Menu\Page CampaignSelection .
All I can say is... :damn:
Thank you Sober.
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 :|
elanaiba
10-29-10, 07:47 AM
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
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!
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:
http://farm5.static.flickr.com/4087/5125588121_513680c955.jpg
Any help appreciated.
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.
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 (http://www.subsim.com/radioroom//showpost.php?p=1524339&postcount=5) :
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 :(
TheDarkWraith
10-29-10, 11:53 AM
I think you just need to edit the menu items and add another for another campaign and edit/add the necessary scripting for it.
I think you just need to edit the menu items and add another for another campaign and edit/add the necessary scripting for it.
That's exactly what I did, but I cannot pass the error posted in the image above.
I think the only solution is what Elanaiba said... edit Black May and extend it until war end. Then try to add more and more missions as Sober said or just let it go and we can play it in SH3 style.. just go out and patrol. So thats what I will do next.
TheDarkWraith
10-29-10, 01:13 PM
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:
http://farm5.static.flickr.com/4087/5125588121_513680c955.jpg
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.
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 (http://www.zumodrive.com/share/88iJOTZhN2) 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?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.