Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Altaree

Pages: 1 ... 6 7 [8] 9 10 ... 16
106
How can i turn off DfHack?

don't hit alt-tab?

Otherwise I think you replace sdl.dll with sdl.real.dll

107
DF Dwarf Mode Discussion / Re: Defending your horde.
« on: July 27, 2012, 02:55:44 pm »
I create a room down at the end of one of my mining tunnels for storing all my artifacts.  This also keeps the artifacts sorted at the bottom of all build lists so that I don't accidentally use any.

108
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 27, 2012, 09:50:03 am »
RE: Dwarves not equiping their uniforms.
Off topic (a bit) but I started this question here so I thought I would provide my research and solution.

I have been using the splintermind version of DT to assign my dwarves to squads.  There seems to be a problem where you can't go to the (M)ilitary screen and remove a dwarf from a squad.  I have to go the the dwarf himself, us v->p->x to remove him from the squad.  Notice in the military screen that the dwarf is still in the squad.  Save the game.  Reload.  Look at the military screen and see the dwarf is now out of the squad.  Then I can reassign the dwarf to a squad and he will go get his stuff.  I am using my "fixnaked" script to find dwarves with "naked" thoughts to find dwarves that need fixing.  Just to keep things on topic, here is my script:

Code: [Select]
function fixnaked()
local total_fixed = 0
local total_uncovered = 0
local total_noshirt = 0
local total_noshoes = 0

for fnUnitCount,fnUnit in ipairs(df.global.world.units.all) do
    if fnUnit.race == df.global.ui.race_id then
local listEvents = fnUnit.status.recent_events
--for lkey,lvalue in pairs(listEvents) do
-- print(df.unit_thought_type[lvalue.type],lvalue.type,lvalue.age,lvalue.subtype,lvalue.severity)
--end

local found = 1
local fixed = 0
while found == 1 do
local events = fnUnit.status.recent_events
found = 0
for k,v in pairs(events) do
if v.type == 109 then
events:erase(k)
found = 1
total_uncovered = total_uncovered + 1
fixed = 1
break
end
if v.type == 110 then
events:erase(k)
found = 1
total_noshirt = total_noshirt + 1
fixed = 1
break
end
if v.type == 111 then
events:erase(k)
found = 1
total_noshoes = total_noshoes + 1
fixed = 1
break
end
end
end
if fixed == 1 then
total_fixed = total_fixed + 1
print(total_fixed, total_uncovered+total_noshirt+total_noshoes,dfhack.TranslateName(dfhack.units.getVisibleName(fnUnit)))
end
end
end
print("thought 109 = "..df.unit_thought_type[109])
print("thought 110 = "..df.unit_thought_type[110])
print("thought 111 = "..df.unit_thought_type[111])
print("Total Fixed: "..total_fixed)
print("Total thoughts removed: "..total_uncovered)
print("Total thoughts removed: "..total_noshirt)
print("Total thoughts removed: "..total_noshoes)

end
fixnaked()

yup, a repost but it is a nice script for mood fixing.

109
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 26, 2012, 10:41:19 am »
the little buggers are taking off their clothes and storing them in their cabinents, then getting 2 gauntlets and some leggings to wear... very strange.

110
I let the dwarves stock some cloth/thread and then change the hospital settings to request 0 of each. 

111
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 26, 2012, 08:22:58 am »
Testing, Testing, is this thing on?

Are there any other items that it would be useful to count in a status list?


Even better question: what makes a dwarf not want to put on their uniform.  Two of the king's guards won't wear anything other than 2 gauntlets and a set of greaves (!).  The other folks in their squads are doing just fine.  I am hoping this is just a stat I can set.

112
So, these are dwarves that should not be in squads that train.   I have a 2 civ squads that have armor assigned.  One has weapons, the other doesn't.  These squads don't train but they do allow me to armor up the civilians in clothes that don't wear out.

113
How do people deploy their treant /spitting orchid seeds.  I just did my first set of treant seeds and now I have a bunch of friendly 'ents that hang around inside my front gate.  Anyone have any strategies?

Oh, my golems tried to attack the baby entlings...

114
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 23, 2012, 10:52:25 am »
Just bashed up a quick script to replace dfstatus:

Code: [Select]
function exitem()
local item = dfhack.gui.getSelectedItem()
if(item) then
if(item.flags.owned) then
print ("OWNED")
end
printall(item)
printall(item.itemrefs)
local itemClass = item:getType()
print("---------")
print(itemClass,df.item_type[itemClass])
print("---------")
print(item:getSubtype())
print("---------")
print(item:getMaterial())
print(item:getMaterialIndex())
print("-- df.global")
printall(df.global.world.raws.inorganics[168])
--print("-----")
--printall(dfhack.matinfo)
print("----- decode")
printall(dfhack.matinfo.decode(item).material)
print("----- find")
printall(dfhack.matinfo.find("COAL"))
print("-----")
print(dfhack.items.getDescription(item,-1,false))
print("-----gettoken")
printall(dfhack.matinfo.getToken(item))
end
local drinks=0
local drink=0
local roasts=0
local roastMeals=0
local meat=0
local meatMeals=0
local ironB=0;
local pigIronB=0;
local steelB = 0;
local mithB=0
local wmithB=0
local goldB=0
local silverB=0
local copperB=0
local bronzeB=0
local cokeB=0

