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

Closed Thread
 
Thread Tools Display Modes
Old 03-05-10, 08:55 PM   #1
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
I would like to have the SH3 interface also BUT since the devs already coded in the scripts the use of the SH4 interface it was rather easy to implement this. Now to implement an SH3 interface could probably be done but you have A LOT of coding to do in rewriting/adding scripts. That alone would be close to a nightmare just from looking at the scripts they made to use the SH4 interface. Maybe if the devs released all the 'keywords' that they used and what the definitions of those keywords are (i.e. StartAnimation( MenuItemWrapper.AnimationTypes.Height, FinalValue, DurationInSeconds ) - give me a definition of how this function works) it would be easier.
Scripts? What scripts? For SH4 WHERE?! HOW?!!! Can you make a tutorial?!
karamazovnew is offline  
Old 03-05-10, 09:02 PM   #2
UrPeaceKeeper
Helmsman
 
Join Date: Apr 2005
Posts: 106
Downloads: 45
Uploads: 0
Default

Quote:
Originally Posted by karamazovnew View Post
Scripts? What scripts? For SH4 WHERE?! HOW?!!! Can you make a tutorial?!
SH4 doesnt use scripts that are easy to find anyway. I believe they are all pretty much hardcoded in SH4... in SH5 the scripts are in seperate files. I believe this is what Ubi meant when they said the game would be more "Mod friendly" as scripting opens the game up for a whole bunch of new stuff. Dont believe me, check out some old popular games like Half Life that use script files... that game is a mod heaven, and dare I say one of the first and best games to be modded to death.

EDIT for clarity: This mod stems from using the old SH4 user interface picture files and the new UI. When Ubisoft released this game they left the SH4 file names there and the folders Identical. what they DID do was they took all of the unused .dds (texture files, think .bmp but in a different format) and made them transparant (Transparant file backgrounds for .gif files (smilies are a good example) and .jpg files) so when the game calls up the .dds file for the UI in SH5 it shows none of the old UI but only the new UI. What I stumbled upon was the fact that all they did was make the .dds files transparant. When I copied over from SH4, the UI files into SH5 it rendered the UI (admitedly not completely) as was captured by this famous screen:



What then happened was TheDarkWraith figured out how to bring the rest of the buttons back and then streamlined the rest of the new UI. Basically it was through my revelation that TheDarkWraith was able to recreate the SH4 UI for us to use. My attempts at messing and playing in the page layout.ini files turned out to be an utter failure as with the scripting files. In the time it took me to realize one failure, TheDarkWraith was already done with the majority of the UI (infact he had ported over the entire old UI by the time I figured out the fuel/CO2/Compressed Air/Battery guage) so I gave up to search for the remainder of the files for the TDC and UZO. The TDC files are all 100% intact, it's a matter of scripting it's functions (dial movements,etc) and calling the scripting file to get the classic TDC up. Unfortunately, as TheDarkWraith is findingout, there are numerous scripting commands that are not defined (Tsk tsk Ubi devs for not defining their variables and custom functions in the script files!).

As with everything, small steps are taken through accidental discovery (as with my UI discovery).

Hopefully that clarifies what has happened with this mod

Last edited by UrPeaceKeeper; 03-05-10 at 10:15 PM.
UrPeaceKeeper is offline  
Old 03-05-10, 11:03 PM   #3
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Roger that, thanks for explaining.
Note that it is possible to port in the entire interface, page by page. For example, here's how the ENTIRE periscope screen of SH4 (with Kiub) looks when loaded into the Editor:



However this is a very dirty method that will result in ugly ItemID's. I'm still trying to find an easy and safe method to do this. And don't forget that most items no longer work as they did (for example we now have new torpedo buttons and we no long have the show/hide panel handles).
karamazovnew is offline  
Old 03-06-10, 02:22 AM   #4
Vishari
Nub
 
Join Date: Mar 2010
Posts: 2
Downloads: 1
Uploads: 0
Default

Hey guys.

Just want to start off by saying thank you for modding this game. It's a good thing subsim has dedicated simulation fans out there offering their time to help fix things to the way we all want them.

I seem to be stuck however: I've tried loading this mod several times, using the JSGME and no matter what I can't seem to get it to work. I've tried bringing the 'data' folder to my 'MODS' folder in c:\ubisoft\Silent Hunter 5 directory and tried a combination of enabling just the 'data' folder with the 'NEWUI...etc' folder and no matter what i try it never seems to put the UI in when i load up my game.

the frustrating thing is the solution is probably right in front of me yet I can't seem to figure it out haha.

anyone's help would be appreciated

thanks again for your hard work TheDarkWraith!
Vishari is offline  
Old 03-06-10, 02:29 AM   #5
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,381
Downloads: 488
Uploads: 11
Default

Quote:
Originally Posted by Vishari View Post
I seem to be stuck however: I've tried loading this mod several times, using the JSGME and no matter what I can't seem to get it to work.
Thats because he didn't really zip it with the noob in mind. A minor oversight on his part i guess.


