-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reinstating check_updates #88
Comments
have gotten a lil further
is showing up, but i haven't got it to recognize there's an mse-install yet |
Lemme poke around, I think all that package logic is 15+ years old and appears to have been never really fully finished seeing as it wasn't added to all the stuff in the The entire section titled "Installing" was commented out. and has been for 16 years? When it was though it seems like it was while Upgrading and Installing were being combined... so maybe it was just unnecessary stuff. eed8ba4#diff-e646c89d75506ba3db2acc1b2d9228fb376c14ac3ec840f39151821ac3ef0126R41 |
This seems to be the only place that MagicSetEditor2/src/gui/update_checker.cpp Lines 101 to 129 in ddd49b5
And it's confusing to me since that's after the default update url is applied, and looks like it would never happen? I also saw this block here that seems to be for representing the status on that update list, but it isn't an else block so it reads as if it would only ever work for fresh installs and not updates. So not sure if I'm reading the wrong spot for that too. MagicSetEditor2/src/data/installer.cpp Lines 290 to 312 in ddd49b5
|
sorry i should have linked better right here is where MSE reads the data it gets from the server MagicSetEditor2/src/gui/update_checker.cpp Lines 110 to 117 in d0522f6
the VersionData class is defined here, which gets Version, Description, and New Update URL, which I have been able to get the program to recognize MagicSetEditor2/src/gui/update_checker.cpp Lines 45 to 52 in d0522f6
the description gets used here MagicSetEditor2/src/gui/update_checker.cpp Line 190 in d0522f6
but i can't figure out how to get it to read the packages list from the server response, so it can actually download the installers. the best idea i've gotten so far is maybe it should be happening here, but we're on USE_OLD_STYLE_UPDATE_CHECKER and this is getting skipped with no alternative being available? MagicSetEditor2/src/gui/update_checker.cpp Lines 70 to 85 in d0522f6
|
Yeah if I'm reading the history of this right it looks like the original update pattern was that all the packages were distributed "officially" and the updater only worked for one endpoint that kind of maintained all of them. I can try removing that "USE_OLD" check and just see what happens. I want to look around and see what else that applies to; the hardcoded update urls are all to the old SourceForge page which is broken anyways. |
I'd like to set up a new host for Check online for updates, but I'm not sure how to format the data I'm sending to MSE. From reading update_checker.cpp and related, it looks like it should be approximately the form
i've tried send this as this raw text, this text unindented, in JSON form, and each of those as the content of a file named "updates", and none of those was the trick.
MSE is getting the server response, but here in update_checker isn't reading data MSE understands, so it just closes the update thinking there's no updates.
The text was updated successfully, but these errors were encountered: