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 03-05-10, 01:59 AM   #1
Jander
Sailor man
 
Join Date: May 2005
Location: Gleisdorf, Styria, Austria, Europe, Earth
Posts: 48
Downloads: 136
Uploads: 1
Default [REL] Gramophone shuffler

Hi,

Sadly, the gramophone in SH5 still plays the songs in the alphabetical order of the file names.
Thus, I wrote a small java program that will shuffle these files. You can start SH5 using this java program, and then will have a different playing order of the gramophone tracks each time you start SH5.

Download: http://www.subsim.com/radioroom/down...o=file&id=1578

Greetings,
Jander

below, I provide a german version of my posting as many german users asked for mod descriptions in their mother tongue.

---------------------

Deutsch:

Hi,

Leider spielt das Gramophon in SH5 immer noch die mp3s in genau der alphabetischen Reihenfolge, wie sie im Ordner liegen.
Deswegen habe ich ein kleines Java Programm geschrieben, das diese Dateien shufflet, also durcheinanderwürfelt. Ihr könnt SH5 mit diesem Programm starten. Das heisst, ihr startet das Programm, es mischt die Dateien und startet dann SH5. So habt ihr nach jedem SH5-Start eine andere Reihenfolge der Gramophon-Tracks.

Download: http://www.subsim.com/radioroom/down...o=file&id=1578

Gruss,
Jander
__________________
long-time-reader, seldom-poster

Last edited by Jander; 03-09-10 at 01:29 AM.
Jander is offline   Reply With Quote
Old 03-05-10, 02:12 AM   #2
Jander
Sailor man
 
Join Date: May 2005
Location: Gleisdorf, Styria, Austria, Europe, Earth
Posts: 48
Downloads: 136
Uploads: 1
Default

This is the readme for the tool:

This nice little tool will shuffle your gramophone tracks before it starts
Silent Hunter 5. So, you will have a different order of your gramophone tracks
each time you play SH5.

Activate the Mod using JSGME, business as usual.
After the activation, you will find a file called "SH5GramShuffle.bat" in your
SH5 directory (default c:\ubisoft\silent hunter 5, i think). Doubleclick this
file, and it will shuffle your gramophone tracks and afterwards start Silent
Hunter 5 automatically.

To call the program with a desktop icon, right-click on SH5GramShuffle.bat and
choose "create shortcut". A new file called "Shortcut to SH5GramShuffle.bat"
will appear in your SH5 directory. Drag it to your desktop and you are set.
If you want the new link to have the SH5 symbol, right click on it and choose
"Properties" Now, click on "change symbol", and a new window appears. Click on
"Browse" there, navigate to your SH5.exe, mark it and click "ok". You can also
change the text of the icon by making a right click on it and then choose
"Rename".

Now, the icon should look as usual, but when you doubleclick the icon, it should
start the shuffler and then Silent Hunter 5.

WARNING: this program has not be tested with the Steam version of SH5 - i assume
that the way of starting SH5 is different in Steam, so probably my program will
NOT work out of the box with Steam.

NEEDED: Java, at least in version 1.5
if needed, download the newest version here: http://www.java.com/en/

I provided the source code of my program in the support/mods/gramophoneshuffler
directory, just in case anyone is interested in my mediocre style of programming


-----------

Hier das readme für das Tool:

Dieses nette kleine Tool mischt die Gramophon-Tracks und startet danach SH5.
Damit habt ihr jedes mal, wenn ihr SH5 spielt, eine andere Wiedergabereihenfolge
der Gramophon-Tracks.

Aktiviert die Mod wie üblich mit JSGME.
Nach der Aktivierung findet ihr im SH-Verzeichnis (Standard ist
c:\ubisoft\silent hunter 5, glaube ich) die Datei "SH5GramShuffle.bat". Mit
einem Doppelklick auf diese Datei werden eure Gramophon-Tracks neu gemischt und
danach automatisch Silent Hunter 5 gestartet.

Um das Programm per Desktop-Icon zu starten, macht einen Rechtsklick auf
"SH5GramShuffle.bat" im Spielverzeichnis und wählt "Verknüpfung erstellen".
Eine neue Datei namens "Verknüpfung mit SH5GramShuffle.bat" wird in eurem SH5-
Verzeichnis erstellt. Diese könnt ihr nun auf den Desktop ziehen und habt damit
euer Icon. Um das SH5-Bild für dieses Icon zu bekommen, macht einen Rechtsklick
darauf und wählt im Menü "Eigenschaften". Ein neues Fenster geht auf, darin
klickt ihr nun auf "Anderes Symbol" und ein weiteres Fenster geht auf. Dort
klickt ihr auf "Durchsuchen", navigiert zur SH5.exe, markiert sie und klickt
"OK". Ihr könnt auch den Text des Icons verändern, indem ihr es rechtsklickt und
dann "Umbenennen" auswählt.

Nun sollte euer Desktop-Icon aussehen wie gewohnt, aber zuerst den Shuffler und
dann erst SH5 starten.

WARNUNG: dieses Programm wurde nicht mit der Steam-Version von SH5 getestet. Ich
nehme an, dass die Steam-Version anders gestartet wird, daher wird mein Programm
so wie es ist nicht mit der Steam-Version funktionieren.

BENÖTIGT: Java, mindestens in Version 1.5
Die neueste Version könnt ihr hier runterladen: http://www.java.com/en/

Ich habe den Quellcode für mein Programm im Verzeichnis
support/mods/gramophoneshuffler hinterlegt, falls sich irgendjemand für meinen
mittelmässigen Programmierstil interessiert
__________________
long-time-reader, seldom-poster

