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

Title: silly feature request: splash screen.
Post 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.
Title: Re: silly feature request: splash screen.
Post by: AqueousShadow on March 07, 2006, 06:37:04 pm
But then we'd end up with, "Ugh. His screenie got in but not Mine?!" :lol: Probably not worth it atm. Eh.
Title: Re: silly feature request: splash screen.
Post by: Backslash on March 07, 2006, 11:21:20 pm
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   :)
Title: Re: silly feature request: splash screen.
Post by: bfobar on March 08, 2006, 12:46:35 am
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.
Title: Re: silly feature request: splash screen.
Post by: karajorma on March 08, 2006, 03:45:34 am
Why not just make some loading screens for all the campaigns you like that don't have them? :)
Title: Re: silly feature request: splash screen.
Post by: WMCoolmon on March 09, 2006, 01:25:55 am
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.

Code: [Select]
#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
Title: Re: silly feature request: splash screen.
Post by: Ferret on March 12, 2006, 04:58:13 pm
My god the scripting stuff is fifty shades of awesome.
Title: Re: silly feature request: splash screen.
Post by: Wanderer on March 12, 2006, 11:59:26 pm
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?
Title: Re: silly feature request: splash screen.
Post by: WMCoolmon on March 13, 2006, 10:09:49 pm
It's theoretically possible...
Title: Re: silly feature request: splash screen.
Post by: bfobar on March 25, 2006, 08:20:04 pm
woah.

So uh, where do I stick that snip of script?
Title: Re: silly feature request: splash screen.
Post by: WMCoolmon on March 26, 2006, 04:27:21 am
data/tables/scripting.tbl

If you look closing, it's just a normal TBL with scripting inside the [ and ] :)
Title: Re: silly feature request: splash screen.
Post by: bfobar on March 26, 2006, 11:20:09 pm
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) ?