Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Tutorial: Making your own game launcher!

Author
Message
Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 17th May 2008 08:07 Edited at: 27th Jul 2008 02:44
***Making a Game Launcher***
Hey, Rampage here! This is my first tutorial on the board.
Today we are going to make our own game launcher so that we can load up our built games exe.
This way, if you want to have a game that has both single player and multiplayer games. You can make one of the buttons of the launchers to load up the mulitplayer game.
Ok, so for this little walkthrough, we will be using Visual Basic to make our launcher. I will be using Version 6.0, an old version which is still very effective. You are welcome to use .net or version 8 and up, the code is still basically the same though.

Ok so as I said before I will be using Vb 6.0, so it might be slightly different for you.


Part1:
I am going to asume that you have made and built your fps creator game, and made an install file for it. You can download CLICKTEAMS INSTALL CREATOR HERE:
http://www.clickteam.com/eng/installcreator.php
So go ahead and do that and meet me in part2.

Part2:
Open up Visual Basic and select STANDARD.EXE. This will make it so that you will be designing a program that will comply into a stand-alone exe, which you can make a shortcut for if you want.

So...A form should pop up. You can change the window name and design the look of the form as much as you want (background image etc.) As this is a straight forward tutorial, I won't be showing you how to do this. If you don't know how to do this already, I suggest you look around for tutorials. Its not hard to find out your self though. Go onto popular sites such as youtube for great vb tuts!

Part3:
So, once you have designed your form and such put the following onto the form, all of these can be found in the toolbox to the left<<<<

-1 command buttons (or 1 label, depending on if you want a button to open up game or want to click on text to open it.)
-1 textbox.

Like I said this is a straight forward tutorial so I will only be adding the basic elements to the form. Feel free to put your programming knowledge to the extream!

OK, change the text of text1 to your projects install directory, which should be exactly the same as the one you input in INSTALL CREATOR.
We will use this text box so that if the gamer has installed to a different dectory such as D drive they can change it them selves.
The coding is coming up next in Part4...Just a little though.

Part4:
Double click on text1 to open up coding window.
Put the following code behind it.



So if they text1 doesn't have anything in it, this message will pop up!

Behind the command button, put this code in:
And the name of the games exe.

Well thats it. Make it as awesome as you want to, hopefully you get the basic idea ok?

Now if you want to have a multiplayer button along side the singleplayer button, all you have to do is exactly the same thing, but point it towards the multiplayers exe. Here is a little sample code that can achieve this feet.

Simple as that.
Feel free to add anything else such as credit options, if you can code it right control options. Well yea you can make your own options menu. Have fun!

Thank you! Have a good day lol...

[url=][/url]The Ultimate Battle Mod, high fps, particles, and more.
Kerrby
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location: Australia mate.
Posted: 17th May 2008 09:50
Is there any other way if we don't have Visual Basic?
Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 18th May 2008 01:36
Visual Basic is free.
But yes, you can use C++ or anuthing really. I choose visual basic because it was straight forward, to the point.


DevilMouse Developments Lead Designer/Programmer/Developer
Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 20th Jul 2008 04:50
*bump

[url=][/url]The Ultimate Battle Mod, high fps, particles, and more.
Deathead
17
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 20th Jul 2008 13:13
Good tutorial, but.
Quote: "
If text1.text = ""
then msgbox "Please input the games dectory.", vbinformation
endif"

I think it should be "Please input the game's directory."


Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 20th Jul 2008 16:56
Cool. how hard would it be to create a background ect
Little Bill
15
Years of Service
User Offline
Joined: 18th Jun 2008
Location: UK
Posted: 20th Jul 2008 17:09
That would be incredibly easy. Click on the form and go to it's properties tab and Change the background image. As easy as that

Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 21st Jul 2008 10:03
Also you can have a movie playing in the background with animated buttons etc. Learn of bit more VB and you got it sussed.

[url=][/url]The Ultimate Battle Mod, high fps, particles, and more.
Jolly Roger 2
16
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Italy
Posted: 21st Jul 2008 11:58
I would have made that launcher in Delphi, there is a free version (turbo delphi), it doesn't require the runtimes and it is at c++ level.

Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 22nd Jul 2008 19:45
Cool. I will download VB when i get the time to. I need to get the offline version as my primary computer dosnt have internet, just FPSC
gorba flamingo
16
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 25th Jul 2008 05:33
beautiful! thank you very much Sgt Rampage

Survival!
Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 25th Jul 2008 08:16
No problem bro

[url=][/url]The Ultimate Battle Mod, high fps, particles, and more.
Robert F
User Banned
Posted: 27th Jul 2008 02:32
Thanks Sgt Rampage, This is a good tutorial.


Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 27th Jul 2008 02:53
Thanks a bunch guys, keep that feed back coming!
Making a Vb 2008 tut now, will upload to youtube when I have the time.
This will be a bit more flashy though.
(i will add link in first post)
Yeeeeeeeeeeeaaaaaaaaaahhh
Rampage

[url=][/url]The Ultimate Battle Mod, high fps, particles, and more.
outlaw241
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location: Ontario Caliiiiii US of A
Posted: 9th Aug 2008 05:41
awesome.

Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 9th Aug 2008 06:28
No problem man

[url=][/url][href]http://www.rampagemod.webs.com[\href]
outlaw241
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location: Ontario Caliiiiii US of A
Posted: 9th Aug 2008 08:03
WAT WON't let me build in install creator!!!
says files have the same name!!! help!

Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 9th Aug 2008 08:05
Um?? Make sure files are not same name???!??? I dunno...I don't make install programs often.

[url=][/url][href]http://www.rampagemod.webs.com[\href]
outlaw241
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location: Ontario Caliiiiii US of A
Posted: 9th Aug 2008 10:52
they have to be the same its the game files!!!

Login to post a reply

Server time is: 2024-05-10 05:52:59
Your offset time is: 2024-05-10 05:52:59