Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 117 118 [119]

Author Topic: DFHack 0.44.12-r2  (Read 156537 times)

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1770 on: May 17, 2019, 07:35:47 am »


IT WOOORKS! :D
Would you mind testing with smaller map tiles than text tiles (zooming out in the map view should do the trick). I'm not sure how it'll handle that case.

I NEED KNOW SIZE OF CHAIN!
I'm not quite sure what you're looking for or why you need it. Can you explain what you need it for?

My understanding is that sizes of objects aren't necessarily fixed, although maybe chains are all the same size. If they have a size, it should be tracked somewhere, so looking for it through DFHack should be possible (I doubt anyone can tell you off the top of their head).
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

DerMeister

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1771 on: May 17, 2019, 09:00:56 am »


IT WOOORKS! :D
Would you mind testing with smaller map tiles than text tiles (zooming out in the map view should do the trick). I'm not sure how it'll handle that case.

I NEED KNOW SIZE OF CHAIN!
I'm not quite sure what you're looking for or why you need it. Can you explain what you need it for?

My understanding is that sizes of objects aren't necessarily fixed, although maybe chains are all the same size. If they have a size, it should be tracked somewhere, so looking for it through DFHack should be possible (I doubt anyone can tell you off the top of their head).
I need chain size for weapon made from one trap component and one chain. I know trap component size, but not know chain size.
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1772 on: May 17, 2019, 11:19:11 am »


I NEED KNOW SIZE OF CHAIN!
I'm not quite sure what you're looking for or why you need it. Can you explain what you need it for?

My understanding is that sizes of objects aren't necessarily fixed, although maybe chains are all the same size. If they have a size, it should be tracked somewhere, so looking for it through DFHack should be possible (I doubt anyone can tell you off the top of their head).
I need chain size for weapon made from one trap component and one chain. I know trap component size, but not know chain size.

There are nicer ways to ask. As far as I can tell chains don't have a size, at least not in the traditional sense (they have no item subtype so there is no [SIZE] token. However, if we look at a trap component made of iron and a chain made of iron and compare their weight we can guess a size. An enormous iron corkscrew weighs 12.56 and has a size of 160, an iron chain has a weight of 39.25, therefore, if SIZE is a unit of volume, the chain would have a size of 500. As a comparison, an iron two-handed sword has a weight of 7.65, which would be a SIZE of 97.45, compared to it's listed size of 90. So obviously it's not exact, and for some reason it's huge, but that's the closest you can get. Of course you could also just use the size of whip as an approximation for a weapon chain, since a weapon made with a chain will probably cut off some of the chain anyway.
Logged

DerMeister

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1773 on: May 17, 2019, 11:56:33 am »


I NEED KNOW SIZE OF CHAIN!
I'm not quite sure what you're looking for or why you need it. Can you explain what you need it for?

My understanding is that sizes of objects aren't necessarily fixed, although maybe chains are all the same size. If they have a size, it should be tracked somewhere, so looking for it through DFHack should be possible (I doubt anyone can tell you off the top of their head).
I need chain size for weapon made from one trap component and one chain. I know trap component size, but not know chain size.

There are nicer ways to ask. As far as I can tell chains don't have a size, at least not in the traditional sense (they have no item subtype so there is no [SIZE] token. However, if we look at a trap component made of iron and a chain made of iron and compare their weight we can guess a size. An enormous iron corkscrew weighs 12.56 and has a size of 160, an iron chain has a weight of 39.25, therefore, if SIZE is a unit of volume, the chain would have a size of 500. As a comparison, an iron two-handed sword has a weight of 7.65, which would be a SIZE of 97.45, compared to it's listed size of 90. So obviously it's not exact, and for some reason it's huge, but that's the closest you can get. Of course you could also just use the size of whip as an approximation for a weapon chain, since a weapon made with a chain will probably cut off some of the chain anyway.
This will be ogre's weapon, so chain may be long.
Logged

Japa

  • Bay Watcher
  • Spoopy time!
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1774 on: May 17, 2019, 12:33:20 pm »

A chain inside a well can stretch from the surface down to the depths of hell, potentially, so....

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1775 on: May 17, 2019, 01:40:47 pm »

A chain inside a well can stretch from the surface down to the depths of hell, potentially, so....

Very true. Still I was surprised it was so heavy when I looked. Granted the weight -> size comparison/ratios don't really work, because there are several items with 0 weight and non-zero size. It also seems to be off by about 10% for all of the items I compared with weights and sizes, so there is probably some other factors that go into the calculation of weight.
Logged

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1776 on: May 17, 2019, 01:50:00 pm »


IT WOOORKS! :D
Would you mind testing with smaller map tiles than text tiles (zooming out in the map view should do the trick). I'm not sure how it'll handle that case.
i already zoomed in and out and scrolling worked fine (meph32lite+curses800x600)
i don't know what you changed axactly, but it does the trick.
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1777 on: May 18, 2019, 01:25:48 pm »

i already zoomed in and out and scrolling worked fine (meph32lite+curses800x600)
i don't know what you changed axactly, but it does the trick.
Basically, mousequery was always checking the cursor position against the window size in text tiles to determine when to scroll the map. TWBT modifies the cursor position that gets reported when you're hovering over the map so that it reports map tile coordinates instead. This meant that when the map tiles are larger than the text tiles, the cursor position in the lower/right areas of the map would never get large enough to trigger mousequery's scrolling. Thanks for the help diagnosing it - the fix is merged now, so it'll be in the next DFHack release.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: DFHack 0.44.12-r2
« Reply #1778 on: May 18, 2019, 01:46:30 pm »

i already zoomed in and out and scrolling worked fine (meph32lite+curses800x600)
i don't know what you changed axactly, but it does the trick.
Basically, mousequery was always checking the cursor position against the window size in text tiles to determine when to scroll the map. TWBT modifies the cursor position that gets reported when you're hovering over the map so that it reports map tile coordinates instead. This meant that when the map tiles are larger than the text tiles, the cursor position in the lower/right areas of the map would never get large enough to trigger mousequery's scrolling. Thanks for the help diagnosing it - the fix is merged now, so it'll be in the next DFHack release.
i'll also tell my friend who had the same problem.
also thanks for the great explanation.
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)
Pages: 1 ... 117 118 [119]