GMDprivateServer icon indicating copy to clipboard operation
GMDprivateServer copied to clipboard

SubmitGJUserInfo/restoreGJItems.php

Open KoLeS2109 opened this issue 1 year ago • 12 comments

1.7 features

KoLeS2109 avatar Nov 10 '22 15:11 KoLeS2109

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

fancythedeveloper avatar Nov 11 '22 13:11 fancythedeveloper

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

KoLeS2109 avatar Nov 12 '22 06:11 KoLeS2109

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

Cvolton avatar Nov 13 '22 21:11 Cvolton

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

KoLeS2109 avatar Nov 13 '22 22:11 KoLeS2109

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

KoLeS2109 avatar Nov 13 '22 22:11 KoLeS2109

btw, it sends empty data :/

KoLeS2109 avatar Nov 13 '22 22:11 KoLeS2109

image

KoLeS2109 avatar Nov 13 '22 22:11 KoLeS2109

it works!

KoLeS2109 avatar Nov 13 '22 22:11 KoLeS2109

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

KoLeS2109 avatar Nov 13 '22 23:11 KoLeS2109

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

Cvolton avatar Feb 08 '23 00:02 Cvolton

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

Screenshot_20230208-081509_ES File Explorer.jpg

KoLeS2109 avatar Feb 08 '23 05:02 KoLeS2109

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

KoLeS2109 avatar Feb 08 '23 05:02 KoLeS2109