vendorolz.blogg.se

Game maker studio 2 download
Game maker studio 2 download










Unfortunately, I couldn’t make the last part work, because when I used the same method for downloading the.

game maker studio 2 download

Now the installer can install the new game, and everybody’s happy. If none of these things are true, start downloading the new installer, and when it’s done, execute the installer, and close the game right after executing. If global.NewestVersion is equal to “ERROR”, inform the user that there was an error. I usually do that by creating an object without sprites, that makes a new string called global.CurrentVersion when the game starts. This one will say that the newest version is version 1.0Īnyway, as soon as you have the global.NewestVersion, you just have to compare it to a string in the game, that tells the game what version it currently is. ini file should look like this to work with the code: And then the file is closed.īy the way, the. And if that value doesn’t exist, set the string to ERROR. Global.NewestVersion = ini_read_string("Versions","Newest","ERROR") įirst the file is opened, then the string global.NewestVersion is set to the value that is in block “Versions” called “Newest”. If it the file was downloaded, read the file: I’m not sure of this function is optimal for larger downloads, because I don’t know if the file exists before the download is complete, but for small downloads like this very small text file, I haven’t found any issues yet.

game maker studio 2 download game maker studio 2 download

Now, you have to test if the file was actually downloaded: The first part tells Gamemaker where to find the file online, and the last part tells it where to save it locally. Http_get_file("", working_directory + "/Versions.ini") ini file containing the name of the newest version of the game:

game maker studio 2 download

I have tried to make an update system for my game, and this is how far I got.įirst, connect to my server, and download an.












Game maker studio 2 download