x


Standalone pre-launch application aka Launcher

Hello I'm fairly new to Unity so bear with me on this, I want to create launcher probably as silverlight/moonlight-based window with auto-update capabilities with more settings than configuration window that appears at default. I also need it to always run before initial game scene is launched. I thought of 2 approaches, but If you can think of something else I'd be glad to hear

1) When unity binary is launched it would start another executable ex. launcher.exe and quit. Launcher.exe would check/apply updates then show button "PLAY", after pressing that launcher would start unity executable again but now with argument like "-nolauncher" which would start actual game and not take us into loop. Is this possible?

2) Embed launcher into Unity executable something like replacement for configuration window that is shown at default. As I have complete C# source of launcher it doesn't have to be standalone executable.

Any pointers if either of those 2 approaches are doable and where to look for more info will be much appreciated.

more ▼

asked Jan 03 '11 at 10:45 PM

Xeev gravatar image

Xeev
1 1 1 3

(comments are locked)
10|3000 characters needed characters left

4 answers: sort voted first

Hello. I would recommend you make the user start the game as the exe of the launcher/updater/patch client. No need to kill the application then start a second. Then just make the start button kill itself and launch the real game with a random secrert argument. Sorry I'm no use for telling you how to program the patcher, and I don't even know how to make a program require or send an argument (other than after the location in a shortcut). I hope this helps! -Keavon

more ▼

answered Feb 02 '11 at 06:56 AM

Keavon gravatar image

Keavon
358 30 34 44

(comments are locked)
10|3000 characters needed characters left

We have the same problem.

Essentially we'd like to launch the game we'd like to launch the game, completly circumventing the default launcher or 'configuration' window, that is produced with a unity build. Graphics and input will be have defaults and will be customizable in game.

If anyone who has a solution to this, sharing it would be a great help to me and my team.

more ▼

answered Aug 17 '11 at 11:57 AM

Fehr gravatar image

Fehr
76 2

(comments are locked)
10|3000 characters needed characters left

You know unity already has a web launcher right? If that's what you mean.

more ▼

answered Jan 03 '11 at 10:51 PM

NinjaSquirrel gravatar image

NinjaSquirrel
759 31 41 69

I'm curious as to what you mean by "web launcher", what even make you think I want to do something with web? Have you really read my post?

Jan 03 '11 at 11:24 PM Xeev
(comments are locked)
10|3000 characters needed characters left

Hey, thanks for the reply, acutally it wasnt the web player we where after at all, we didnt want what i now know is called the 'Display Resolution Dialouge'.

This can be switched off by finding the following setting under: File > Build settings > Player Settings, then under Stand-alone Player Options there is a Display Resolution Dialog setting, with a dropdown box. Set this to Disabled.

Xeev, perhaps you could write your updater/launcher as a stand-alone (with nothing to do with unity) that stays in the same directory as your game executable, and have whatever you use to package the installer for your game reference that updater/launcher as the default desktop & startbar shortcut. From within that launcher you could have it directly execute the game executable when they click the play/launch button, and by disabling the resolution dialouge it will launch the game directly.

I hope I've done something toward answering your question Xeev, but I thought I'd post back with the solution to my issue. Sorry if my answer is a little unclear.

more ▼

answered Sep 19 '11 at 07:17 AM

Fehr gravatar image

Fehr
76 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x28
x22

asked: Jan 03 '11 at 10:45 PM

Seen: 2701 times

Last Updated: Sep 19 '11 at 07:37 AM