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 / [SOLVED] (init error) Can't execute game in vb.net launcher UNLESS launcher is in the folder?

Author
Message
caleblich
8
Years of Service
User Offline
Joined: 24th Jun 2012
Location:
Posted: 22nd Nov 2019 03:12
I'm trying to make a launcher for my game in vb.net with visual studio.... And the only way I can get the launcher to correctly load the game is if the .exe of the launcher is in the same folder as the Game, this isn't very efficient. Does anyone have experience with this and know of a work around?



Thanks

The author of this post has marked a post as an answer.

Go to answer

xplosys
14
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 22nd Nov 2019 04:06
This post has been marked by the post author as the answer.
Sure. In your launcher, set the path to the game executable. If it's up one directory, like another folder in the VB folder, then set that path.

Supermarket Killer: I got a bomb here! I'll kill her! I'll blow this whole place up!
Marion Cobretti: Go ahead. I don't shop here.
caleblich
8
Years of Service
User Offline
Joined: 24th Jun 2012
Location:
Posted: 23rd Nov 2019 03:32
@xplosys

Awesome! Instead of using:

Process.Start"("C:\etc\etc")

that method works perfectly

ALSO, for anyone else having the same issue - if the launchers and games aren't ran as administrator, there may be other crashes and errors as well

Login to post a reply

Server time is: 2020-07-11 09:33:17
Your offset time is: 2020-07-11 09:33:17