working update + autoupdate functionality for update branch #48

Merged
coolestskinnieinthejungle merged 2 commits from coolestskinnieinthejungle/SnootGame:master into updates 2021-07-09 02:44:52 +00:00

PR should help with issue #7's clusterfuckery

from original PR:

Goals:

  • Menu Option for updating the game
  • Back-end support confirmed to be functional

Non-essential features:
(ordered in top-to-bottom in levels of importance)

  • opt-in auto-update preference
  • Ability to set a prefered update server (i.e if snootgame.xyz ever goes down or moves domain, someone can still update)
  • Integration with torrents
  • support for update via Tor
  • seeding IPFS support

personal notes:

  • update backend works fine, now. the received update (if any) is stored as a persistent.
  • FOR TESTING REFERENCE: in order to debug updates on a dev copy (or a release lol) you NEED to have an "update" directory in SnootGame's root. it should be in the same dir as the game folder if you need a reference.
  • in that update dir you'll need current.json and updates.json, both which seem to be generated just fine when doing "Build Updates" in the renpy launcher.
    -IF YOU DON'T THE GAME WILL FAIL THE can_update() check and not continue any update related processes.
  • autoupdate is a persistent toggle that will start at False. you can toggle it back and forth on the updates submenu.
  • autoupdate will have the game automatically check for an update during the splash screen phase, and will prompt you to update as if you had clicked "Update Now" if it finds one. otherwise it is silent to not bug the user with a "no update found" every time the game is launched.
  • preferred update server is a persistent string pointing by default to http://updates.snootgame.xyz/updates.json. this was done rather than hardcoding/setting it as an init variable so that if it is changed (such as via the renpy debug console) it wont keep setting itself back to our URL every time.
  • in the future we should either add an input prompt for the user to write in their own url, or be boring and just make it draw from a txt file or something
PR should help with issue #7's clusterfuckery from original PR: Goals: - [x] Menu Option for updating the game - [x] Back-end support confirmed to be functional Non-essential features: (ordered in top-to-bottom in levels of importance) - [x] opt-in auto-update preference - [x] Ability to set a prefered update server (i.e if snootgame.xyz ever goes down or moves domain, someone can still update) - [ ] Integration with torrents - [ ] support for update via Tor - [ ] seeding IPFS support personal notes: - update backend works fine, now. the received update (if any) is stored as a `persistent`. - FOR TESTING REFERENCE: in order to debug updates on a dev copy (or a release lol) **you NEED to have an "update" directory in SnootGame's root**. it should be in the same dir as the game folder if you need a reference. - in that update dir you'll need `current.json` and `updates.json`, both which seem to be generated just fine when doing "Build Updates" in the renpy launcher. -**IF YOU DON'T THE GAME WILL FAIL THE `can_update()` check and not continue any update related processes.** - autoupdate is a `persistent` toggle that will start at `False`. you can toggle it back and forth on the updates submenu. - autoupdate will have the game automatically check for an update during the splash screen phase, and will prompt you to update as if you had clicked "Update Now" if it finds one. otherwise it is silent to not bug the user with a "no update found" every time the game is launched. - preferred update server is a `persistent` string pointing by default to http://updates.snootgame.xyz/updates.json. this was done rather than hardcoding/setting it as an `init` variable so that if it is changed (such as via the renpy debug console) it wont keep setting itself back to our URL every time. - in the future we should either add an input prompt for the user to write in their own url, or be boring and just make it draw from a txt file or something
coolestskinnieinthejungle added 2 commits 2021-07-02 19:35:49 +00:00
Owner

Have we finally got a compentent, functioning version of this? Hit me up when you need a review for this.

in the future we should either add an input prompt for the user to write in their own url, or be boring and just make it draw from a txt file or something

Pls do something boring, being cool isn't worth it anymore.

Have we finally got a compentent, functioning version of this? Hit me up when you need a review for this. >in the future we should either add an input prompt for the user to write in their own url, or be boring and just make it draw from a txt file or something Pls do something boring, being cool isn't worth it anymore.

@PrincipalSpears hell yeah. review is ready now and i'll see if i can fit in a "input menu" for users to edit the url outside of it being in a variable in the code.

lmk if you run into any issues building the upgrade and putting it on the server.

@PrincipalSpears hell yeah. review is ready now and i'll see if i can fit in a "input menu" for users to edit the url outside of it being in a variable in the code. lmk if you run into any issues building the upgrade and putting it on the server.
Member

epic FAIL

Wrong, at least it works in the actual build.

> epic FAIL Wrong, at least it works in the actual build.

glad nut got it working lmao
spears is out but i've been granted authoritah to push this so push i shall

glad nut got it working lmao spears is out but i've been granted authoritah to push this so push i shall
coolestskinnieinthejungle changed title from WIP: working update + autoupdate functionality for update branch to working update + autoupdate functionality for update branch 2021-07-09 02:44:32 +00:00
coolestskinnieinthejungle merged commit 48c8eaebec into updates 2021-07-09 02:44:52 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Cavemanon/SnootGame#48
No description provided.