1
\$\begingroup\$

I've been making games and I have always had a problem if I wanted to sell a game. People would have to re-buy games to get the updated version. Does anyone have any ideas on how to make a self updating game? (In python 3.)

\$\endgroup\$

closed as too broad by Alexandre Vaillancourt, MAnd, congusbongus, Josh Jan 27 '16 at 16:44

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2
\$\begingroup\$

Create two separate applications: Your actual game and a launcher. Configure your installer to create shortcuts for the launcher, not the actual game.

When the launcher is executed, it first goes online and checks if there is an update for your game. When there is, it downloads it and patches the copy of the actual game. A lightweight way to do this is to place a text file on your website with the current version number and a URL for the current version. Have your launcher download that small file and compare it with the current version number of your game. When it's lower, request the URL in that file.

Then have it execute the actual game.

However, most digital distribution platforms have an own launcher which can keep the users games up-to-date automatically so you don't have to worry about this. For more information if and how you can release an update with your distribution platform, consult its documentation.

\$\endgroup\$
  • \$\begingroup\$ One problem, how would I make it check if there is an update? \$\endgroup\$ – Larry McMuffin Jan 26 '16 at 20:51
  • \$\begingroup\$ @LarryMcMuffin You're asking a very broad and general question, one that depends on a million variables and can be done just as many ways \$\endgroup\$ – Premier Bromanov Jan 26 '16 at 20:55
  • \$\begingroup\$ @LarryMcMuffin Place a text file on your website with the current version number and a URL for the current version. Have your launcher download that small file and compare it with the current version number of your game. When it's lower, request the URL in that file. \$\endgroup\$ – Philipp Jan 26 '16 at 21:02
  • \$\begingroup\$ @Philipp That was my idea, but I was wondering how I can make Python read it. I have very little experience with networking and python. \$\endgroup\$ – Larry McMuffin Jan 26 '16 at 21:05
  • \$\begingroup\$ @LarryMcMuffin stackoverflow.com/search?q=[python]+download+file+http \$\endgroup\$ – Philipp Jan 26 '16 at 21:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.