2003scape / rsc-sprites

🖼️ (de)serialize runescape classic entity, ui and texture images
GNU Affero General Public License v3.0
6 stars 4 forks source link

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

Open gabrielhicks opened 2 years ago

gabrielhicks commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

gabrielhicks commented 2 years ago

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)