Last edited by Jander; 03-09-10 at 01:28 AM.
Jander is offline   Reply With Quote
Old 03-05-10, 05:44 AM   #3
Michal788
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Maybe this is also working;

[Cmd466]
Name=Gramophone_play
Contexts=1
Key0=0x47,s,""
MnID=0x3F210002
;shift+g

[Cmd467]
Name=Gramophone_stop
Contexts=1
Key0=0x4B,s,""
MnID=0x3F210004
;shift+k

[Cmd468]
Name=Gramophone_prev
Contexts=1
Key0=0x48,s,""
MnID=0x3F210003
;shift+h

[Cmd469]
Name=Gramophone_next
Contexts=1
Key0=0x4A,s,""
MnID=0x3F210005
;shift+j
  Reply With Quote
Old 03-05-10, 07:06 AM   #4
Will-Rommel
Chief
 
Join Date: Jan 2008
Posts: 320
Downloads: 81
Uploads: 0
Default

Yes it seems to work all good.

Just need to find where the volume is hided for the gramophone now. It's playing quite low.
__________________
-Fighting is a lifestyle-
Will-Rommel is offline   Reply With Quote
Old 03-05-10, 07:23 AM   #5
Michal788
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Is it possible to make a botton/picture or a model from the radio and gramophone?
  Reply With Quote
Old 03-09-10, 01:30 AM   #6
Jander
Sailor man
 
Join Date: May 2005
Location: Gleisdorf, Styria, Austria, Europe, Earth
Posts: 48
Downloads: 136
Uploads: 1
Default

first version released, see first and second post.

Now, if anyone could tell me how to change the thread title from [WIP] to [REL], I just can't find it...
__________________
long-time-reader, seldom-poster
Jander is offline   Reply With Quote
Old 03-09-10, 02:54 AM   #7
GFC Christian
Seaman
 
Join Date: Mar 2010
Location: Germany
Posts: 37
Downloads: 11
Uploads: 0
Default

Is there a way to increase/decrease the volume while playing ? Till up to now I was not able to find out what settings effect the volume of the gramophone and I also could not find any corresponding buttons in command.cfg.

Thanks, Christian
GFC Christian is offline   Reply With Quote
Old 03-09-10, 03:13 AM   #8
Sgtmonkeynads
Ships Secretary
 
Sgtmonkeynads's Avatar
 
Join Date: Apr 2009
Location: MilesCity Montana
Posts: 583
Downloads: 614
Uploads: 0
Default

You used to have to press esc. to change the Music Volume in the Options menu in order to adjust the volume of the radio and gramaphone.
__________________
Just help someone.....it makes a difference
Sgtmonkeynads is offline   Reply With Quote
Old 03-09-10, 03:41 AM   #9
GFC Christian
Seaman
 
Join Date: Mar 2010
Location: Germany
Posts: 37
Downloads: 11
Uploads: 0
Default

Quote:
Originally Posted by Sgtmonkeynads View Post
You used to have to press esc. to change the Music Volume in the Options menu in order to adjust the volume of the radio and gramaphone.
hmmmm.....not in my copy of SH V.
GFC Christian is offline   Reply With Quote
Old 03-09-10, 05:50 AM   #10
Sgtmonkeynads
Ships Secretary
 
Sgtmonkeynads's Avatar
 
Join Date: Apr 2009
Location: MilesCity Montana
Posts: 583
Downloads: 614
Uploads: 0
Default

I'm sorrry, I was taliking about sh3 and 4. Should be the same. I have not tried it yet though.
__________________
Just help someone.....it makes a difference
Sgtmonkeynads is offline   Reply With Quote
Old 03-09-10, 05:56 AM   #11
capthelm
Captain
 
Join Date: Jan 2004
Posts: 522
Downloads: 32
Uploads: 0
Default

mind the gramophone would not work in heavy weather.
__________________

"One torpedo ... one ship"
my SH5 lighting mod http://www.youtube.com/watch?v=LkM5k8SXpWo
my SH5 audio mod http://www.youtube.com/watch?v=CIN5RHeL8B8
capthelm is offline   Reply With Quote
Old 03-10-10, 03:37 AM   #12
Baleur
A-ganger
 
Join Date: Mar 2010
Posts: 78
Downloads: 22
Uploads: 0
Default

Sigh, is there anyway to change the gramophone or radio volume yet?
And why use the gramophone instead of the radio, since the radio already randomizes the music (unless im mistaken)? Some other differences?
Thanks <3

Edit: HIGHER RADIO VOLUME -> Set "VolumeRadio=200" in main.cfg in your user folder (for example C:\Users\Baleur\Documents\SH5\data\cfg)
That was easy :P It does reset back to 100 if you enter sound options ingame, possibly just any options window, so i'd suggest making it read-only.

Last edited by Baleur; 03-10-10 at 03:47 AM.
Baleur is offline   Reply With Quote
Old 03-16-10, 01:07 AM   #13
Jander
Sailor man
 
Join Date: May 2005
Location: Gleisdorf, Styria, Austria, Europe, Earth
Posts: 48
Downloads: 136
Uploads: 1
Default

sorry, download was broken.
don't know what happened, but download is fixed now
__________________
long-time-reader, seldom-poster
Jander is offline   Reply With Quote
Old 03-19-10, 05:43 AM   #14
HansLanda
Swabbie
 
Join Date: Mar 2010
Posts: 11
Downloads: 47
Uploads: 0
Default

Thanks for the Mod, just the thing I was looking for

Also there is good content for the gramophone here (.. SH3 thread):
http://www.subsim.com/radioroom/show...49&postcount=1
HansLanda is offline   Reply With Quote
Reply


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 02:01 AM.


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