EsotericSoftware / spine-editor

Issue tracking for the Spine editor.
http://esotericsoftware.com/
29 stars 2 forks source link

export multi resolution missing undefined case. #738

Closed jonlepage closed 11 months ago

jonlepage commented 1 year ago

i have a issue, i need export my file in multiple resolution. So i have undefined: max (100%) -med: medium size (-50%) -low: for mobile (-80%)

when i fill the setup, the software seem missing one texture package ! it produce [1,2] but missing index 0 ! if i add suffix to index 0 it work but i dont want suffix for my max resolution ! how can i fix this issue ?

see the empty affix. image

see the missing texture pack ! image

this will produce error with my loader because default atlas missing !: image

https://github.com/pixijs/spine/blob/8c9778b631f86686b6e10eb3c415f5424da9b6a1/packages/loader-base/src/loaders.ts#L72

thanks

ps: i cant log to your forum , your server say error ! so i post here sry .

misaki-eymard commented 1 year ago

ps: i cant log to your forum , your server say error ! so i post here sry .

Could you please contact us via email so we can check the status of your forum account so that you can log in to the forum again?: contact@esotericsoftware.com

jonlepage commented 1 year ago

ps: i cant log to your forum , your server say error ! so i post here sry .

Could you please contact us via email so we can check the status of your forum account so that you can log in to the forum again?: contact@esotericsoftware.com

send done. otherwise my theory is that when you iterate on those data. You probably ignore if the entry is empty but with the wrong index ? something like ?

type entries = [scale: number, suffix: string, filter: number][]; //2d matrix
const entry = entries[0];
if(!entry[1]) continue; // ignore if 0 (scale) is empty instead of 1 (suffix)

hard to say without source code !

NathanSweet commented 11 months ago

Specifying the scale number is enough. When you leave the suffix blank, the atlas is still output, but it is placed in a subfolder named after the scale. This prevents collisions if multiple were left blank. We could avoid the subfolder if only one is blank.

NathanSweet commented 11 months ago

4.2.00-beta

jonlepage commented 11 months ago

We could avoid the subfolder if only one is blank.

yes thanks, it save lot of step after export