Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 148 149 [150] 151 152 ... 256

Author Topic: DFHack 0.34.11 r3  (Read 343363 times)

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.34.11 r1
« Reply #2235 on: August 11, 2012, 05:41:06 pm »

Heh. It's not a bug, it's a feature ;)

Anyway, making it look for some prefix character to accept the hotkey as command could be better.

Something like
Code: [Select]
:commandwould be recognized, while
Code: [Select]
commandwouldn't.

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2236 on: August 13, 2012, 01:44:58 pm »

I'm having some trouble figuring out how to pass arguments to lua scripts from DFHack. Here's what I've tried:

In DFHack:
Code: [Select]
myScriptNameWithoutDotLua doom1 doom2

Code: [Select]
print('print ...');
print(...)
print('printall ...');
printall(...);
--print('print ...[0]');
--print(...[0]); --this line causes a syntax error
local bob = ...;
local jim = ...;
print('print bob');
print(bob);
print('printall bob');
printall(bob);
print('print jim');
print(jim);
print('printall jim');
printall(jim);

Output:
Code: [Select]
print ...
doom1   doom2
printall ...
print bob
doom1
printall bob
print jim
doom1
printall jim

How do I access the arguments other than the first? "quasivariable" doesn't show up in any LUA documentation I can find.
« Last Edit: August 13, 2012, 01:48:23 pm by expwnent »
Logged
Dwarven Heritage Project: http://www.bay12forums.com/smf/index.php?topic=112381.0

Wow... a dwarf is dragging his intestines all over the place and is in constant terrible pain and one of the first suggestions is to hack off his guts with an intricate mechanical contraption. This truly is Dwarf Fortress

Warmist

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2237 on: August 13, 2012, 02:09:58 pm »

I'm having some trouble figuring out how to pass arguments to lua scripts from DFHack. Here's what I've tried:
<...>
How do I access the arguments other than the first? "quasivariable" doesn't show up in any LUA documentation I can find.
I think it was
Code: [Select]
local stuff={...}
local first=stuff[1]
Logged

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2238 on: August 13, 2012, 02:29:09 pm »

Thanks, that worked!
Logged
Dwarven Heritage Project: http://www.bay12forums.com/smf/index.php?topic=112381.0

Wow... a dwarf is dragging his intestines all over the place and is in constant terrible pain and one of the first suggestions is to hack off his guts with an intricate mechanical contraption. This truly is Dwarf Fortress

Snateraar

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2239 on: August 15, 2012, 04:59:01 am »

Hello,
I just removed an older version of DFHack from 0.34.10 according to the original post, then installed the latest version.
Yet when I try to use certain commands(such as slayrace) it says the command is not recognized.
Do these commands only work for 34.11, or didn't I uninstall it properly?

I am using 34.10 because the tileset hasn't updated to .11 yet, by the way.
Logged

Japa

  • Bay Watcher
  • AHAHAHAHAHA!!!!
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2240 on: August 15, 2012, 05:40:38 am »

You're using an older version, yes.

And your tileset probably doesn't need to be upgraded, because it's already compatible.
Logged

I interpret it as meaning 'really good at cutting people.'
You clearly don't know much about swords.

MightyDorf

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2241 on: August 15, 2012, 06:59:14 am »

Hello. I have an issue with the dfhack's fonction "reveal/unreveal". I think I saved my game while the "reveal" fonction was on. I closed DF last night and re-opened it today. The map was still revealed, but when I try to revert it, it doesn't work. DFhack says : "there's nothing to revert !", whereas the map is revealed. Is there a way to revert it into its normal state ?
« Last Edit: August 15, 2012, 07:18:23 am by MightyDorf »
Logged

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2242 on: August 15, 2012, 07:35:38 am »

You can probably do it with revflood. If you haven't opened up the caverns, it'll be exactly what you want. If you have, it'll also reveal the caverns.
Logged
Dwarven Heritage Project: http://www.bay12forums.com/smf/index.php?topic=112381.0

Wow... a dwarf is dragging his intestines all over the place and is in constant terrible pain and one of the first suggestions is to hack off his guts with an intricate mechanical contraption. This truly is Dwarf Fortress

MightyDorf

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2243 on: August 15, 2012, 08:09:33 am »

It works, thank you very much.  :D
Logged

Altaree

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2244 on: August 15, 2012, 09:11:23 am »

How do you look at the stats of a caste?  I have been able to find the element on a unit where the id of the caste is stored. I can't figure out how to get to the definition of the caste so that I can get things like name and how the caste changes physical/mental attributes.

Thanks!
Logged

Iceflame

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2245 on: August 17, 2012, 01:58:13 am »

Is there a way to modify the happyness of my dwarfes?
I need to do some testing, and this would save massive amounts of time.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.34.11 r1
« Reply #2246 on: August 17, 2012, 06:16:22 am »

Is there a way to modify the happyness of my dwarfes?
I need to do some testing, and this would save massive amounts of time.
Yes - add some happy thoughts or delete their unhappy thoughts. Simply setting the "happiness" value will not work, since that gets recalculated whenever a new thought happens.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Iceflame

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2247 on: August 17, 2012, 07:19:58 am »

Tis exactly looks like what I need. Thanks.
Now I just have to figure out the 'how'
Logged

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2248 on: August 17, 2012, 09:29:05 am »

If you're just testing stuff, you could just give them [NOEMOTION].
Logged
Dwarven Heritage Project: http://www.bay12forums.com/smf/index.php?topic=112381.0

Wow... a dwarf is dragging his intestines all over the place and is in constant terrible pain and one of the first suggestions is to hack off his guts with an intricate mechanical contraption. This truly is Dwarf Fortress

vjek

  • Bay Watcher
  • If it didn't work, change the world so it does.
    • View Profile
Re: DFHack 0.34.11 r1
« Reply #2249 on: August 17, 2012, 09:44:05 am »

Tis exactly looks like what I need. Thanks.
Now I just have to figure out the 'how'

This works for very happy/stable dwarves:

Spoiler (click to show/hide)

That's a cut/paste out of my brainwash script.
Logged
My DFHack lua scripts, which you can use to change stats, skills, age, personality and preferences of one, some or all of your dwarves!
Pages: 1 ... 148 149 [150] 151 152 ... 256