Is it possible to update a godot game.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bunnybot5555
:warning: Old Version Published before Godot 3 was released.

Hi, I’m making a simple godot game and want to know if it is possible to update it.

:bust_in_silhouette: Reply From: GlaDOSik

Yeah. Just open the project and work on a game more. And then, export it. Bam - you just updated your game. But I think your question is about how to update the game on client’s computer? That’s up to digital distribution service you use. Most of them will give you tools to upload only differences from the older version.

Not all games come from digital distribution, some have their own launchers. In this case It’s the launcher’s job to update the game usually, I wonder myself if such as launcher can be made with Godot.

Zylann | 2016-09-22 10:01

I’m a very new programmer but I suspect you’d need to have your game do a version check with an online file (you could simply have it compare if the version number it has is smaller than a string in a file on a web server somewhere. IE: internal version = 1.0.4.33 VS file on web server = 1.0.5.11

Once you have that point (the easy part) you’d then want to retrieve a file that contains the updates and download it to an appropriate location.

Then, the game would need to take that data and incorporate it into itself. That would be interesting. I’m guessing the game would need a restart?

I’d love to watch this thread and see if someone with real skills has an answer on how to do that. Good luck!

Robster | 2016-09-23 05:53

I believe that game launchers are not usually made using game engines :slight_smile:

BeLuckyDaf | 2016-09-28 19:39

Sometimes they are, the engine just has to support secure file downloading :slight_smile:

Zylann | 2016-09-28 19:49

:bust_in_silhouette: Reply From: dirtsea

Use 2 executables: one being launcher, the other is the game itself.
Upon starting the launcher, it checks the version with your server (by fetching a version number from the server etc, or other things like checking the game file integrity):
If the game is up-to-date, launch the game executable from the launcher.
If there’s a new version available then the launcher will download the game files from the server, and overwrite the existing game executable.

:bust_in_silhouette: Reply From: Bluefox dev

I know this is pretty old but you could distribute the update as a pck and have it update like that