I've been looking for a simple way of changing startup screens, randomly if possible. I haven't yet had much success finding anything simple ... maybe this one will be the winning ticket.
I see that this randomizer is predicated on having separate folders for each startup screen and that startup screens need to have the same name.
I was wondering if there isn't any method that randomizes the background0_ru.mat file by altering the one line that chooses which startup screen is chosen, namely this line:
TextureName background.tga
I choose different startup screens by simply changing the filename like this
TextureName background_Pacific_84.tga
or
TextureName background_Air_War_13.tga
etc etc ...
Since I have no knowledge whatsoever in programming, even simple things, I can't come up with anything that would randomize one line in the .mat file.
Sounds good but as far as I know the sim looks for Background, we would have to figure out how to specify what it looks for.
The sim may look for 'background.tga' as the default, but you can edit the file 'background0_ru.mat' and then the sim will look for whatever .tga file is specified in 'background0_ru.mat'.
Meaning that some sort of batch file that changes the specific line in 'background0_ru.mat' which determines which background is chosen, is all that is needed to randomize backgrounds on startup.
Here is the contents:
[ClassInfo]
ClassName TMaterial
[Layer0]
TextureName background.tga
tfNoWriteZ 1
tfNoDegradation 1
tfMinLinear 1
tfMagLinear 1
if I wish to use a different background (say 'background_Pacific_75.tga), I would for instance change it to:
[ClassInfo]
ClassName TMaterial
[Layer0]
TextureName background_Pacific_75.tga
tfNoWriteZ 1
tfNoDegradation 1
tfMinLinear 1
tfMagLinear 1
That's all that is necessary, one line edited.
If I knew anything about writing batch files, I'd try writing one myself. But I'm good for nothing but graphic manipulating ...