Skip to content
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

SubmitGJUserInfo/restoreGJItems.php #945

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

KoLeS2109
Copy link

1.7 features

@fancythedeveloper
Copy link

Someone actually bothered to fix the Restore functionality for GDPS? Nice.

@KoLeS2109
Copy link
Author

I don't know how to provoke the game to send a request to submitGJUserInfo.php, so maybe the code will change a bit if I find more info

@Cvolton
Copy link
Owner

Cvolton commented Nov 13, 2022

I don't know how to provoke the game to send a request to submitGJUserInfo.php, so maybe the code will change a bit if I find more info

it sends a req to that when updateGJUserScore returns -6

@KoLeS2109
Copy link
Author

sorry, but updateGJUserScore must return -9 to provoke game send req to submitGJUserInfo

@KoLeS2109
Copy link
Author

201547877-abff5534-4b28-4fbb-a557-cda63abb5640

@KoLeS2109
Copy link
Author

KoLeS2109 commented Nov 13, 2022

btw, it sends empty data :/

@KoLeS2109
Copy link
Author

image

@KoLeS2109
Copy link
Author

it works!

@KoLeS2109
Copy link
Author

201549055-2c21c8ad-08d4-4055-bfaa-e4d52b64d22e

@Cvolton
Copy link
Owner

Cvolton commented Feb 8, 2023

have you tested restoring with this? the currently documented format for restoreGJItems is as follows:

//restoreGJItems.php response
//tested up to 1.9

1 = official level
1:beatenNormalMode,beatenPractice,coins; //main levels are split with ; for example 1,1,3;1,0,2;0,1,0;

2:stars
3:demons
4:jumps
5:attempts
6:onlineLevels

@KoLeS2109
Copy link
Author

The problem is that the client only sends data about online levels via submitGJUserInfo.php

Screenshot_20230208-081509_ES File Explorer.jpg

@KoLeS2109
Copy link
Author

have you tested restoring with this? the currently documented format for restoreGJItems is as follows:

//restoreGJItems.php response
//tested up to 1.9

1 = official level
1:beatenNormalMode,beatenPractice,coins; //main levels are split with ; for example 1,1,3;1,0,2;0,1,0;

2:stars
3:demons
4:jumps
5:attempts
6:onlineLevels

Restore works if you follow this format. But maybe there is another option for mappacks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants