Coder Social home page Coder Social logo

dd2vtt_importer's People

Contributors

oganm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dd2vtt_importer's Issues

Problem with the y-coordinates lining up properly (being too high up)

Hey, I've been messing about with your tool and I think I've discovered a bug.
image
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
.

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.