More than 1 start up logo
by James Thompson · in Game Design and Creative Issues · 03/13/2005 (2:22 am) · 10 replies
Hi everyone,
For my game I would like to display more than one startup logo, I have the indie licence and must display the garage games logo, but I wish to display my logo and a couple of others. Any ideas on how I could do this?
Thanx in advance
For my game I would like to display more than one startup logo, I have the indie licence and must display the garage games logo, but I wish to display my logo and a couple of others. Any ideas on how I could do this?
Thanx in advance
About the author
Been a programmer for a few years, started when I was quite young and got into it so carried on through my life. Currently studying at Kent Uni in Canterbury.
#2
www.garagegames.com/mg/forums/result.thread.php?qt=26578
03/13/2005 (4:31 am)
Or look here for more details...www.garagegames.com/mg/forums/result.thread.php?qt=26578
#3
03/15/2005 (11:47 am)
Thanks a lot
#4
Below is the code I have edited in init.cs:
// Load up the shell GUIs
exec("./ui/mainMenuGui.gui");
exec("./ui/QuitGui.gui");
exec("./ui/aboutDlg.gui");
exec("./ui/startMissionGui.gui");
exec("./ui/joinServerGui.gui");
exec("./ui/loadingGui.gui");
exec("./ui/endGameGui.gui");
exec("./ui/optionsDlg.gui");
exec("./ui/remapDlg.gui");
exec("./ui/StartupGui.gui");
exec("./ui/startcampaingui.gui");
exec("./ui/SecondGui.gui");
blah blah
else {
// Otherwise go to the splash screen.
Canvas.setCursor("DefaultCursor");
loadStartup();
loadStartup2();
}
}
What is wrong?
03/15/2005 (12:30 pm)
Ok, I had a look around, changed a lot of things in init.cs and in the 2 startup gui's but nothing works. The 2 gui's I am using are called: StartupGui.gui and Startup2.gui.Below is the code I have edited in init.cs:
// Load up the shell GUIs
exec("./ui/mainMenuGui.gui");
exec("./ui/QuitGui.gui");
exec("./ui/aboutDlg.gui");
exec("./ui/startMissionGui.gui");
exec("./ui/joinServerGui.gui");
exec("./ui/loadingGui.gui");
exec("./ui/endGameGui.gui");
exec("./ui/optionsDlg.gui");
exec("./ui/remapDlg.gui");
exec("./ui/StartupGui.gui");
exec("./ui/startcampaingui.gui");
exec("./ui/SecondGui.gui");
blah blah
else {
// Otherwise go to the splash screen.
Canvas.setCursor("DefaultCursor");
loadStartup();
loadStartup2();
}
}
What is wrong?
#5
It also lets you play music.
03/15/2005 (1:03 pm)
If you can wait until tomorrow I will post the code to go in to StartupGui. (Code is at home)It also lets you play music.
#6
03/15/2005 (1:13 pm)
Thanx for this
#7
Replace the code in your startupgui file with this
Just need to replace
also change the path names
03/16/2005 (9:39 am)
Here you go..Replace the code in your startupgui file with this
//---------------------------------
//----- Code by Max Gaming ------
//---------------------------------
//--- OBJECT WRITE BEGIN ---
new GuiFadeinBitmapCtrl(StartupGui) {
profile = "GuiInputCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "";
wrap = "0";
fadeinTime = "1000";
waitTime = "3000";
fadeoutTime = "1000";
};
new GuiFadeinBitmapCtrl(BlankGui) {
profile = "GuiInputCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "";
wrap = "0";
fadeinTime = "1000";
waitTime = "2000";
fadeoutTime = "1000";
};
//--- OBJECT WRITE END ---
function loadStartup()
{
$StartupIdx=0;
StartupGui::next();
schedule(100, 0, checkStartupDone );
// alxPlay(AudioStartup);
if( isObject(MusicPlayer) )
MusicPlayer.playTrack("starterfps/client/ui/song.ogg");
}
//-------------------------------------
function StartupGui::click()
{
StartupGui.done=true;
checkStartupDone();
}
//-------------------------------------
function StartupGui::next()
{
Canvas.setContent( BlankGui );
$StartupIdx++;
%bitmap[1] = "image1.jpg";
%bitmap[2] = "image2.jpg";
%bitmap[3] = "image3.jpg";
StartupGui.setBitmap("starterfps/client/ui/" @ %bitmap[$StartupIdx]);
StartupGui.done=false;
Canvas.setContent( StartupGui );
}
//-------------------------------------
function checkStartupDone()
{
if (!isObject(StartupGui))
return;
if (StartupGui.done)
if ($StartupIdx==3)
{
StartupGui.done=1;
StartupGui.delete();
BlankGui.delete();
flushTextureCache(); // don't wanna keep the startup logos in vram
loadMainMenu();
} else {
StartupGui::next();
schedule(100, 0, checkStartupDone );
}
else
schedule(100, 0, checkStartupDone );
}Just need to replace
%bitmap[1] = "image1.jpg"; %bitmap[2] = "image2.jpg"; %bitmap[3] = "image3.jpg";With the names of your files,
also change the path names
MusicPlayer.playTrack("starterfps/client/ui/song.ogg");
StartupGui.setBitmap("starterfps/client/ui/" @ %bitmap[$StartupIdx]); to suit your game.
#8
oh yeah and should
StartupGui.setBitmap("starterfps/client/ui/" @ %bitmap[$StartupIdx]);
be:
StartupGui.setBitmap("starter.fps/client/ui/" @ %bitmap[$StartupIdx]);
?
03/16/2005 (12:56 pm)
I still only get one picture displayedoh yeah and should
StartupGui.setBitmap("starterfps/client/ui/" @ %bitmap[$StartupIdx]);
be:
StartupGui.setBitmap("starter.fps/client/ui/" @ %bitmap[$StartupIdx]);
?
#9
I just needed to undo the changes i made in init.cs and it works!!!
I have spent 3 days trying to do this and adding guns/ammo to a map. today I have managed to do both, Thanks a lot Joseph
03/16/2005 (1:04 pm)
Dont worry I done it!!!I just needed to undo the changes i made in init.cs and it works!!!
I have spent 3 days trying to do this and adding guns/ammo to a map. today I have managed to do both, Thanks a lot Joseph
#10
03/16/2005 (1:04 pm)
Yes sorry... also forgot to say change the path names.
Torque Owner Sven "RaCooN" Knie
And there is the place where the logo will be loaded.
=> loadStartup();
This function you will found in the /client/ui folder in the startup.gui.
With this knowledge you can create a startup2.gui, startup3.gui and so on.
And in the init.cs you can expand the function and start them one after the other.