XFallSeane Posted November 14, 2017 Share Posted November 14, 2017 Hello, I create a launcher / updater that works great in vb.net, the game folder is like this:  Data   => Resources   => Logs   => Client.exe end other files Launcher/update.exe  But when I launch my client, the download of the resource file is done automatically while it is in the data file. I think we have to wait for the sources? Thank you in advance. Link to comment Share on other sites More sharing options...
0 jcsnider Posted November 14, 2017 Share Posted November 14, 2017 Oh okay. I didn't realize you were using a custom launcher.  You need to use ProcessStartInfo and set its working directory to the data folder.  https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.workingdirectory(v=vs.110).aspx Link to comment Share on other sites More sharing options...
0 Cheshire Posted November 14, 2017 Share Posted November 14, 2017 Pretty sure it only does that if it does not find any existing config files or resources. So if your user runs the updater before the client (Like they should? Why would a user connect with an outdated client?) and the updater downloads all the relevant files it shouldn't be a problem. Link to comment Share on other sites More sharing options...
0 XFallSeane Posted November 14, 2017 Author Share Posted November 14, 2017 I know.. but the resources folder is in my data folder i dont understand why the resources.zip is download...  EDIT I have an error which shows that the files already exist but it does not start the game. Link to comment Share on other sites More sharing options...
0 jcsnider Posted November 14, 2017 Share Posted November 14, 2017 Already fixed this, I think.  Try this launcher: http://www.ascensiongamedev.com/resources/filehost/41f73f41397166340fc3036b68eae5f1.zip  If you tell me if works I'll release an update for it tonight for everyone.  For the techy people wondering what's going on: His client is not in the same folder as the launcher/updater. The updater/launcher does a Process.Start() but never set the working directory to the one the client was in. Client was searching for the resources folder in the root folder where it didn't exist so it started downloading. Cheshire 1 Link to comment Share on other sites More sharing options...
0 XFallSeane Posted November 14, 2017 Author Share Posted November 14, 2017 Ok i test with your launcher  edit : the upload take ~1h30 Link to comment Share on other sites More sharing options...
0 jcsnider Posted November 14, 2017 Share Posted November 14, 2017 You don't have to reupload. You can just use the same config and everything. Link to comment Share on other sites More sharing options...
0 XFallSeane Posted November 14, 2017 Author Share Posted November 14, 2017  So the problem comes from the client who checks the game at the root? I like your updater but I want a custom launcher / updater .. my launcher to Try              Dim myProcess As New Process              Process.Start ("data \ no.exe")          Catch ex As Exception              MsgBox (ex.ToString)              Me.Close ()          End Try without the data folder it works Link to comment Share on other sites More sharing options...
0 XFallSeane Posted November 14, 2017 Author Share Posted November 14, 2017 Thank ! That Work ! Link to comment Share on other sites More sharing options...
Question
XFallSeane
Hello,
I create a launcher / updater that works great in vb.net, the game folder is like this:
Â
Data
  => Resources
  => Logs
  => Client.exe end other files
Launcher/update.exe
Â
But when I launch my client, the download of the resource file is done automatically while it is in the data file.
I think we have to wait for the sources?
Thank you in advance.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts