weiju / ratr0-utils Goto Github PK
View Code? Open in Web Editor NEWUtility collection for the RATR0 Engine
License: GNU General Public License v3.0
Utility collection for the RATR0 Engine
License: GNU General Public License v3.0
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.