manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
39 stars 50 forks source link

DragRuler not working with Foundry 12 #326

Closed Haditsch closed 1 week ago

Haditsch commented 2 months ago

When attempting to drag a token, a duplicate shows up and no tokens can be moved afterwards

Cempres commented 2 months ago

@manuelVo are there any plans on updating the module, as I'm not updating to v12 without this module :) Thanks for all the great work you do!

apoapostolov commented 2 months ago

Same here. Probably not much but @manuelVo I will add a 20$ bounty on this.

CacciaMorta commented 2 months ago

Same problem. The new version works only after disabling this module.

morgan613 commented 2 months ago

Elevation Ruler works for foundry v12 and does all the drag ruler things! If I shouldn't say this here, feel free to delete comment. I figured it is okay because this is largely a volunteer based community.

apoapostolov commented 2 months ago

@morgan613 does it bring pathfinding? if not, Drag Ruler is a must-have for me on V12.

morgan613 commented 2 months ago

it does!

Once you install the module you just have to click a UI toggle on the left of the screen to enable pathfinding

apoapostolov commented 2 months ago

For some reason couldn't get it work. But still, it is nice to have competition.

I am still hoping and standing to my country @manuelVo want to see Drag Ruler still kick in for V12.

morgan613 commented 2 months ago

@apoapostolov you couldn't get the pathfinding to work? Here is a screenshot of the UI toggle button I was referring to that is created when you enable elevation ruler. If it still isn't working feel free to email me at morgandavies613@gmail.com since it would probably be good to move the conversation elsewhere.

Foundry Virtual Tabletop 6_4_2024 10_29_41 AM

manuelVo commented 2 months ago

Since requests are flowing in steadily, it's possibly a good idea to state this publicly: I plan to port Drag Ruler to v12 in the coming weeks.

iLLHunter commented 1 month ago

fantastic news. thank you

nitmpez commented 1 month ago

Its a quick hack, but drag ruler atleasts works if you modify the below code in src/ruler.js line 108 from:

 if (d.x === this.destination.x && d.y === this.destination.y) return;

to:

  if (d.x === destination.x && d.y === destination.y) return;
Ginkgo85 commented 1 month ago

Since requests are flowing in steadily, it's possibly a good idea to state this publicly: I plan to port Drag Ruler to v12 in the coming weeks.

When is the update coming?

manuelVo commented 1 month ago

When is the update coming?

Whenever I find a time slot where I have sufficient time and motivation remaining to work on this. Work is pretty stressful right now and my evenings are short (and weekends fully booked). Unfortunately this means I cannot give you an estimation for when this will happen.

manuelVo commented 1 week ago

Thanks to @TPNils work (and some fixes by @n0q) a v12 Version is now released.