Skip to content

SubmitGJUserInfo/restoreGJItems.php - #945

Open
KoLeS2109 wants to merge 3 commits into
Cvolton:masterfrom
KoLeS2109:master
Open

SubmitGJUserInfo/restoreGJItems.php#945
KoLeS2109 wants to merge 3 commits into
Cvolton:masterfrom
KoLeS2109:master

Conversation

@KoLeS2109

Copy link
Copy Markdown

1.7 features

@fancythedeveloper

Copy link
Copy Markdown

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

@KoLeS2109

Copy link
Copy Markdown
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

Cvolton commented Nov 13, 2022

Copy link
Copy Markdown
Owner

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
Copy Markdown
Author

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

@KoLeS2109

Copy link
Copy Markdown
Author

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

@KoLeS2109

KoLeS2109 commented Nov 13, 2022

Copy link
Copy Markdown
Author

btw, it sends empty data :/

@KoLeS2109

Copy link
Copy Markdown
Author

image

@KoLeS2109

Copy link
Copy Markdown
Author

it works!

@KoLeS2109

Copy link
Copy Markdown
Author

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

@Cvolton

Cvolton commented Feb 8, 2023

Copy link
Copy Markdown
Owner

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
Copy Markdown
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
Copy Markdown
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