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 - expwnent

Pages: 1 ... 71 72 [73] 74 75 ... 113
1081
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 05, 2012, 10:02:40 pm »
I've found that dwarves who are in the military, then die, then are resurrected with an interaction (not raised, resurrected), cannot join the military or become nobles. Is there any fix to this?

1082
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 05, 2012, 05:34:42 pm »
That should be just "=". "=" is for assignment, "==" is for comparison.

1083
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 05, 2012, 11:59:33 am »
Code: [Select]
printall(df.global); //many things, world looks useful
printall(df.global.world); //world_data looks promising: could be about global map stuff (hint: it is)
printall(df.global.world.world_data); //sites is a variable!
printall(df.global.world.world_data.sites)

Just letting you know how I figured it out so that you can figure out similar things in the future.

1084
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 05, 2012, 09:12:47 am »
In lua, what's the syntax to check the attributes of the site object? Or, better yet, is there any documentation of all the attributes of units and sites that can be accessed using lua?

You can figure out a lot of it with printall. Otherwise, there's always this: https://github.com/angavrilov/df-structures

1085
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 04, 2012, 11:51:07 am »
I was playing with mode set and when I was back in Fortress Mode I noticed I no longer had the option to Save Game, instead all I had was the option to Abort Game, at which point it dropped me out quickly and didn't save anything.

Any idea how to force a Save in Fortress Mode?

Speaking of which, is it possible to force an "Abort Game"? It'd be nice to have an alternative to the "die" command.

1086
I believe it is possible, yes. But you might have to make it operating system dependent.

1087
And cache performance, if you want to get technical. Most applications are more memory-intensive than processor intensive.

I would also like to see an FPS release, though I would have expressed that thought differently.

1088
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 03, 2012, 12:29:39 pm »
I've done some memory research. I have discovered what unit.body.unk_4b8 does. It controls head/face appearance (eye closeness, head wideness, etc). I would like to put this information into the xml files, but I am uncertain of how to proceed.

If it were as simple as unk_4b8[0] controls eye closeness and unk_4b8[12] controls iris size, I would know what to do in dfhack/library/xml/df.units.xml. However, it is not that simple. In different species, different elements control different things. I have discovered the pattern, but I don't know how to encode it into the xml file.

Ideally, I'd like this information to be (somehow) available to lua, but even if that's not possible, I would like to put detailed documentation of it somewhere. I am not sure of the rules on where documentation files go. Is it ok if I put it in the xml folder?

It would be a shame to let this knowledge go unrecorded. It took quite a long time to find and thoroughly confirm the pattern.



Roughly, the pattern works like this: there is a constant set of facial traits that can exist, regardless of species. However, different species have a different number of eyes, heads, etc. The order of the traits listed is always the same (though some may have zero elements, for example if a species has no eyes). Eye wide-setness is first, followed by eye depth. If a creature has n eyes, the first n elements in the vector will determine eye wide-setness, but only the first will be used for in game descriptions. The next n elements control eye depth, and again, only the first is used for in-game descriptions.

A note on in-game descriptions: only the first is used, but sometimes it will specify this in game (and sometimes not). For example, it will never say that a dwarf's left eye has large irises. However, it might say that an ettin's left head is very broad. In this case, it will never make any comment about the ettin's right head.

I have the full list written down but it is too long for this margin.

1089
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 03, 2012, 12:06:04 pm »
I get an error in the Dwarf Fortress message log stating
Quote
Cannot produce: drink

Am I doing something wrong? I'm quite inexperienced with DFHack & Dwarf Fortress so it wouldn't be unheard of! :)
As far as I know I have all necessary ingredients for the drinks.
I'm playing Dwarf Fortress 0.34.11 & the most recent version of DFHack.

TIA
create a job to brew drinks and set it on repeat.

This isn't the same. That job will get cancelled when you run out of brewable plants.

The brew drink job is hardcoded into the game. I suspect that's why it doesn't work with workflow. You could try making a custom brewery building with a custom brew drink command that uses the brewing skill and manage that with workflow.

1090
DF Dwarf Mode Discussion / Re: On Reclaims.
« on: July 02, 2012, 09:39:25 am »
I never reclaim. I just start over.

1091
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 01, 2012, 04:45:00 pm »
I tried the same thing, and I got the same problem. Maybe it only works if you want to increase the number of starting dwarves.

1092
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 01, 2012, 04:32:20 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])

1093
DF Modding / Re: Dwarven Heritage Project, version 1.1
« on: July 01, 2012, 03:27:36 pm »
Every time a child is born.

1094
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r1
« on: July 01, 2012, 03:26:44 pm »
I would try the "print" and "printall" commands.

1095
Are you using custom parameters? Because in my glacier forts nobody ever dies due to freezing temperatures  :'(

This has also been my experience.

How did you get a volcano on a glacier anyway?

Pages: 1 ... 71 72 [73] 74 75 ... 113