odrick / free-tex-packer

Free texture packer
http://free-tex-packer.com/
MIT License
911 stars 168 forks source link

the 'realTextureFileName' field of plist #31

Closed tonyzzp closed 4 years ago

tonyzzp commented 4 years ago

for some software or game engine,the 'realTextureFileName' field of plist should include file extension. will you add a choice in the export settings?

rtalon83 commented 4 years ago

What do you mean? One param inside atlas.json?

odrick commented 4 years ago

It's part of plist file

<dict>
    <key>format</key>
    <integer>3</integer>
    <key>pixelFormat</key>
    <string><%config.format%></string>
    <key>premultiplyAlpha</key>
    <false/>
    <key>realTextureFileName</key>
    <string><%config.imageFile%></string>
    <key>size</key>
    <string>{<%config.imageWidth%>,<%config.imageHeight%>}</string>
    <key>textureFileName</key>
    <string><%config.imageFile%></string>
</dict>

Looks like config.imageFile does not contains extension. Need to check.

tonyzzp commented 4 years ago

It's part of plist file

<dict>
    <key>format</key>
    <integer>3</integer>
    <key>pixelFormat</key>
    <string><%config.format%></string>
    <key>premultiplyAlpha</key>
    <false/>
    <key>realTextureFileName</key>
    <string><%config.imageFile%></string>
    <key>size</key>
    <string>{<%config.imageWidth%>,<%config.imageHeight%>}</string>
    <key>textureFileName</key>
    <string><%config.imageFile%></string>
</dict>

Looks like config.imageFile does not contains extension. Need to check.

yes i mean that

odrick commented 4 years ago

Fixed. Could you test fix here? http://free-tex-packer.com/test/

tonyzzp commented 4 years ago

Fixed. Could you test fix here? http://free-tex-packer.com/test/

yes,it is ok now for me. but I found that the 'realTextureFileName' and 'textureFileName' is the same in 'TexturePacker'

odrick commented 4 years ago

Good. I'm not sure about right 'realTextureFileName' and 'textureFileName' values. And cocos2d does not have normal documentation...