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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-09-07, 05:17 PM   #1
Doolittle81
Commodore
 
Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
Default Batch program for movies

Is it possible for an expert Modder to write a batch program so that several movies could be placed in the Silent Hunter\Data\Movies\Intro folder (by default that folder has two movies, "Logo.wmv" and Intro.wmv") so that when one starts up SH4, an Intro movie would be selected at random from all those in the Folder, rather than seeing (or ESCaping/skipping) the same movie over and over again?
__________________
Flight Sim Movies
..............................................
.........................View "Faith, Hope, and Charity" movie
Doolittle81 is offline   Reply With Quote
Old 12-11-07, 02:01 AM   #2
Doolittle81
Commodore
 
Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
Default

Thinking it over, it seems that a batch program could be set up to run before you starts SH4...and the batch program would select at random one of the Intro movies from the Data\Movies\Intro folder...then "link" to run SH4 (SH4.exe), and the randomly selected movie would play. I'd just like to get some feedback from some expert on whether that approach would work. I've not written a batch program in the last 15 years...
__________________
Flight Sim Movies
..............................................
.........................View "Faith, Hope, and Charity" movie
Doolittle81 is offline   Reply With Quote
Old 12-11-07, 03:18 PM   #3
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Your idea sounds a lot like my Girl In Every Port application. I could modify it to do what you are looking for but with movies instead of pictures. The only problem I see would be finding enough intro movies to make it worth doing programmatically.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 12-11-07, 04:41 PM   #4
Doolittle81
Commodore
 
Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Your idea sounds a lot like my Girl In Every Port application. I could modify it to do what you are looking for but with movies instead of pictures. The only problem I see would be finding enough intro movies to make it worth doing programmatically.
Yes, GIEP was what got me to thinking about this.
[[[ BTW, while I am at it, I haven't gotten GIEP to work for me. I thought I correctly followed the installation instructions, and set Hot Key as CTRL-ALT-G and run minimized. When I start SH4, go to career, start new career, at what point should I use the Hot Key? ...I've tried right after I get my orders to report to Pearl, before I hit the Proceed button, but when I get to the office, I have the default captain's pic showing.
I've tried starting Giep before I start SH4, but I get an error message saying "error copying picture into game". I've tried starting SH4 and then Alt-ESC and then running Giep from desktop shortcut but I get the same error. Any ideas what i am doing wrong? ]]]



As for the "Movie batch Mod", I can't set a timeline yet, but I have a very good lead on getting a lot of WWII sub footage such as the 1950's "Silent Service" TV series, and excerpts of other Hollywoodized dramatic footage are available. My concept would be to prepare a set of 2-3 minute long clips which could be put in a folder for random selection. If I were to create 15-20 of such clips, that might provide a good bit of variety upon starting SH4...enough to get one's 'immersion-adrenaline' pumping before jumping into the game.

It would be a sizable initial download, maybe 300MB initially, but I could add movie clips a few at a time afterwards as I produce them. Eventually, if there is interest, I could write a tutorial on how to make the clips and others might want to produce some of their own to drop into the "Random" Folder and/or offer for downloading.

This is a long term project...merely in its concept forumulation stage at the moment.... Therefore my question about the feasibliity of batch programming.
__________________
Flight Sim Movies
..............................................
.........................View "Faith, Hope, and Charity" movie
Doolittle81 is offline   Reply With Quote
Old 12-11-07, 05:22 PM   #5
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Easy part first I don't see any reason why exactly the same logic as GIEP couldn't be used to accomplish what you're trying to do. It's just going to be a matter of using a different folder for the movies and me changing the code in GIEP to look for the .wmv file extension rather than .tga. Of course, because of the size of the files, it will take a little longer to copy the files into the appropriate folder.

Now, on to the GIEP problem. It sounds like you have an installation problem. Both GirlInEveryPort.exe and the Captain'sGirls folder should be in the same folder as the SH4.exe. In other words, your install should look something like this



If that isn't the problem, let me know and we'll get it right.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Reply

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 10:38 AM.


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.