Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 109 110 [111] 112 113 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1073348 times)

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1650 on: December 11, 2014, 10:14:35 am »

Okay, added very basic unit loading to Armok Vision, and RemoteFortressReader. All it does is get a list of the coordinates of all units in play over the network.
Logged

Severedicks

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1651 on: December 11, 2014, 11:35:03 am »

why
C# is an unwieldy language for non-Windows OSes.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1652 on: December 11, 2014, 01:11:02 pm »

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1653 on: December 11, 2014, 02:47:18 pm »

Unity is actually fairly cross-platform. I believe someone on IRC compiled that visualizer on OS X a while back, and, like Japan said, Linux should be simple as well. I do agree that C# in general tends to be difficult to compile for other platforms, though.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1654 on: December 11, 2014, 06:53:17 pm »

Yeah, I haven't touched a windows machine except to strip out windows in years, but I've got some Unity compatibility stuff here on Arch as is, though I've never actually seen C# mentioned before, and my first reflex was to pronounce it "tchash" before the wiki page loaded and said it's "cee-sharp"... I think tchash is funnier so I'm keeping it.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1655 on: December 11, 2014, 11:29:04 pm »

interaction-trigger -suppressDefend doesn't seem to work.

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1656 on: December 12, 2014, 12:41:22 am »

interaction-trigger -suppressDefend doesn't seem to work.

I'm going to bed soon. Can you post an issue on the tracker if you haven't already?
Logged

madk

  • Bay Watcher
    • View Profile
    • pineapplemachine
Re: DFHack 0.40.19-r1
« Reply #1657 on: December 12, 2014, 06:48:06 am »

Where's the OSX release for 0.40.19?
« Last Edit: December 12, 2014, 07:04:32 am by madk »
Logged

Nopenope

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1658 on: December 12, 2014, 07:11:56 am »

Logged

madk

  • Bay Watcher
    • View Profile
    • pineapplemachine
Re: DFHack 0.40.19-r1
« Reply #1659 on: December 12, 2014, 08:29:02 am »

Oh. I don't feel smart. Thanks much!

Henour

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1660 on: December 13, 2014, 10:48:36 am »

In lua how do I get the type of a tile?

The Documentation seem a bit sparse, I found the dfhack.maps.getTileType(coords) function which returns a number, however it seems to return the same for eg openSpace and Lava?

My end goal is check if there is a Liquid and which one at a given position. Any hints/examples are appreciated.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1661 on: December 13, 2014, 08:33:56 pm »

How would I make someone hostile with DFHack?
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

breadman

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1662 on: December 13, 2014, 11:52:00 pm »

In lua how do I get the type of a tile?

The Documentation seem a bit sparse, I found the dfhack.maps.getTileType(coords) function which returns a number, however it seems to return the same for eg openSpace and Lava?

My end goal is check if there is a Liquid and which one at a given position. Any hints/examples are appreciated.

Liquids are separate from the tile type, and are stored in the map block.  In this case, there are two fields of interest in the designation array:

Code: [Select]
block = dfhack.maps.getTileBlock(x, y, z)
flow_size = block.designation[x%16][y%16].flow_size
liquid_type = block.designation[x%16][y%16].liquid_type

When flow_size is greater than zero, there's liquid in the tile, and liquid_type will tell you which type: 0 for water, 1 for magma.

Meanwhile, for a bit more information on the tile type, you can check df.tiletype; for example, df.tiletype[32] returns the name OpenSpace.
Logged
Quote from: Kevin Wayne, in r.g.r.n
Is a "diety" the being pictured by one of those extremely skinny aboriginal statues?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1663 on: December 14, 2014, 01:28:05 am »

How would I make someone hostile with DFHack?
depends on what range of hostilities
there's the No civ berserk with civil units, then there's the moods flags in the unit flags, and the invader flags.
how uhh hmm well you look at someone then use gui/gm-editor on a unit then once in a new menu, look for the invader flag it should be in the section label flags.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1664 on: December 14, 2014, 01:47:22 am »

My dfhack comes up with a ton of red text when I try that... Ohwell. I'll try again some other time. Thanks for telling me!
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.
Pages: 1 ... 109 110 [111] 112 113 ... 360