Possible Script....Splash Screen Cycler.....
#1

Though at one time having come up with a way way back to change music while IN the sim using a simple rcu script....It would be beyond my skills to do the following, yet I'm betting some smart guy here could.

What about a "cycler" for splash screens.......Meaning, sim starts (like for a coop) and you get background1.tga, next time it starts background2.tga, etc. etc. be it unlimited if possible or perhaps even up to 10.....IOW, a script that would select the next splash screen each time, if you have 3 fine, 10 fine, it will with each restart of the sim cycle to the next.

K2
Reply
#2

Well, it would be easy enough if you were happy with "random" each time you start the game, vs. every mission load (which would be better). One potential way to do that is to just create a batch file that goes to each folder and renames the current background.tga to something else, and takes one of the other .tga files that you would put there and names it to the background, then have it actually launch the game. That way, it doesn't actually modify anything in the IL2 engine, but is just a script outside it. Not sure how thats done in windows, but could whip it up on my mac in about 2 min Wink
Reply
#3

I 'd really like a Splash screen recycler...great idea!
Reply
#4

Yes, a very good idea. Beats having to manually change the splashscreen for variation.
Reply
#5

Good idea... I could trie some of those picture changing programs for image rotation
Reply
#6

If someone is interested, I found a little MS-DOS utility that may comes handy:

Code:
RANDFILE:  RANDOMLY CHOOSES A FILE TO COPY
        Copyright (C) 1993 by Zachary G. Ives.  All Rights Reserved

DESCRIPTION

    This program randomly chooses a file from the source file specification
(which should include wildcards), and copies it to the destination filename
given.  It was originally written to randomly choose start-up screens for a
WWIV 4.22 BBS system, but could be used for other tasks which involve
randomly operating on one file.

    Syntax:
        RANDFILE    {source filespec} {destination filename}

    Example:
        RANDFILE  C:\WWIV\ANSI\*.ANS C:\WWIV\GFILES\WELCOME.ANS  

    I hope you find this program useful!

Download: http://www.simtel.net/product.php%5Bid%5...simtel.net

So all we need to do is create a batch file with 2 commands. The first one calls this "RANDFILE" executable and the second one will call the IL-2 executable itself.
I
Reply
#7

Grabbed the little program as suggested by Ark-iyos and it worked, well sort of, it would only rename the background file to BACKGROU.TGA. Also didn't want to play well if there was a background.tga file already there. The good news is that there is a way around all this. Here's what I did.

1. Downloaded the program from link in previous post - extracted to my ...Mods/SplashScreen/Gui folder
2. Open notepad and enter the following;

[code]del background.tga
RANDFILE *.tga background.tga
rename backgrou.tga background.tga
cd G:\Games\IL2Mod\IL-2 Sturmovik 1946\
Reply
#8

[quote="Quelty"]
[code]del background.tga
RANDFILE *.tga background.tga
rename backgrou.tga background.tga
cd G:\Games\IL2Mod\IL-2 Sturmovik 1946\
Reply
#9

About the error in the output name generated by the RANDFILE exsecutable -> This is due to the 8 chars limit that MS-DOS has in file naming.
I.E. "Background" has more than 8 chars so the output is limited to the first 8 letter: "Backgrou"

A little commented version i
Reply
#10

Ok, so I took this basic Idea, based on the random file we have here. I expanded to include all the country mission loadscreens for the campaigns and now my batch file will select a new random mission load screen for every nation at game start up as well.

Next challenge, to get it to change mission load screens between each mission.

Anyone know how?
Reply
#11

able72 Wrote:Ok, so I took this basic Idea, based on the random file we have here. I expanded to include all the country mission loadscreens for the campaigns and now my batch file will select a new random mission load screen for every nation at game start up as well.

Next challenge, to get it to change mission load screens between each mission.

Anyone know how?

Great! So where is the code? Too lazy and not smart enough to do this on my own! LOL!
Reply
#12

able72 Wrote:Next challenge, to get it to change mission load screens between each mission.

Anyone know how?
Maybe it would be possible to have the programme observe the changes in the logfile? The logfile would need to be active though.
Reply
#13

danimalhanke Wrote:
able72 Wrote:Ok, so I took this basic Idea, based on the random file we have here. I expanded to include all the country mission loadscreens for the campaigns and now my batch file will select a new random mission load screen for every nation at game start up as well.

Next challenge, to get it to change mission load screens between each mission.

Anyone know how?

Great! So where is the code? Too lazy and not smart enough to do this on my own! LOL!

Check out here, this is the full mod I put together, including a decent collection of startup screens and mission load screens.

viewtopic.php?t=14050
Reply
#14

Thanks for doing this guys Wink

K2
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)