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

Problems in the new version of gdccdated #4

Closed
papaloredsxd opened this issue Mar 19, 2024 · 23 comments
Closed

Problems in the new version of gdccdated #4

papaloredsxd opened this issue Mar 19, 2024 · 23 comments

Comments

@papaloredsxd
Copy link

ungzip error:
TypeError: The encoded data was not valid.

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 19, 2024

TypeError: The encoded data was not valid.

That means unencoded save file (XML) is not valid UTF-8, that never happened to me.

Tell me which version and os (android or windows) of Geometry Dash generated the file and file name (CCGameManager.dat or CCLocalLevels.dat).

Compress the file to zip and attach zip, unless file is CCGameManager.dat and you are logged in and you don't want other people use your Geometry Dash account.

@papaloredsxd
Copy link
Author

TypeError: The encoded data was not valid.

That means unencoded save file (XML) is not valid UTF-8, that never happened to me.

Tell me which version and os (android or windows) of Geometry Dash generated the file and file name (CCGameManager.dat or CCLocalLevels.dat).

Compress the file to zip and attach zip, unless file is CCGameManager.dat and you are logged in and you don't want other people use your Geometry Dash account.

@xBZZZZ

You're wrong, that's not it. It literally doesn't work. When I try an older version of gdccdated it works but in the current version of gdccdated it doesn't work.

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 21, 2024

When I try an older version of gdccdated it works but in the current version of gdccdated it doesn't work.

That's because older gdccdated used lossy UTF-8 parser that handles errors by emitting U+FFFD ().
Newer gdccdated uses strict UTF-8 parser that handles errors by giving up.

Also why don't you send the not working save file? (my save files work (android, gd 2.2.13))

@papaloredsxd
Copy link
Author

When I try an older version of gdccdated it works but in the current version of gdccdated it doesn't work.

That's because older gdccdated used lossy UTF-8 parser that handles errors by emitting U+FFFD (). Newer gdccdated uses strict UTF-8 parser that handles errors by giving up.

Also why don't you send the not working save file? (my save files work (android, gd 2.2.13))

The ccgamemanager.dat of the gd 2.2 does not work in the lastest version of gdccadated but the ccgamenaager.dat of the gd 2.1 does work in the latest version of gdccadated, you should try to return the gdccadated to a previous version

@xBZZZZ xBZZZZ closed this as completed in e83b87f Mar 23, 2024
@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 23, 2024 via email

@papaloredsxd
Copy link
Author

try now

bad UTF-8
code point offset inside data: 2823548
error offset inside code point: 0
data length:

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 25, 2024 via email

Repository owner deleted a comment from papaloredsxd Mar 25, 2024
Repository owner deleted a comment from papaloredsxd Mar 25, 2024
@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 25, 2024

bad UTF-8
code point offset inside data: 2823548
error offset inside code point: 0
data length:

click replace errors to behave like old gdccdated

but beware that saving will not keep broken UTF-8 (like old gdccdated)
also, is data length: actually empty for you or just copy+paste skill issue?

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 26, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 27, 2024

please downgrade the version of gdccdated to that version that I already told you
https://github.com/xBZZZZ/gdccdated/tree/7fc58401788a1e6d2b491a40e0a142113004a22b

why? does replace errors not behave like old version for you?
also why so old version? why not 6422943 (version before UTF-8 to js string (UTF-16) converter changes)?

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 27, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 27, 2024

ANSWER THIS FIRST:

does replace errors not behave like old gdccdated for you?
Did you forget when I told you the reason?
I think I found reason:
  • The ccgamemanager.dat of the gd 2.2 does not work in the lastest version of gdccadated but the ccgamenaager.dat of the gd 2.1 does work in the latest version of gdccadated, you should try to return the gdccadated to a previous version
but that reason is outdated since e83b87f unless replace errors doesn't behave like old gdccdated

@xBZZZZ xBZZZZ pinned this issue Mar 27, 2024
@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 27, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 27, 2024

Yes

what happens when you click replace errors button in new gdccdated?

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 27, 2024 via email

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 27, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 28, 2024

is this correct?:

  • both old gdccdated (6422943 (before UTF-8 strict)) and new gdccdated (e83b87f) with replace errors can load file but there is difference

reasons for asking (click to expand)

whosays what (not full text)
@papaloredsxd
When I try an older version of gdccdated it works
@xBZZZZ
does replace errors not behave like old gdccdated for you?
@papaloredsxd
Yes
@xBZZZZ
what happens when you click replace errors button in new gdccdated?
@papaloredsxd
When I click on the "replace errors" button the file does load

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 28, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 29, 2024

Yes
what is difference between:
  • old gdccdated (6422943 (before UTF-8 strict))
  • new gdccdated (e83b87f) with replace errors
?

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 29, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 29, 2024

The old gdccdated is better
answer not useful, need more precise difference

@papaloredsxd
Copy link
Author

papaloredsxd commented Mar 30, 2024 via email

@xBZZZZ
Copy link
Owner

xBZZZZ commented Mar 30, 2024

I already told you
tell me again

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

No branches or pull requests

2 participants