Random picture in menu
Random picture in menu
Hi, I'd like to modify LoadMenu in menu.rfa, so that it would display a randomly chosen picture from a given path within the same archive. The pictures reside in /menu/loadpics/ and are named 01.tga through 10.tga. I want the game to take one picture at random and display it each time a map is loaded. Is it at all possible?
dzn.battlefield.pl - my Bf1942 modding website
Re: Random picture in menu
When you say load menu I guess you mean load screen?
You can certainly use a bik for a video with a few frames but no idea if a random static pic is possible
You can certainly use a bik for a video with a few frames but no idea if a random static pic is possible
Re: Random picture in menu
I'm quite sure it is possible by using a VariablePictureNode or something similar, but since I have neither time nor will to experiment with all that undocumented menu mess, I'll just resort to using the bink option. Thanks!
dzn.battlefield.pl - my Bf1942 modding website
Re: Random picture in menu
If you do figure out a way to use variables for this purpose then shout 
Little seems to be understood about how variables can be used in modding.

Little seems to be understood about how variables can be used in modding.
Re: Random picture in menu
Hmm ... say you want to have two pictures for picture 7.
Will naming them like this work?
7_1.tga
7_2.tga
Then just tell the map to load the image named "7.tga" ... ?
Will naming them like this work?
7_1.tga
7_2.tga
Then just tell the map to load the image named "7.tga" ... ?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Random picture in menu
I'm 110% sure this doesn't work. Randomizing only works via the RandomGeometries-workaround - but that is for ingame stuff only. I'm not certain how variables are supposed to help you here, either. BF42 does support variables in code for pretty much everything (though it's rarely ever used), but it won't help you in defining how the variable should be randomized.
EDIT: For some nice introduction to variables in BF42 and things you can use them for, check this site:
http://www.velotech.net/battlefield/tutorials.php
Pick the "Using conditional statements" tutorial from the dropdown box. It's pretty straightforward and very enlightening. It does help to have some very basic understanding of compiler languages, though.
EDIT: For some nice introduction to variables in BF42 and things you can use them for, check this site:
http://www.velotech.net/battlefield/tutorials.php
Pick the "Using conditional statements" tutorial from the dropdown box. It's pretty straightforward and very enlightening. It does help to have some very basic understanding of compiler languages, though.
Re: Random picture in menu
Try to load "*.tga" but I think it chooses the first image in alphabetical list.