WIP: Fixes #7 - Game should be able to update itself #21
No reviewers
Labels
No Label
bug
Critical Priority
duplicate
enhancement
help wanted
High Priority
Low Priority
Medium Priority
Meta
needs more info
question
refactor
wontfix
bug
Critical Priority
duplicate
enhancement
help wanted
High Priority
invalid
Low Priority
Medium Priority
Meta
question
wontfix
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Depends on
#29 Fixes #19 - Extras menu
Cavemanon/SnootGame
Reference: Cavemanon/SnootGame#21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "updates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR should address issue #7 and all work on it should be done on the 'updates' branch or forks.
Goals:
Non-essential features:
(ordered in top-to-bottom in levels of importance)
Having trouble getting the python to meld well with the script stuff. Idealy, there should be a loading text, text if there is no update, and text if there is an update depending on what the return of updater.UpdateVersion. Can't really figure this out, so for now its just renpy.notify (and it works as intended). If someone can look into this, offer some advice, or outright do it, that'd be great.
https://f95zone.to/threads/how-to-display-values-on-the-screen.39289/
found a little documentation on what I was working on, would work right now, but its 6 am and these bones need rest. If no one picks up implementing it, i'll get back to it.
WIP: Game should be able to update itselfto WIP: Fixes #7 - Game should be able to update itselfBeen working on this for awhile, mostly waiting UI to be done. Got the functions done and updates.snootgame.xyz is the update server. Still need to test it.
dffbb9718f
to397de2b950
Can someone help me out with this PR? For some reason UpdateCheck() runs every damn frame the extra menus is open and crashes the game with an error whenever you click on any button (update has a special error). It is by far one of the werdiest and most frustrating errors. It only occours when the button to call UpdateCheck exists. When commented out, everything just werks.
pm'd you the fix ;)
@ -726,2 +726,2 @@
textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False)
textbutton _("Update Now!") ##action ("persistent.autoup", True, False) This should also set the value of updateresults
#textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False)
textbutton _("Update Now!") action UpdateCheck()
there's a way to automagically make this a commit that can edit it with the push of a button but i cant fucking remember how
OKAY SO IT BROKE AGAIN.
I have 2 ways of calling the update implemented, both with their own special snowflake error. Function just has a stroke because of ui context (https://lemmasoft.renai.us/forums/viewtopic.php?t=48945) and Invoke has a stroke because a stack isn't empty and has no way to become empty. It suggest ui.close(), an undocumented, deprecated "fix" that I can't find anything on. I tried manually emptying the stack (probably not a good idea) and it didn't do anything. Renpy's UI work is absolute trash pls halp.
It is interesting, apparently updater.update and updater.Update are both existing and somewhat different functions/actions in renpy. https://www.renpy.org/doc/html/updater.html
f77a2dc953
toe02118180e
Got everything set up back-end side. Need some people to help me debug it.
Okay, im going to leave this feature for now. Stuff is mega broken and im at my wits end about whats wrong. If someone doesn't mind picking it up and helping me out with this, that'd be great. For now, i'll start working on something else.
Use update() because
updater.update(url, base=None, ..)
is different from
updater.Update(*args, **kwargs)
.The * star is pretty damn important because the game reads the url as this:
Pain.
Even with this fix, it's still not detecting a new version being able to be downloaded. I don't know if I did something horribly wrong
The directory structure for the site is as follows:
Is something else needed? Does anyone know any free software ren'py projects with updates that we can reference?
shit wrong button
relaying some revalations from convo with Spears to gitea:
going to get a windongs build on the server in a bit and test to see if i can now pull an update probably on my shitbox. we'll also have to have this shit documented.
moving this to https://git.snootgame.xyz/Cavemanon/SnootGame/pulls/48 as this has turned into a hellfire of undocumented renpy
Pull request closed