In the future if you are ever confused with the way someone zipped their mod... just do this:
1. Navigate into the zip file till you see a "data" folder.
3. Then go back one level
4. This is the folder you need to drop drag and drop into your MODS folder. In this case it's the folder named "For Mods Folder".
5. If you dont like the name it has, change it to something more suitable.

Also:
If the only thing contained in a zip file is a data folder.. you need to make your own folder in the MODS folder, give it a name for the mod.. and then drop the "data" folder into it.


The Structure is like this:

\Silent Hunter 5\MODS\Name of Mod\data
gutted is offline  
Old 03-06-10, 10:03 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gutted View Post
Thats because he didn't really zip it with the noob in mind. A minor oversight on his part i guess.


In the future if you are ever confused with the way someone zipped their mod... just do this:
1. Navigate into the zip file till you see a "data" folder.
3. Then go back one level
4. This is the folder you need to drop drag and drop into your MODS folder. In this case it's the folder named "For Mods Folder".
5. If you dont like the name it has, change it to something more suitable.

Also:
If the only thing contained in a zip file is a data folder.. you need to make your own folder in the MODS folder, give it a name for the mod.. and then drop the "data" folder into it.


The Structure is like this:

\Silent Hunter 5\MODS\Name of Mod\data
guys I messed up with the folder structure in the zip file. I see it's been hard for new people that aren't familiar with JSGME to use because of my error. The folder in my zip file 'for_MODS_folder' should have another folder under it - the name of the mod AND then under that the folder \data. I'll correct my uploaded zip files to reflect this change. I'll also update their readme text files to reflect this change.
TheDarkWraith is offline  
Old 03-06-10, 11:38 AM   #7
Vishari
Nub
 
Join Date: Mar 2010
Posts: 2
Downloads: 1
Uploads: 0
Default

Thanks for the help, got it working now!
Vishari is offline  
Old 03-06-10, 07:24 PM   #8
UberMatz
Sailor man
 
Join Date: Jan 2006
Location: Fort Worth, Texas
Posts: 50
Downloads: 21
Uploads: 0
Default

Quote:
Originally Posted by karamazovnew View Post
Roger that, thanks for explaining.
Note that it is possible to port in the entire interface, page by page. For example, here's how the ENTIRE periscope screen of SH4 (with Kiub) looks when loaded into the Editor:



However this is a very dirty method that will result in ugly ItemID's. I'm still trying to find an easy and safe method to do this. And don't forget that most items no longer work as they did (for example we now have new torpedo buttons and we no long have the show/hide panel handles).
If it comes to pass that this makes it's way into a working mod... I'll have to take a shower!!!

I'll keep my fingers crossed for you guys!

UberMatz
UberMatz is offline  
Old 03-06-10, 07:26 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by UberMatz View Post
If it comes to pass that this makes it's way into a working mod... I'll have to take a shower!!!

I'll keep my fingers crossed for you guys!

UberMatz
working on it......along with other things.....
TheDarkWraith is offline  
Old 03-06-10, 07:46 PM   #10
UberMatz
Sailor man
 
Join Date: Jan 2006
Location: Fort Worth, Texas
Posts: 50
Downloads: 21
Uploads: 0
Default

I'm "Modding illiterate", but I'm a photographer and work all the time in Photoshop. If there's anything I can assist with along the way, don't hesitate to ask!!!

UberMatz
UberMatz is offline  
Old 03-06-10, 07:49 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by UberMatz View Post
I'm "Modding illiterate", but I'm a photographer and work all the time in Photoshop. If there's anything I can assist with along the way, don't hesitate to ask!!!

UberMatz
Photoshop CS4 or CS5? I'll keep you in mind then.....
TheDarkWraith is offline  
Old 03-06-10, 02:45 AM   #12
Highbury
Ace of the Deep
 
Join Date: Oct 2005
Location: 51.557, -0.102
Posts: 1,271
Downloads: 177
Uploads: 0
Default

I noticed something interesting tonight using this mod, I haven't seen this mentioned. Sorry if it has and I missed it.

Using the SH4 button to go to Battle Stations, and using the XO ability seem to be coded differently in the game. I get a different icon and different discription for each. Also I can have both active at the same time:



Is there any difference in the code between the two?

It looks to me like the old, NON-RPG abilities are still there. Maybe all the new crap can be modded out and replaced with the old.
Highbury is offline  
Old 03-06-10, 03:02 AM   #13
CCIP
Navy Seal
 
Join Date: Apr 2005
Location: Waterloo, Canada
Posts: 8,430
Downloads: 29
Uploads: 2


Default

Yes they are. I had to remove those shortcuts from my key mod since I wasn't sure if they were working (my hunch: not. The working ones are the RPG ones).
__________________

There are only forty people in the world and five of them are hamburgers.
-Don Van Vliet
(aka Captain Beefheart)
CCIP is offline  
Old 03-06-10, 03:34 AM   #14
maerean_m
Captain
 
Join Date: Mar 2007
Location: Bucharest, Romania
Posts: 529
Downloads: 0
Uploads: 0
Default

I'll be posting useful information about modding SH5 in this (more generic) thread so everybody can read it. Your questions are welcomed.
__________________
Kilroy was here
maerean_m is offline  
Closed Thread

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 03:32 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.