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

Looking for more information, happy to contribute to docs #5

Open
gabrielhicks opened this issue Jul 11, 2022 · 3 comments
Open

Looking for more information, happy to contribute to docs #5

gabrielhicks opened this issue Jul 11, 2022 · 3 comments

Comments

@gabrielhicks
Copy link

gabrielhicks commented Jul 11, 2022

Hello!

I am currently attempting to serialize some custom sprites to add into the rsc-server. Ive tried walking through the code and for whatever reason I have been unsuccessful in dumping the sprites from the entity .jag to determine what format I need to arrange the new assets in to serialize.

Effectively I want to replace the main character chest, legs, and head1 to play with implementing a new character design.

I have been able to identify that I likely need to replace the head1.dat file etc inside of the .jag, which I believe the .dat to be a file that contains the array of canvas objects for the animation, but I'm not sure if there is a way to serialize the images together in a cohesive way to create that .dat.

Ive been an RSC player since 2000 and continued playing private servers into 2014.

If I can figure the process out, I'd love to add to the docs for future developers who might stumble upon the repos!

TIA!

@gabrielhicks
Copy link
Author

Decided to start troubleshooting the dump issue and found a resolution in PR #6 will keep working as I play with the codebase(s)

@gabrielhicks
Copy link
Author

Started playing with encoding the sprites and archiving, but I keep ending up with empty .pngs when I deserialized what Ive archived 😂

@gabrielhicks
Copy link
Author

gabrielhicks commented Jul 11, 2022

Currently able to serialize the entity sprites into a JagArchive that is the same size as the original (109 with the different a and f suffixes from hasA and hasF animation info), however when loading the archive, it is returning 0 sprite objects. Previously it was returning 3, longbow, crossbow, and sheep (the only three with a limited number of frames ~15 IIRC)

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

No branches or pull requests

1 participant