I need your great help for build and Launcher
Blitz3D Forums/Blitz3D Beginners Area/I need your great help for build and Launcher
| ||
Hi all, i wan to know if anyone of you know how to make a good launcher. Example : I have my "main.exe" and i not wan users can't start it's without an Launcher with an parameter. How i can make something like this : Execfile ("Main.exe)+an parameter or not my main.exe told to him "Please Start the launcher." Kiss and Thanks Stephanie |
| ||
uh...could you rephrase that...in either proper english or grammar?? If english is not your native language I'm sorry, if it is... |
| ||
Hi Coded :) Yup sorry for my bad english am a poor french girl lol :) My question it's : Imagine you have 2 differents exe : - Launcher.exe - Main.exe If user Try to start your Main.exe, this one told to him "Sorry, for start this program you need use Launcher.exe" In the Launcher.exe i wan he send an parameter for told to the Main.exe ok you can run ! Thanks Kiss Stephanie |
| ||
@CodeD: Seems pretty clear to me. Maybe you need some help with English yourself? Maybe you want to be a little more patient with people whose first language isn't your own? KissKool, I'd say, have a parameter in main.exe that's required and if it's not there then have it print your "Please start the game using launcher.exe" (or whatever) message. Then you have your launcher.exe pass in that parameter, plus whatever else you want it to send (configuration info, etc.) It sounds like you already had this pretty much figured out...just needed some reassurance. I think you're on the right track. M [edit]If you need help with the actual code just let us know.[/edit] |
| ||
@KissKool Hey i sent you an email =) No wait i didnt, i got an error from hotmail. If someone wants to start the Main.exe without the launcher you could check if its running if not display the parameter. I dont know how to check if a program is executed though. |
| ||
You can use the CommandLine$() function in main.exe to check if a parameter was passed to it e.g.:If CommandLine$() <> "" ;run the program Else Print "Sorry, to start this program you need to use Launcher.exe" WaitKey() End EndIf |
| ||
Many thanks all for your help. Kiss Stephanie |
| ||
Exactly, I wasn't trying to be rude but, I didn't understand the question, if that makes me a dumb___ , so be it. |
| ||
OT@CodeD, Sorry, shouldn't have been so curt with you...your comment just took me the wrong way. I myself try to take a little extra time to figure out what people on the Internet are trying to say, because often English is not their first language. If they are English speakers and just don't give a crap (and you can usually tell) then I think they're fair game, though : On Topic, glad you figured it out KissKool |
| ||
heck english is my first language, but unfortunetly alot of times I have a hard time expressing what I want to say. No im not stupid im just liek many oif other people and have my flaws ;) |
| ||
well, at least we all made up! :) |
| ||
Make up and Kiss(Cool). :) |
| ||
Try this:;compile this as "launcher.exe" Graphics3D 480,480,16,2 Print "Press any key to load level 1" WaitKey() ExecFile("yourgame.exe /loadlevel1") End ;compile this as "yourgame.exe" If CommandLine$() <> "/loadlevel1" Then RuntimeError "Please run the menu Launcher.exe program, not this one." Graphics3D 640,480,16,2 Print "allright - it worked! Wo-hoo!" WaitKey() ExecFile("launcher.exe") End ...Works for me at least. |