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

decompile: parse luac: Error( Stack #40

Closed
jjc6676 opened this issue May 8, 2024 · 7 comments
Closed

decompile: parse luac: Error( Stack #40

jjc6676 opened this issue May 8, 2024 · 7 comments

Comments

@jjc6676
Copy link

jjc6676 commented May 8, 2024

Getting an error message when trying to load file. These were working before. Just wondering what I can do to get it working?
Any help would be greatly appreciated.

Screenshot 2024-05-08 162631

@toxamin
Copy link
Contributor

toxamin commented May 20, 2024

perhaps you should send the file so the issue can be debugged? :D

@jjc6676
Copy link
Author

jjc6676 commented May 21, 2024

card.zip

Thank you for the suggestion @toxamin

@toxamin
Copy link
Contributor

toxamin commented May 21, 2024

this seems to be a modified non-official bytecode format, i've checked the file to discover the format id has been changed to 1 and an extra luanum has been added to the header (9221).
i have attached the decompiled file
output.zip

@toxamin
Copy link
Contributor

toxamin commented May 21, 2024

note, should you wish to decompile the file yourself all you need to do is simply remove the extra 8 bytes, which are shown in the screenshot:
image

@jjc6676
Copy link
Author

jjc6676 commented May 21, 2024

This is most excellent, and I appreciate your hard work. Can you tell me which program I can use to remove the extra bytes?
VS Studio? Pulsar? or something else? I apologize as I am still learning. @toxamin

Thank you in advance!

@jjc6676
Copy link
Author

jjc6676 commented May 21, 2024

I learned that I need to use a hex editor @toxamin
The part above highlighted in the second part with the $ symbol... Do I need to delete that as well?

@jjc6676
Copy link
Author

jjc6676 commented May 21, 2024

I figured it all out - sorry for the questions. Thank you so much!

@jjc6676 jjc6676 closed this as completed May 21, 2024
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