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 ... 7 8 [9] 10 11 ... 16
121
A mass of untrained crossbowmen being effective is quite realistic. Most civilians in Italy and France used crossbows for the fact that little training was required to be lethal.
Compared to a bow or melee combat, very true.

122
For my fort I have 4 types of squads - 
All squads get a full kit of armor assigned set to replace clothes and always be worn.  This stops clothing bad thoughts and wear issues.

Miners and woodcutters - Armor only.  They are already carrying a weapon
Medics/ broker/ manager/ leader/ smiths - Armor kit and individual choice weapons.  Just in case. 
These first two squads are never activated.

8 Squads of melee dwarves - All the men of the fort not in the first two squads go here.  I am not looking for full squads, I prefer to have options to split them up if needed.
8 Squads of ranged dwarves - All the women of the fort not in the first two squads.

This set up gets everyone out of clothes and into armor.  It keeps my specialist dwarves safe and able to work even if I am fighting.  Finally, if I want to danger room my dwarves I can easily send in the men with out having to worry about the babies.

123
DF Dwarf Mode Discussion / Re: Face Palm moments you had
« on: July 17, 2012, 02:48:32 pm »
I used dfhack to embark on a human fort.  Get all the starting designations complete. Unpause.  Turns out the humans are hostile to a group of dwarves setting up in the middle of their fort.  Whoops

124
Dear warlock necromancer,

Thank you for raising those corpses and then getting into a fight with them.  My dwarves really enjoyed watching the battle.

-----

I don't think the warlocks should arrive mounted... they are now fighting their zombified mounts.

125
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 16, 2012, 01:57:53 pm »
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.

Does anyone know what these values mean? In the dfusion package I found this code but don't know what to do with it :
Code: [Select]
function items.eggs()
myoff=offsets.getEx("Items") -- first find out where "item vector" is
vector=engine.peek(myoff,ptr_vector) --  get list of items
for i=0,vector:size()-1 do --look at each item
rti=engine.peek(vector:getval(i),ptr_item.RTI)
if ptr_item.getname(nil,rti)=="item_eggst" then
egg=engine.peek(vector:getval(i),ptr_subitems["item_eggst"])
egg.isfertile=1
egg.hatchtime=0xffffff
--egg.race=123 -- change race for fun times
engine.poke(vector:getval(i),ptr_subitems["item_eggst"],egg)
end
end
end

I have a feeling this part is REALLY outdated.

126
Just found something interesting.
1) Hellfire turrets can shoot through a fortification, over a 2 wide drawbridge, followed by a 1 wide moat.  (The DB's where used to block the siteline of the turret)
2) Hellfire turrets nicely roast frost giants.
3) Hellfire turrets destroy the DB's.
4) Hellfire turrets can destroy your main DB if it is in the line of fire.
5) Hellfire turrets can destroy your paved roads.
6) Trees burn for a LONG time.

I create a little u shaped set of fortifications outside of my front DB.  A moat was dug around the fortifications.  3 DB's were used to block the fortifications from the rest of the landscape.  Stuck a hellfire turret in the fortifications.  When a frost giant came, I lowered the DB's and the world burned!

127
Holy shit, I never payed much attention to Masterwork, but I think I might give it a shot.
EDIT-Gotta put a rain check on that, I don't feel like redownloading and then uninstalling winrar. Why do people put up RAR files when zip is so much simpler?
get 7-Zip to take care of all your un-archiving needs.
http://www.7-zip.org/

128
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 11, 2012, 02:39:26 pm »
It was recommended to me that I put my script request here.

I'd like to be able to disable and reenable [can_speak] tag of a creature in adventure mode. The goal here is to butcher your sentient enemies (say, elves) after killing them to make armor out of them. The [intelligence] tag might work too? I don't know much about memory editing, but apparently my obsession can only be solved by a lua script, removing the tag before butchering, and then putting it back, (I think it would be can_speak or intelligence), to continue playing the game.

I would very much appreciate if anyone has the spare time the help me out. If not, any scripting resources that would help me accomplish this would be very helpful. Thanks to anyone willing to help make adventure mode just a little more dwarfy! Elf leather quivers for everyone!

I thought this was handled through a race's ethics.

129
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 11, 2012, 01:01:09 pm »
Code: [Select]
print(df.global.world.raws.syndromes.all[50 or whatever].syn_affected_class[0].value)
Figured it out by doing

Code: [Select]
printall(df.global.world.raws.syndromes.all[50 or whatever].syn_affected_class[0])
I saw this and the sun shone through the leaves...

