Giter Site home page Giter Site logo

dfhackscripts's People

Contributors

akasurak avatar grubsteak avatar ivantumanov avatar qvatch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dfhackscripts's Issues

problem with digshape bez

When the origin and major axis are aligned in the vertical, digshape bez draws a straight line between them, no matter the cursor placement.

channeling on ramps

digshape doesn't mark over ramps, this might get annoying if you were channeling down several z-levels. I support continued lack of designating stairs though.

Getting an error trying to make shapes

Finally decided to try and tackle using this tool today, but it's just straight throwing errors for everything. Here is the error, it's the same no matter what I attempt to do with it.

E: FloatDomainError: NaN hack/scripts/digshape.rb:335:in round'
hack/scripts/digshape.rb:335:in block in drawPolygon' hack/scripts/digshape.rb:334:in each'
hack/scripts/digshape.rb:334:in drawPolygon' hack/scripts/digshape.rb:527:in <top (required)>'
eval:2:in load' eval:2:in block in

'

Actually here's a star error:

E: FloatDomainError: NaN hack/scripts/digshape.rb:335:in round'
hack/scripts/digshape.rb:335:in block in drawPolygon' hack/scripts/digshape.rb:334:in each'
hack/scripts/digshape.rb:334:in drawPolygon' hack/scripts/digshape.rb:527:in <top (required)>'
eval:2:in load' eval:2:in block in

'
eval:2:in catch'

[] and /* don't work on qwertz keyboards

probably because they're a double-meta key combo (which I don't know how to handle yet in dfhack lua), and alt-gr which is specifically the right alt key.

c,v,b,n are unused on the gui/digshape screen so can at least be used there. I should add some pointer comments so that end users can rebind those four keys until I get a better fix.

It's also possible this is a normal dfhack issue when the language isn't set to english. Should check other scripts to see if they use SECONDSCROLL_PAGEUP /DOWN and see if they work or if they use a different way of reading keypresses.

Floodfill

add a flood fill to fill in polygons and other shapes.
could cause massive lag and also unintended flooding would be extremely frusturating

digshape flood is pretty dangerous

Would it be possible to do something like canceling the command if you've left a hole? Perhaps, something like if the algorithm is going to mark the edge of the map for digging, cancel the whole thing.

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.