Coder Social home page Coder Social logo

texture_unpacker_scirpt's People

Contributors

bbb-siyuan avatar dependabot[bot] avatar heluicare avatar hitechcomputergeek avatar ittus avatar onepill avatar pavle-goloskokovic avatar simonren avatar terrantian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

texture_unpacker_scirpt's Issues

Some images are generated wrong

Hi,
The script works well, generates images, but some images should not be generated like how they are generated.

for example:
ptmodelsprite_id18754

trackback most recent call last

Hi, please help me this problem cracked my brain.

I installed Python2.7 and and Pillow-3.2.0-py2.7. Now when i run either one of the bellow command:
C:\python27\python.exe unpacker.py atlas,
C:\python27\python.exe unpacker.py atlas plist

the below error comes,

Traceback (most recent call last):
File "unpacker.py", line 152, in
gen_png_from_data(filename, ext)
File "unpacker.py", line 115, in gen_png_from_data
frames = frames_from_data(filename, ext)
File "unpacker.py", line 29, in frames_from_data
root = ElementTree.fromstring(open(data_filename, 'r').read())
File "c:\python27\lib\xml\etree\ElementTree.py", line 1300, in XML
parser.feed(text)
File "c:\python27\lib\xml\etree\ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "c:\python27\lib\xml\etree\ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 2, column 101

Note: My atlas.png and atlas.plist and unpacker.py are in the same directory.

Conversion Error: invalid literal for int() with base 10

Data files:
https://www.dropbox.com/sh/d9h8exvwclfvbqy/AADDPdVfe8_6VeaCAgwmxNJta?dl=0

Environment:

python3.6
Pillow==4.0.0

Command:
python unpacker.py select_gameimage plist

Output:

.plist data format passed
Traceback (most recent call last):
  File "unpacker.py", line 154, in <module>
    gen_png_from_data(filename, ext)
  File "unpacker.py", line 115, in gen_png_from_data
    frames = frames_from_data(filename, ext)
  File "unpacker.py", line 42, in frames_from_data
    width = int(rectlist[3] if frame['rotated'] else rectlist[2])
ValueError: invalid literal for int() with base 10: '85.0'

Unpacking plist error

Hi,

I am trying to unpack the two sprites in the attach zip file, but I kept on getting parsing error. I tried to play around with the unpacker.py but was no success on parsing the plist file. Can you help take a look? Thanks!

atlas.zip

  File "unpacker.py", line 154, in <module>
    gen_png_from_data(filename, ext)
  File "unpacker.py", line 115, in gen_png_from_data
    frames = frames_from_data(filename, ext)
  File "unpacker.py", line 29, in frames_from_data
    root = ElementTree.fromstring(open(data_filename, 'r').read())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 2, column 101

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.