Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: bfobar on March 07, 2006, 05:45:52 pm
-
I was thinking that it would be cool if the code could take the PreLoad.tga (or 2_PreLoad.tga) image that you see when the game starts up in the format of PreLoadxx.tga. Then we could make 10 or 99 or whatever preload splash screens and the code could cycle through them, showing off eyecandy.
-
But then we'd end up with, "Ugh. His screenie got in but not Mine?!" :lol: Probably not worth it atm. Eh.
-
But then we'd end up with, "Ugh. His screenie got in but not Mine?!" :lol: Probably not worth it atm. Eh.
...so what's to stop the complainer from putting in their own PreLoadxx.tga ? Not to mention right now we're stuck with ONE thing to say "his screenie got in but not mine" :p But hey thanks, now you inspired me to change my own :)
-
But then we'd end up with, "Ugh. His screenie got in but not Mine?!" :lol: Probably not worth it atm. Eh.
...so what's to stop the complainer from putting in their own PreLoadxx.tga ? Not to mention right now we're stuck with ONE thing to say "his screenie got in but not mine" :p But hey thanks, now you inspired me to change my own :)
I figured that the screenie packs should stay out of the media_vps. The TGA files take about 2 megs a pic, and I wouldn't want to sit through a mandatory download of that if I didn't want one. I was changing my own and had two nice screenies, and was thinking, "Darn! I want both of them!" That was where the idea came from. I think Transcend and the FSPort had their own preload pic. Cool idea there too for all mod campaigns.
-
Why not just make some loading screens for all the campaigns you like that don't have them? :)
-
I was thinking that it would be cool if the code could take the PreLoad.tga (or 2_PreLoad.tga) image that you see when the game starts up in the format of PreLoadxx.tga. Then we could make 10 or 99 or whatever preload splash screens and the code could cycle through them, showing off eyecandy.
#Global hooks
$Splash: [
random_number = ma.getRandomNumber(0, 99)
if gr.getScreenWidth() < 1024 then
gr.drawImage("PreLoad" .. random_number, 0, 0)
else
gr.drawImage("2_PreLoad" .. random_number, 0, 0)
end
]
+Override: YES
#End
-
My god the scripting stuff is fifty shades of awesome.
-
Would it be possible to gather all various scripting examples to their own 'script' library (for example into FSwiki) so that scripting noobs like me could simple go there and grap the scripts needed for some particular use without having to learn to script the whole thing?
-
It's theoretically possible...
-
woah.
So uh, where do I stick that snip of script?
-
data/tables/scripting.tbl
If you look closing, it's just a normal TBL with scripting inside the [ and ] :)
-
Huh. So I'm trying that script with 8 preload images (random number set from 1 to 8) and it only pics the same one over and over again. I rebooted and it changed finally to another image. Is there a way to set the random seed to the seconds of the systime or something? Also, that script seems to lose the logo bit, and everyone wants to see the SCP logo I'm sure. What is the command for the logo?
gr.drawImage("PreLoadLogo", 0, 0) ?