local iron=dfhack.matinfo.find("IRON").index
local pigIron=dfhack.matinfo.find("PIG_IRON").index
local steel=dfhack.matinfo.find("STEEL").index
local mith=dfhack.matinfo.find("MITHRIL").index
local wmith=dfhack.matinfo.find("PATTERN_MITHRIL").index
local gold=dfhack.matinfo.find("GOLD").index
local silver=dfhack.matinfo.find("SILVER").index
local copper=dfhack.matinfo.find("COPPER").index
local bronze=dfhack.matinfo.find("BRONZE").index
local coke=dfhack.matinfo.find("COAL").type

for k,v in ipairs(df.global.world.items.all) do
if(v:getType()==df.item_type.DRINK) then
drinks = drinks + v.stack_size
drink= drink+1
elseif(v:getType() == df.item_type.FOOD) then
roastMeals = roastMeals + v.stack_size
roasts= roasts+1
elseif(v:getType() == df.item_type.MEAT) then
meatMeals = meatMeals + v.stack_size
meat= meat+1
elseif(v:getType() == df.item_type.BAR) then
if(v:getMaterialIndex()==iron) then
ironB=ironB+1
elseif(v:getMaterialIndex()==pigIron) then
pigIronB=pigIronB+1
elseif(v:getMaterialIndex()==steel) then
steelB=steelB+1
elseif(v:getMaterialIndex()==mith) then
mithB=mithB+1
elseif(v:getMaterialIndex()==wmith) then
wmithB=wmithB+1
elseif(v:getMaterialIndex()==gold) then
goldB=goldB+1
elseif(v:getMaterialIndex()==silver) then
silverB=silverB+1
elseif(v:getMaterialIndex()==copper) then
copperB=copperB+1
elseif(v:getMaterialIndex()==bronze) then
bronzeB=bronzeB+1
elseif(v:getMaterial()==coke) then
cokeB=cokeB+1
end
end
end

print("Drinks",drink,drinks)
print("Food",roasts,roastMeals)
print("Meat",meat,meatMeals)

print("Iron Bars",ironB)
print("Pig Iron Bars",pigIronB)
print("Steel Bars",steelB)
print("Mithril Bars",mithB)
print("W Mithril Bars",wmithB)
print("Gold Bars",goldB)
print("Silver Bars",silverB)
print("Copper Bars",copperB)
print("Bronze Bars",bronzeB)
print("Coke Bars",cokeB)
end
exitem()

caveats:
1) Yes, I am running Masterwork.
2) the stuff in the first if is how I examined the items to get the right flags - It is not the prettiest part of the code but it worked.
3) save this to exitem.lua in your df/hack/scripts directory and then type exitem at the dfhack prompt.

115
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 23, 2012, 08:46:46 am »
What happened to the dfstatus tool as listed here:
https://github.com/peterix/dfhack/blob/v0.31.25/tools/supported/dfstatus.cpp

116
Thanks!  No Dolomite. Found this wiki pages (DOH) http://dwarffortresswiki.org/index.php/DF2012:Fire

Slade blocks it is. 

117
I would like to be able to block my hellfire turrets from firing on targets. I have tried using magma-safe draw bridges but they keep getting destroyed.  What methods have other people used?

118
Couple of questions:
1) I have two melancholy traders (different caravans) wandering around my fort.  They aren't doing anything bad, but they aren't dieing either.  Any ideas?
2) If I pit caged warlocks, will they use there spells on the way to the pit? Or are they docile?
3) How do I set up a stockpile for bifrost?
4) How do I set up a stockpile only for armor plates?

Thanks!

119
I think bucklers are the only shield that works with crossbows.

120
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 18, 2012, 09:47:32 am »
I am trying to check the status of some eggs. 
When I try this:
Code: [Select]
printall(item.unk_cc)I get
Code: [Select]
--------------------unk_cc
anon_1                   = -1
anon_2                   = -1
anon_3                   = -1
anon_4                   = -1
anon_5                   = -1
anon_6                   = -1
anon_7                   = 0

Across many eggs only anon_7 changes from 0 to -1.

After a bit of testing, only eggs with anon_7 == -1 hatch.

Pages: 1 ... 6 7 [8] 9 10 ... 16