lake54
Member
- Joined
- Sep 30, 2009
- Messages
- 6
- Programming Experience
- Beginner
I'm making a basic launcher for a mod that I'm on the team of for a popular game.
I've managed to do what I believe to be tricky for me - get it to check the version installed against the one online (text files are handy
Now, the thing is, it won't launch the game.
I've tried all of these in turn (the first is the Process.*, the second was the BackTo
The only success I've had is the last one (shell), but the game doesn't really start - I have Task Mgr open, and it starts the Game.exe file, but closes again. I think it might be the arguments part, but I'm not 100% sure.
GamePath doesn't have a trailing slash
From what I understand, the program path has to be 'read' in a set of quotes, plus the arguments after it. The string I get is "C:\Program Files\Publisher\Game\Game.exe" -dev -mod ModName
I've also tried putting in the app.manifest that it requiresAdministrator, but I don't know if this is what is making it fail? I've tried asInvoker and highestAvailable too, but neither have an effect.
In my eyes this is simple and I'm obviously just missing one small bit.
I appreciate any help!
James
I've managed to do what I believe to be tricky for me - get it to check the version installed against the one online (text files are handy
Now, the thing is, it won't launch the game.
I've tried all of these in turn (the first is the Process.*, the second was the BackTo
VB.NET:
Dim ModName As New Process
Process.Start(My.Settings.GamePath & "\Game.exe", "-mod ModName-dev")
ModName.StartInfo.FileName = My.Settings.GamePath & "\Game.exe"
ModName.StartInfo.Arguments = "-mod ModName-dev"
ModName.Start()
Shell("""" & My.Settings.GamePath& "Game.exe""" & "-dev -mod ModName")
The only success I've had is the last one (shell), but the game doesn't really start - I have Task Mgr open, and it starts the Game.exe file, but closes again. I think it might be the arguments part, but I'm not 100% sure.
GamePath doesn't have a trailing slash
From what I understand, the program path has to be 'read' in a set of quotes, plus the arguments after it. The string I get is "C:\Program Files\Publisher\Game\Game.exe" -dev -mod ModName
I've also tried putting in the app.manifest that it requiresAdministrator, but I don't know if this is what is making it fail? I've tried asInvoker and highestAvailable too, but neither have an effect.
In my eyes this is simple and I'm obviously just missing one small bit.
I appreciate any help!
James