Bay 12 Games Forum

Please login or register.

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

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

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2220 on: March 02, 2015, 02:24:10 am »

Wait, teleport.lua? That ought to be working. What exactly is wrong?

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2221 on: March 02, 2015, 03:30:21 am »

Hmmm, it was broken last time I tried it, brb. Uh, apparently it's been a while since I tried it last because I don't even have it in my dfhack 40.24r2 install. Missed it when scrolling back up to the help text, replaced it with a fresh one from your page anyways and it spit out this:
Code: [Select]
[DFHack]# teleport showpos
./hack/lua/dfhack.lua:436: /home/thefunk/.df24/hack/scripts/teleport.lua:15: syntax error near '=='
stack traceback:
        [C]: in function 'error'
        ./hack/lua/dfhack.lua:436: in function <./hack/lua/dfhack.lua:418>
        (...tail calls...)
« Last Edit: March 02, 2015, 03:37:55 am by Max™ »
Logged

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2222 on: March 02, 2015, 04:20:38 am »

@expwnent/lethosor: considering the tons of new code in dfhack/develop is there any timeline for 40.24-r3?

Descan

  • Bay Watcher
  • [HEADING INTENSIFIES]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2223 on: March 02, 2015, 09:31:11 am »

I didn't know gm-editor... was a thing. Or that it could move dwarfs.
Logged
Quote from: SalmonGod
Your innocent viking escapades for canadian social justice and immortality make my flagellum wiggle, too.
Quote from: Myroc
Descan confirmed for antichrist.
Quote from: LeoLeonardoIII
I wonder if any of us don't love Descan.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2224 on: March 02, 2015, 10:31:16 am »

It can also wreck your shit, but yeah, it exposes pretty much everything you can play with, it just has no safety uh... anything, one of the dialogues mentions that you are very liable to screw stuff up badly if you aren't careful and know what you're doing.

If all you're after is moving a dorf then at the top should be a pos entry after using it with them selected, I always have to check and make sure which way the values move stuff, I wanna say x-minus is west, x-plus is east, y-minus is north, y-plus is south, z-minus is down, z-plus is up.

If you really aren't sure what to put there, find something at the right position and grab the pos for it with gm-editor then just use that for your dorf, assuming putnam doesn't pop up with a fixed teleport.lua beforehand.
« Last Edit: March 02, 2015, 10:35:09 am by Max™ »
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2225 on: March 02, 2015, 01:41:47 pm »

Does anyone have experience with adding wounds to units with DFHack? Every time I try to add a wound using gm-editor or just the command line it reverts back after a few ticks.
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2226 on: March 02, 2015, 02:01:06 pm »

Does anyone have experience with adding wounds to units with DFHack? Every time I try to add a wound using gm-editor or just the command line it reverts back after a few ticks.
It might just heal... Wounds are complicated to say the least.

Let's see... I had a script that adds a wound... A heart ripping out script. here

The wound just removes the heart and adds a HUGE amount of bleed per tick (without the bleeding ripping out a heart does nothing... dwarves can be heartless strangely). So more complicated stuff like damaging tissues and breaking bones or even figureing out how much bleeding to add for heart removal (also it would be fun to add a hole through to the heart :) ) is left as an exercise to the reader ;)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2227 on: March 02, 2015, 02:05:54 pm »

putnam doesn't pop up with a fixed teleport.lua beforehand.

what's broken

Descan

  • Bay Watcher
  • [HEADING INTENSIFIES]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2228 on: March 02, 2015, 04:45:29 pm »

Better yet, tell us how to use it properly.
Logged
Quote from: SalmonGod
Your innocent viking escapades for canadian social justice and immortality make my flagellum wiggle, too.
Quote from: Myroc
Descan confirmed for antichrist.
Quote from: LeoLeonardoIII
I wonder if any of us don't love Descan.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2229 on: March 02, 2015, 04:48:27 pm »

teleport -unit (unit id) -x x -y y -z z Will teleport the unit to the coordinates specified.

teleport -showunitid will show the unit ID.

teleport -showpos will show the current position.

Omitting the unit ID will teleport the selected unit and omitting the position values will teleport the specified unit to the cursor.
« Last Edit: March 02, 2015, 04:50:03 pm by Putnam »
Logged

Descan

  • Bay Watcher
  • [HEADING INTENSIFIES]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2230 on: March 02, 2015, 04:49:30 pm »

And how do you find a unit id? Or how do you teleport the cursor unit to a specific position?
Logged
Quote from: SalmonGod
Your innocent viking escapades for canadian social justice and immortality make my flagellum wiggle, too.
Quote from: Myroc
Descan confirmed for antichrist.
Quote from: LeoLeonardoIII
I wonder if any of us don't love Descan.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2231 on: March 02, 2015, 04:50:16 pm »

That was a misclick post, edited with rest of info.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2232 on: March 03, 2015, 12:43:30 am »

It spit this and variations of this for me when I tried it out earlier, hence why I posted the error message :P
Code: [Select]
[DFHack]# teleport showpos
./hack/lua/dfhack.lua:436: /home/thefunk/.df24/hack/scripts/teleport.lua:15: syntax error near '=='
stack traceback:
        [C]: in function 'error'
        ./hack/lua/dfhack.lua:436: in function <./hack/lua/dfhack.lua:418>
        (...tail calls...)

Now, I do see that I am missing the - before showpos, but even just trying to do teleport ls or teleport man or whatnot gives the errors so I figure it is probably deeper than a missing hyphen in the command but I haven't played with it too extensively since I just tend to use gm-editor if I need to move something immediately or to an odd place.
« Last Edit: March 03, 2015, 12:45:57 am by Max™ »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2233 on: March 03, 2015, 12:52:58 am »

Thank you! I needed an actual error to know what to fix.

...There is no == in all of that file. That's odd. I can't find what that error is.

Also, you really shouldn't teleport using gm-editor. It causes unit occupancy units. See teleport to see how to properly do it.

Descan

  • Bay Watcher
  • [HEADING INTENSIFIES]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2234 on: March 03, 2015, 01:13:20 am »

Did you check out dfhack.lua lines 418-436? It looks like the actual error is occurring there, not necessarily in teleport.lua. I think.
Logged
Quote from: SalmonGod
Your innocent viking escapades for canadian social justice and immortality make my flagellum wiggle, too.
Quote from: Myroc
Descan confirmed for antichrist.
Quote from: LeoLeonardoIII
I wonder if any of us don't love Descan.
Pages: 1 ... 147 148 [149] 150 151 ... 360