Then I wrote this script:
Code: [Select]
function showhidden()

for fnUnitCount,fnUnit in ipairs(df.global.world.units.all) do
    if (fnUnit.race ~= df.global.ui.race_id) then
if fnUnit.flags1.dead ==false then
if fnUnit.flags1.hidden_in_ambush then
print(fnUnit.flags1.hidden_in_ambush,fnUnit.race,fnUnit.pos.x,fnUnit.pos.y,fnUnit.pos.z,df.global.world.raws.creatures.all[fnUnit.race].creature_id, dfhack.TranslateName(dfhack.units.getVisibleName(fnUnit)))
end
end
end
end
print(df.global.world.raws.syndromes.all[2].syn_affected_class[0].value)
print("--")
printall(df.global.world.raws.syndromes.all[2].syn_affected_class)
print("--")
printall(df.global.world.raws.syndromes.all[2].syn_affected_class[0])
print("--")
printall(df.global.world.raws.syndromes.all[2])
print("--")
printall(df.global.world.raws.creatures.all[641])
print(df.global.world.raws.creatures.all[641].name[0])
print("--------------------")
print("-- dfhack")
printall(dfhack)
print("--------------------")
print("-- dfhack.gui")
printall(dfhack.gui)
print("--------------------")
print("-- dfhack.units")
printall(dfhack.units)
print("--------------------")
print("-- dfhack.event")
printall(dfhack.event)
print("--------------------")
print("-- dfhack.job")
printall(dfhack.job)
print("--------------------")
print("-- df.global")
printall(df.global)
print("--------------------")
print("-- df.global.ui")
printall(df.global.ui)
print("--------------------")
print("-- df.global.world")
printall(df.global.world)
end

showhidden()



130
I add platemail(foreign) to my uniform next to breastplate but my dwarves won't upgrade.  Order doesn't seem to matter.  Do I HAVE to have different  plate and non-plate uniforms or am I just not waiting long enough?

131
Utilities and 3rd Party Applications / Re: DFHack 0.34.10 r1
« on: June 20, 2012, 08:53:36 pm »
Code: [Select]
for k = #events-1,0,-1 do ... events:erase(k) ... end
Thanks for the feedback!  I saw that syntax before.  Can you explain what it is doing?  It is a bit confusing to me and the docs at lua.org aren't helping :)

It is iterating from #events - 1, which is index of the last element, down to 0, which is index of the first element. The -1 is step.

Equivalent C++ code would look like:
for (int k = numEvents - 1; k >= 0; k--) {
DOH! That makes sense! Thanks!

132
Utilities and 3rd Party Applications / Re: DFHack 0.34.10 r1
« on: June 20, 2012, 03:14:05 pm »
For erasing stuff you can apply the trick Toady uses:

Code: [Select]
for k = #events-1,0,-1 do ... events:erase(k) ... end
Thanks for the feedback!  I saw that syntax before.  Can you explain what it is doing?  It is a bit confusing to me and the docs at lua.org aren't helping :)

133
Utilities and 3rd Party Applications / Re: DFHack 0.34.10 r1
« on: June 20, 2012, 01:25:19 pm »
Hi!
I just wrote up this script that will remove naked thoughts from all of your dwarves.  Once DFHack 0.34.11 is released this shouldn't be needed but until then, HAVE FUN!

I had a bit of trouble removing elements from the list of recent_events so I have to start over every time I find and event I want to remove.

Comments are WELCOME!
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()
create a file named fixnaked.lua in <DF>/hack/scripts
At the [DFHack] prompt run 'fixnaked'

All the names were found at https://github.com/peterix/df-structures
Thanks to angavrilov for the fat-dwarves script, it showed me the path!

134
Utilities and 3rd Party Applications / Re: DFHack 0.34.10 r1
« on: June 11, 2012, 01:04:50 pm »
Still fairly new winblows install so i haven't got all the good stuff installed yet, forgot about notepadplus.
Actually i just opened it in my browser so i could get a good look at the actual table structure, then edited it in notepad.
try out http://ninite.com for setting up a new machine.

135
Can someone give me a hint on how to "extract" simplified trees/leather/bodies from Masterwork raws for use in Lazy Newb Pack?
I love those features but I think that Masterwork is way too bloated with random shit otherwise. :/

Create a copy of the raws with the trees reduced and not reduced.  Diff the two copies.  Is that "hinty" enough?

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