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


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