mathishouis / scuti-extractor

An extractor for Habbo SWF in order to make them compatible with scuti-renderer
4 stars 1 forks source link

Missing Spritesheet template logic #1

Closed Wimell closed 11 months ago

Wimell commented 11 months ago

Hey! Love that you've included animations directly inside the spritesheet, I'm trying to utilize this for a small project on Ducket.net. But I'm running into an issue when creating the spritesheets.

Looking at the JSON sprite sheets in Scuti-Resources

Specifically the Cine Star vs template there does seem to be some additional functionality inside the compiled resources.

For example, inside the compiled sprite we have:

"spriteSourceSize": {
   "x": -1,
   "y": -132,
   "w": 55,
   "h": 156
 },

Which has the X + Y attrs set.

But inside the spritesheet.tpl these are hardcoded to 0.

"spriteSourceSize": {
   "x": 0,
   "y": 0,
   "w": <%= image.width %>,
   "h": <%= image.height %>
 },

Wondering if there are some uncommitted changes that havent been pushed to the repo?

Wimell commented 11 months ago

Resolved - This was my bad.

I am working with xml files that do not double up the classname (throne_throne_64_b_0_0) and I had to adjust the OffsetBuilder.ts

Code can be seen here