Coder Social home page Coder Social logo

ratr0-utils's People

Contributors

toniramirezm avatar weiju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ratr0-utils's Issues

ratr0-maketiles fails to convert non interleave images without a mask

ratr0-maketiles -ni tiles.png ../../converted/tiles/tiles.ts                  
Traceback (most recent call last):
  File "/Users/toni/Library/Python/3.9/bin/ratr0-maketiles", line 38, in <module>
    tiles.write_tiles(im, args.outfile, tile_size, colors,
  File "/Users/toni/Library/Python/3.9/lib/python/site-packages/ratr0/util/tiles.py", line 201, in write_tiles
    write_tile_file(outfile, im, tile_size, planes, colors, map_words_per_row,
  File "/Users/toni/Library/Python/3.9/lib/python/site-packages/ratr0/util/tiles.py", line 253, in write_tile_file
    planes.append(mask_plane)
UnboundLocalError: local variable 'mask_plane' referenced before assignment

It is easy to fix, I will create a PR when possible.

ratr0-converttiled: Errors

Traceback (most recent call last):
  File "/home/user/.local/bin/ratr0-converttiled", line 34, in <module>
    args.palette24, args.force_depth, args.verbose)
  File "/home/user/.local/lib/python3.6/site-packages/ratr0/util/tiled.py", line 21, in convert_tiles
    colors = tiles.make_colors(im, force_depth, verbose)
AttributeError: module 'ratr0.util.tiles' has no attribute 'make_colors'

I tried using the ratr0-converttiled script but I find some errors, maybe it hasn't been updated after a refactoring or something (c370c18 looks likely)?
Looks like it should use png_utils.make_colors() instead, but it is not only that that's the issue.

The line after (tiles.write_tiles) also have some different parameters such as force_depth and create_mask.

I first tried installing with pip but have also built from source.

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.