View Full Version : [REL] Gramophone SongRandomizer
jimimadrid
04-12-07, 04:38 AM
This is for all people, who loved to listen to their gramophone during the long patrols, but are nerved because of no randomized songs in SH4.
start this little software before sh4. It will randomize all Songs in the data\sound\gramophone Folder. It includes a button to start sh4.
http://img228.imageshack.us/img228/2994/songrandombr9.jpg
Download Link to newer version with limitation to 2000 songs: http://jimimadrid.bplaced.net/Download/SH4_SongRandomizerV1.exe
!!!!!!! Please copy this little program to your sh4 Mainfolder !!!!!!!!!
Because i'm not able to test on different systems, i would like to get information if somebody get problems with the software.
Enjoy it.
CaptainCox
04-12-07, 05:16 AM
Bloody GOOD WORK MAN! :up:
EDIT: just tried it out...I put it in the "MAIN" SH 4 folder right...but get this
http://i10.photobucket.com/albums/a138/CaptainCox/error.jpg
"Run-time error '75':
Path/File access error"
CaptainCox
04-12-07, 05:26 AM
OK my bad! As i am running VISTA I have to run as "Administrator" right klick etc etc. BUT!!! when I hit the SH4 play button in your application, SH4 starts alright but for some reason all the mods in the JSGME are not activated...maybe i am doing this wrong :oops:
CaptainCox
04-12-07, 07:29 AM
Anyone tested this yet :o As i think its a really really net app I would really like it to work, but as I said it somehow blocks out JSGME...maybe its because the way jimimadrid wrote the .exe...
jimimadrid
04-12-07, 07:41 AM
Anyone tested this yet :o As i think its a really really net app I would really like it to work, but as I said it somehow blocks out JSGME...maybe its because the way jimimadrid wrote the .exe...
This is very strange. because the proggie only renames randomized the content of the gramophon folder. After starting sh4 it closes automatically and sh4 starts.
Maybe in vista the proggie does not start sh4 or does not close himself correctly. After starting it, you can try to close it and start sh4 with the normal icon.
CaptainCox
04-12-07, 07:46 AM
:oops: Ahhhhh so ok the songs randomize as soon as you start it? I did not put songs in my folder yet as I thought it did not work :p....will try this right away...hang on!
EDIT! yup that works man! great!. As long as I don't hit the "START SH4" all is ok.
I wonder if its something to do with that program you used to create this...I guess if you point it to start with SH4.exe...maybe it bypasses the JSGME or something...or like you said its a VISTA prob.
Anyhow it works as long as i don't hit that play button. Cheers man!
and sorry for clogging up this thread with a lot of "MY" problems:oops: :oops: :oops:
jimimadrid
04-12-07, 08:02 AM
It's normal VB6. It maybe that the shell command i used, do not work proper on Vista. On my WinXp it works.
I will check this.
letterboy1
04-12-07, 09:55 AM
Heh heh, and all this time I've been bumping up my thread where I was trying to get another renaming program to work. I wish I had seen your thread sooner.
Say, can this program have a hot key so I can randomize before each time I start the Gramophone? Like maybe leave the randomizer running in the background?
jimimadrid
04-12-07, 10:59 AM
Heh heh, and all this time I've been bumping up my thread where I was trying to get another renaming program to work. I wish I had seen your thread sooner.
I wrote this proggie, because i read different threads asking for a randomizer.
Say, can this program have a hot key so I can randomize before each time I start the Gramophone? Like maybe leave the randomizer running in the background?
Sorry, but this is not possible, due that after starting sh4, it restricted the access to his folders. So my programm is not able to change more the songs.
The idea is to start sh4 with my proggie instead of starting sh4 with his icon. So the proggie can first rename the songs and then start sh4.
Sailor Steve
04-12-07, 11:19 AM
More cool stuff! Thanks!:sunny:
letterboy1
04-12-07, 02:04 PM
Thanks Jimimadrid, randomizing once before starting SH4 will do just fine. I appreciate your good work.:)
letterboy1
04-12-07, 04:46 PM
Oops, I got a "path file access error." Could it be because my SH4 main directory is on my "D" drive and not my "C"?
Dustyboats
04-12-07, 10:01 PM
I run plain old XP Pro....but get "Runtime Error 76.......???
jimimadrid
04-13-07, 12:22 AM
1. Please be sure that the proggie is in the SH4 Mainfolder. :down:
2. SH4 should not run in the background with a started game, because of denying access to the sound folder.
(If you are in the MainMenu of SH4, the sound Folder is available, and a randomizing of the songs is possible.:ping:)
http://img201.imageshack.us/img201/6839/song1ex2.jpg
Because of triyng to make this proggie as easy as possible for the different systems,
i have not implemented a check of the installpath of SH4. (no willing to access the registry)
New version, with real failure description instead of Microsofts wonderfully failure numbers :damn:, is available. It's now v1.0.
Pleasy try this version and tell me the failure descriptions - so that we will get a chance to let this proggie run on your systems.
Thanks and sorry for the trouble:roll:
Dustyboats
04-13-07, 05:09 AM
This is for all people, who loved to listen to their gramophone during the long patrols, but are nerved because of no randomized songs in SH4.
start this little software before sh4. It will randomize all Songs in the data\sound\gramophone Folder. It includes a button to start sh4.
http://img228.imageshack.us/img228/2994/songrandombr9.jpg
Download Linkto V1.0: http://www.file-upload.net/download-247480/SongRandomizer.exe.html
!!!!!!! Please copy this little program to your sh4 Mainfolder !!!!!!!!!
Because i'm not able to test on differnt systems, i would like to get information if somebody get problems with the software.
Enjoy it.
Hi Jimini Cricket (not to be flippant! Your input is great.....However I did put item in mMain Folder in My Documents on my Drive "C".....still getting "Runtime Error 76". Please excuse but I havent got a clue what that means! Best Regards....Dusty
unruhly
04-13-07, 12:08 PM
T
!!!!!!! Please copy this little program to your sh4 Mainfolder !!!!!!!!!
Because i'm not able to test on differnt systems, i would like to get information if somebody get problems with the software.
Enjoy it.
Hi Jimini Cricket (not to be flippant! Your input is great.....However I did put item in mMain Folder in My Documents on my Drive "C".....still getting "Runtime Error 76". Please excuse but I havent got a clue what that means! Best Regards....Dusty
Dusty,
I don't think you got the right folder. By "Mainfolder" I'm pretty surehe's refering to:
C:\Program Files\Ubisoft\SilentHunter Wolves of the Pacific\
letterboy1
04-13-07, 05:58 PM
I have the randomizer in the following folder:
D:\Program Files\Ubisoft\Silent Hunter Wolves of the Pacific
I got the following error report:
Failure Nbr 4 -- Description: Access problem due to renaming-Please close SH4
(SH4 is not running)
Oddly enough, the program did randomize my songs anyway.
jimimadrid
04-14-07, 03:00 AM
I have the randomizer in the following folder:
D:\Program Files\Ubisoft\Silent Hunter Wolves of the Pacific
I got the following error report:
Failure Nbr 4 -- Description: Access problem due to renaming-Please close SH4
(SH4 is not running)
Oddly enough, the program did randomize my songs anyway.
Extra for you i have rewrite my proggie and added your sh4-path.
(This will only work for letterboy or all people, who have installed sh4 on the same path as letterboy has done.)
http://www.file-upload.net/download-248411/SongRandomizer.exe.html
Hope it works, because i can not test it.
letterboy1
04-14-07, 05:28 PM
Jimmimadrid, because of your extra effort I'm sorry to report that it still does the same thing. But please do not worry . . . it still works! Thank you so much for this utility because the Gramophone is one of my favorite features. God bless you. :)
TopcatWA
04-15-07, 08:26 AM
:up: I works fine for me. I put it in the main directory as required, made a new shortcut using the songgrandomiser.exe file & naming it SHIV which is not the same as the game execute file name (sh4.exe) & I start the game from there. The songs are reshuffled prior to starting the game using the 'Start SH4' button on the display panel. Great job. Thanks.
I have the randomizer in the following folder:
D:\Program Files\Ubisoft\Silent Hunter Wolves of the Pacific
I got the following error report:
Failure Nbr 4 -- Description: Access problem due to renaming-Please close SH4
I'm experiencing this problem now as well, except in my case the game is installed to my C drive. Any reason why this would be happening?
jimimadrid
07-13-07, 05:52 AM
Sorry, i will be this weekend back at home. Then i will install the 1.3 patch and check your problem.
Sorry, i will be this weekend back at home. Then i will install the 1.3 patch and check your problem.
Never mind it, jimi. I just ran the program again, and now it's working properly. :shifty: Very, very strange, lol.
jimimadrid
07-14-07, 05:04 AM
Hi Luke,
i've checked it and it works correctly.
My Songradomizer insert an randomized number in the filename of the files in the Grammophone Folder .
The SH4 Grammophone then starts the songs with the lowest number.
Unfortunally SH4 once started, denied external File Access on the Grammophone Folder.
Therefore you have first to start the Songrandomizer and press the "START SH4" button on the Songrandomizer Display. This will close the Songrandomizer and start SH4.
PLease do NOT start first SH4 and then the Songrandomizer - this will bring the failure Message "Access Problem......"
I had the same error-message (Failure Nbr 4 -- Description: Access problem due to renaming-Please close SH4), and the problem was the following: Some of the tunes in the grammophone-folder were write-protected.
So make sure that all your music-files in the grammophone-folder are not write-protected (mark all sound-files, right click, choose properties, make sure that the write-protection box is unchecked). That should solve all your problems, provided the randomizer is placed in the correct folder.
Thx to the modder for that great prog that makes the long distances I'm travelling in the Pacific much more bearable
jimimadrid
07-17-07, 12:58 PM
Hi TopCat,
thanks for your research on the access problem. You're right, if the files are writeprotected, my proggie noticed that he get no access to rename the files, and threrefore it brings the failure messagebox.
it's nice to see, that the guys using our mods, also invest their time in helping us to improve our mods.
Thanks
letterboy1
07-17-07, 06:52 PM
Great find! But let me take it one step further, this error also occurs if there are any non-music files present in the Gramophone folder. Doesn't matter if it is write-protected or not. I had renamed my Gramophone_track.wav to Gramophone_track.wav.bak just to save it in case I wanted it back later. The randomizer didn't like my .bak extension and gave the error message. I moved the Gramophone_track.wav.bak file to another place on my HDD and now there are no more error messages. :)
Spadefish
10-02-07, 08:48 PM
Can someone help me with the song randomizer. I'm running Vista and SH4 is installed to C:\Games\Ubisoft\Silent Hunter Wolves of the Pacific. The application is installed in the main SH4 folder. I click on it and the randomizer starts no prob. Click Start SH4, game opens fine, load patrol start gramaphone and I only get the songs that were installed by TMaru. I have .ogg, mp3 and wav files in the gramaphone folder but none play except those few. Thanks for all help in advance.
letterboy1
10-03-07, 10:20 AM
Spadefish, I answered in your other thread.
letterboy1
10-09-07, 05:23 PM
Jimimadrid, is there a 1,000 file limit to your randomizer? When I put exactly one song more than 1,000 I get the following error:
Failure Nbr: 2 -- Description: No access to songs folder-please close SH4
It doesn't matter which file I remove, just as long as I remove one of them so the file count is 1,000 and NOT more. SH4 is not running. As soon as I have 1,000 songs and NOT more, the randomizer works.
Is it possible to increase the file number limit? I'm not complaining; 1,000 songs is plenty, but I'd like to add more if possible. :rock:
letterboy1
10-10-07, 09:30 AM
*Bump*:D
jimimadrid
10-10-07, 11:53 AM
Yes there is a limitation to 1000. I never thought that somebody will get more than 1000 songs for the gramophon.:dead:
I opened it for 2000 songs. I hope this will be enough.:up:
http://files.filefront.com/SongRandomizerexe/;8764 (http://files.filefront.com/SongRandomizerexe/;8764616;/fileinfo.html)
regards
jimimadrid
ReallyDedPoet
10-10-07, 11:54 AM
Yes there is a limitation to 1000. I never thought that somebody will get more than 1000 songs for the gramophon.:dead:
I opened it foe 2000 songs. I hope this will be enough.:up:
http://files.filefront.com/SongRandomizerexe/;8764 (http://files.filefront.com/SongRandomizerexe/;8764616;/fileinfo.html)
regards
jimimadrid
Nice work, great little app. :up:
RDP
letterboy1
10-10-07, 01:29 PM
Yes there is a limitation to 1000. I never thought that somebody will get more than 1000 songs for the gramophon.:dead:
I opened it for 2000 songs. I hope this will be enough.:up:
http://files.filefront.com/SongRandomizerexe/;8764 (http://files.filefront.com/SongRandomizerexe/;8764616;/fileinfo.html)
regards
jimimadrid
Jimimadrid, you da man!!! :) I'll let you know when I get to 2,000.:rotfl:
Seriously, thanks!
works great, exactly what i was looking for :rock:
redlancer
07-28-08, 07:27 PM
Good job!
ReallyDedPoet
07-28-08, 07:53 PM
Welcome to SUBSIM redlancer :yep::up:
RDP
tennozan
07-29-08, 08:25 PM
Thanks for this. It is quite helpful and brings the music to life again.
Lionman
08-19-08, 06:19 PM
Mr.Teddals -
Question -
What is NSM4 Classic?
Is it the song randomiser?
If not is there a link where I can download NSM4 Classic please?
ncorpuz34
10-18-08, 06:37 PM
WernerSobe's "Natural Sinking Mechanics" MOD I believe. A Must have if you're looking for more dynamic and realistic ways you can sink a ship.
http://www.subsim.com/radioroom/showthread.php?t=120269&highlight=natural+sinking+mechanics
http://www.filefront.com/16049431/Sh4GramophoneRandomiser.exe
I didn't want to feel like I was hijacking the idea, but I've been messing around with my own tool (the idea did come from here, but I fancied giving it a quick bash). It uses .NET 3.5, and does roughly the same things except for a few major differences (which I wanted for myself more than anything):
1. Settings are loaded from the registry
2. It should ask for elevation automatically with UAC
3. It allows reordering of tracks (just select a track, move it with the arrows, and click Update)
4. Because of 3 it supports saving and loading of playlists (they're just plain-text filenames, have a look if you want)
I'm not prissy about people using Reflector on it (it was a fun coding exercise as well so it's not too terrible), and I'm happy to supply source to anyone that wants a gander (vs2008 C#). If anyone fancies hosting it instead of on FF go ahead.
Cheers
P.S. If the link isn't up, apologies, I'll fix it soon enough..
fred8615
04-07-10, 08:10 AM
FYI, you can also upload it here for people to download.
http://www.subsim.com/radioroom//downloads.php?do=file&id=1724
Description
------------
Intended as a personal use tool, I've been adding functionality to this in an effort to get it in a state that makes it a viable alternative to the basic gramophone shuffler for SH4 (although it was never my intention to upstage that, just to extend on it, and I'm not a huge fan of VB6). Any bugs and let me know, I'll try and fix them ASAP. It's worth noting that this (due to the registry settings) only works with SH4 for now. If someone wants to grab the registry settings for SH5 (HKLM\Software\Ubisoft\) which holds the path to the main directory I'll update it to cover both (I'd also need to know if the gramophone directory is still in the same place (data\sound\gramophone).
Basic features:
* Allows randomising of all tracks in the gramophone directory with the push of a button
* Reads SH4 path from the registry so can be run from anywhere
* Allows manual editing of the playlist by moving tracks up and down the order of files
* Because of the above, playlists can now be saved and loaded
* Preview buttons allow for playing of tracks in the playlist
* Should request to be elevated when run against UAC (instead of having to specify running it as admin)
Requirements:
* .Net Framework 3.5
* Windows Media Player (for the preview playing, this may require WMP10 so if you have any problems with the preview playing let me know exactly what so that I can try and resolve it)
Future features in order of likelihood to appear (most to least):
* The ability to play a whole playlist (not particularly difficult), which may also entail being able to export playlists to WMP playlists or Winamp playlists
* Proper track management (ie allowing fast switching of the tracks in the store, eg having one list of tracks for 1941, one list for 1942, and one for 1943, and being able to switch between them with ease)
irish1958
04-12-10, 09:06 AM
Great work Shakje; and welcome aboard.
If it not too much trouble, could you make this for SH3 and SH5 also; they both use the same file structure for the gramophone.
I especially like the idea of having different lists for the years.
It's entirely plausible to do it for SH3 and SH5, I can get it done for SH3 quite easily (I'll just have to install it), but I don't own SH5 so I need someone to post the registry key path for me, just do the following (if the registry scares you, I'm sure someone else can do it, so don't worry about it too much):
1. Start menu and click Run
2. Type in regedit and hit ok
3. In the left pane expand HKEY_LOCAL_MACHINE, SOFTWARE, Ubisoft
4. There should be at least one key there (subfolder), for example for SH4 it's SilentHunter4, I need to know the names of the key for SH5.
5. Expand it and there should be another key with a GUID (numbers and letters), click on that and in the right pane just check there's a value called Installation Path (it should appear as soon as you click once on the GUID key. If the structure is any different, or Installation Path isn't there, either screenshot it for me, or let me know if the path is there.
To be absolutely clear, the different folders is quite a lot of work. I'm willing to do it, but it will probably take a month to get done in terms of spare time available :)
Thanks for the feedback!
irish1958
04-12-10, 04:51 PM
I have Windows7 64 bit, and it doesn't follow that path.
When I do a find on the registry, I get different paths, and the information must be in a different form as it doesn't follow your query for Ubisoft or Silent Hunter 5.
jimimadrid
04-23-10, 03:27 PM
I have Windows7 64 bit, and it doesn't follow that path.
When I do a find on the registry, I get different paths, and the information must be in a different form as it doesn't follow your query for Ubisoft or Silent Hunter 5.
I never tried with Win7 64 bit.
I have rewrite the songrandomizer for SH5 -> http://jimimadrid.kilu.de/SilentHunter/SH5_SongRandomizer.zip
themrwho
09-03-10, 08:04 PM
Reviving an old thread because I found this only tonight, had an issue and found the fix, so may others... therefore posting my workaround here. also wanted to thank modders...
[the issue I had]
I didn't notice shakje's tool and was using the first one (jimimadrid's tool). it gave me the nbr error. I moved songs in groups to test, long story short, it was two .WMA files causing trouble. However, I had other WMA files, and they were OK. So this cannot be simply a container format issue.
[workaround]
When I renamed that 2 particular (&problematic) .WMAs to .OGG it worked.
...and thanks....
@jimimadrid,
thanks for the concept and tool
@shakje
thanks for even improving with save'able config feature and track up/down feauture.
Still a great tool, thanks for improving it now i can listen to all the old songs when i'm on patrol
Icalibr8
03-22-14, 11:52 PM
Does anyone know what happened to this mod? I used to have this on my old computer, but it died and I needed to replace it. I click the link, but I get an error message saying that the file cannot be found. Any idea where I can get it? I really liked the program and would like to download it again. Any help anyone can offer would be greatly appreciated.
ReallyDedPoet
03-22-14, 11:56 PM
Is it not in the downloads section? Welcome to SUBSIM by the way : )
ReallyDedPoet
03-23-14, 12:10 AM
Just looked, it's not there. There is another one there, but I never had much luck with it. I'll see if I can find the one you are looking for on my computer.
jimimadrid
03-23-14, 10:53 AM
Does anyone know what happened to this mod? I used to have this on my old computer, but it died and I needed to replace it. I click the link, but I get an error message saying that the file cannot be found. Any idea where I can get it? I really liked the program and would like to download it again. Any help anyone can offer would be greatly appreciated.
Hi,
i have upload the tool again. look at the first post.
Greetz.
jimimadrid
ReallyDedPoet
03-23-14, 12:20 PM
Nice work : )
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.