oganm / dd2vtt_importer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hey, I've been messing about with your tool and I think I've discovered a bug.
When I import a map, the x-offset is set perfect, but the y-offset is off by a considerable amount (a few map tiles off). I've messed with the output ppi and different map sizes and all but one seem to line up as well as your test.dd2vtt
project. The exception is test_map_20x20_64ppi.dd2vtt
, which matches the test.dd2vtt
ppi and map size.
I've also attempted fixing it by tinkering with the convert_coords()
function in util.gd
and I can get everything to line up if I change the y-offset of /2
to something else, (vect.y*resolution.pixels_per_grid -resolution.map_size.x*resolution.pixels_per_grid/2)
) but I have to do it on a map-by-map basis. I'm unsure of how to make it more dynamic, but I believe that that may be the problem area.
I've attached the dungeondraft files, dd2vtt files, and the project.godot I've been trying it out with so you can try reproducing it.
test-maps.zip
Trying-out_dd2vtt.zip
.
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.