Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: D scroll, doesnt dump  (Read 786 times)

knutor

  • Bay Watcher
  • ..to hear the lamentation of the elves!
    • View Profile
D scroll, doesnt dump
« on: June 13, 2020, 09:40:32 pm »

Ive a scroll, crafted elsewhere, that is bugged. No idea what bugged it. It's got a D, dump flag, but nobody's coming around to dump it.

I am thinking my use of dfHack script stripcaged all, may have done this. It doesnt show up in stock list, either.

When I do an area undump over it, it still shows the D flag. Ive moved my justice cages, elsewhere. It had to have fallen off a caged visitor.

Should I just put an obsidian wall on it with dfHack script liquids, then mine it away, to get rid of it? thank you
Logged
"I don't often drink Mead, but when I do... I prefer Dee Eef's.  -The most interesting Dwarf in the World.  Stay thirsty, my friend.
Shark Dentistry, looking in the Raws.

Leonidas

  • Bay Watcher
    • View Profile
Re: D scroll, doesnt dump
« Reply #1 on: June 13, 2020, 10:47:05 pm »

It's probably flagged as owned by somebody else. I've had it happen with caravans that dump their cargo. If it's not in the way of something, you could just hide it.
Logged

knutor

  • Bay Watcher
  • ..to hear the lamentation of the elves!
    • View Profile
Re: D scroll, doesnt dump
« Reply #2 on: June 14, 2020, 01:42:37 am »

ok. Ill hide it. Its in a hallway. Maybe itll get stolen. It is in the stock list, has a D there too. Its in tools, codex, I think. Wonder if rumors will update, that it is in Tomb of Swallowing, now.
Logged
"I don't often drink Mead, but when I do... I prefer Dee Eef's.  -The most interesting Dwarf in the World.  Stay thirsty, my friend.
Shark Dentistry, looking in the Raws.

PatrikLundell

  • Bay Watcher
    • View Profile
Re: D scroll, doesnt dump
« Reply #3 on: June 14, 2020, 02:40:30 am »

Many "books" are buggedly marked as "Trader" items and can't be moved, dumped, etc. As "books" are usually artifacts, you can't dump mark them manually, which probably also means you can't unmark them when marked by a script.

This DFHack script can be used to claim those bugged books:
Code: [Select]
function claim_books ()
  local dumped = 0
  local dump_forbidden = 0
  local dump_foreign = 0
  local dump_trader = 0
  local melt = 0
  local trader_ground = 0
  for i, item in ipairs (df.global.world.items.all) do
    if item.flags.dump then
      dumped = dumped + 1
     
      if item.flags.forbid then
        dump_forbidden = dump_forbidden + 1
      end
     
      if item.flags.foreign then
        dump_foreign = dump_foreign + 1
      end
     
      if item.flags.trader then
        dump_trader = dump_trader + 1
      end
    end
   
    if item.flags.melt then
      melt = melt + 1
    end
   
    if item.flags.on_ground and
       item.flags.trader then
      trader_ground = trader_ground + 1
      if item.subtype.id == "ITEM_TOOL_SCROLL" then
        item.flags.trader = false
        dfhack.println ("Claiming scroll")
     
      else
        printall (item.subtype)
      end
    end
  end
 
  dfhack.println ("Dump designated: " .. tostring (dumped), "Foreign: " .. tostring (dump_foreign), "Trader: " .. tostring (dump_trader))
  dfhack.println ("Melt designated: " .. tostring (melt))
  dfhack.println ("Trader items on the ground: " .. tostring (trader_ground))
end

claim_books ()
Logged

knutor

  • Bay Watcher
  • ..to hear the lamentation of the elves!
    • View Profile
Re: D scroll, doesnt dump
« Reply #4 on: June 14, 2020, 07:08:06 pm »

thank you, Ill give it a go.
Logged
"I don't often drink Mead, but when I do... I prefer Dee Eef's.  -The most interesting Dwarf in the World.  Stay thirsty, my friend.
Shark Dentistry, looking in the Raws.