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

Weird bug #1365

Closed
Worldgate opened this issue Nov 26, 2024 · 6 comments
Closed

Weird bug #1365

Worldgate opened this issue Nov 26, 2024 · 6 comments
Labels

Comments

@Worldgate
Copy link

I'm using ASB Export Gun on ASE, fully updated, and for some reason after the 12'th import i get that error. It doesn't give me the error if i do export dino by hand, but if i use the gun, that error.

image

@cadon cadon added the bug label Nov 26, 2024
@cadon
Copy link
Owner

cadon commented Nov 26, 2024

  • Is the file imported correctly if you drag&drop it onto ASB?
  • Does it always happen after the 12th Gun-import?

It could be the file is not yet written completely yet so ASB can only read a part of that file.

@Worldgate
Copy link
Author

the file is written differently though, it could be the mod, i'll get some example files. Sadly if it is the mod, i doubt the mod author will even bother to update it since it's ASE and the modding community abandoned us a long time ago.

@Worldgate
Copy link
Author

Giganotosaurus_365176379-340077477.zip

@Worldgate
Copy link
Author

Giganotosaurus_365176379-340077477.sav is written correctly, but the second file seems weird in comparison.

@cadon cadon closed this as completed in 24606ef Nov 26, 2024
@cadon
Copy link
Owner

cadon commented Nov 26, 2024

I think I fixed it. The error was caused by a different encoding (ASB expects the string in utf8, but the failing file contained a string encoded in utf16, due to chinese characters in an ancestor's name).
The encoded json string has 4 leading bytes which contain the length of the string. Apparently when encoded in utf16, that length is the negative length of utf16 chars, probably to distinguish the encodings. At least that's what I hope and it handles the file you sent correctly. I'll release the fix in the next couple of days.

@Worldgate
Copy link
Author

oh thanks, i forgot there was a lot of chinese characters back in the old days, these dinos are from the final saves, i wanted to play again where i left off. :D

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

No branches or pull requests

2 participants