Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 60 61 [62] 63 64 ... 81

Author Topic: DFHack 0.44.10-r1  (Read 71911 times)

Alu

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #915 on: March 13, 2018, 11:45:55 am »

If there's a 0.44.07 release that comes out in the next day or so to fix the crashes reported in 0.44.06, we might skip support for 0.44.06, though.

you kind of did predict the future in the end.
Logged
"He admired a wonderful Trap lately"

Llamageddon

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #916 on: March 13, 2018, 12:41:17 pm »

Was about to say the same thing. I now await with bated breath  :D
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #917 on: March 13, 2018, 12:41:29 pm »

I mean, it's a pretty typical pattern when an initial feature release has nasty bugs. Also, DFHack hasn't technically dropped support for 0.44.06 yet.
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.

DaSwayza

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #918 on: March 13, 2018, 03:28:39 pm »

I know I knew at some point, but I can't get the create-unit script to work. -civId and -localId \\LOCAL is not working
Logged

jeancallisti

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #919 on: March 14, 2018, 07:22:02 am »

General question about dfhack: what's its inner timing in regards to the game's engine inner timing?
- At what point of the game loop does DFhack read and update its properties?
- Or, if all the properties are direct access to actual value in memory, then at what stage in the game loop do dfhack scripts get executed?
- what is the liberty of the scripter to move its script execution earlier or later in the game loop? (Is the timing different with DFHack plugins? Are there several native game events that can trigger a script execution from DFhack or do they always play at the same stage in the game loop?)
- can you do a very rough presentation of the order of computations that take place inside a native game loop?
Logged

Japa

  • Bay Watcher
  • Spoopy time!
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #920 on: March 14, 2018, 08:38:04 am »

As far as I understand, there's one fixed point in the game loop where any dfhack commands are executed, which is where the DF exe polls the number of connected joysticks through SDL, which happens every frame.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #921 on: March 14, 2018, 10:06:41 am »

General question about dfhack: what's its inner timing in regards to the game's engine inner timing?
- At what point of the game loop does DFhack read and update its properties?
- Or, if all the properties are direct access to actual value in memory, then at what stage in the game loop do dfhack scripts get executed?
They've been direct access since DFHack moved to being in-process. I don't remember when exactly this was, but it was probably around 2009-2010.

Like Japa said, SDL_GetNumJoysticks() is called once per game tick (corresponding to the "FPS" indicator), on the simulation thread, and DFHack hooks into that to run anything that needs to access DF data. This includes most plugin commands and all scripts.

Quote
- what is the liberty of the scripter to move its script execution earlier or later in the game loop?
Impossible, and I don't know why you would want to. Is there something specific you're trying to do? If so, there's probably already a way to do it that doesn't require hooking into the game loop at different points.

Quote
(Is the timing different with DFHack plugins? Are there several native game events that can trigger a script execution from DFhack or do they always play at the same stage in the game loop?)
Plugins have access to C++ features and can do whatever they want - they can spin off separate threads, for example, and run things whenever they want. However, the whole point of the per-tick hook is that it's safe to access game data at that point, because DF's simulation thread isn't doing anything else.

Plugins can intercept virtual method calls, which is usually safe. Scripts can't do that. In theory, a plugin could call a Lua script from an interposed vmethod (with some limitations, like being unable to make screens, I think).

Quote
- can you do a very rough presentation of the order of computations that take place inside a native game loop?
Nope. Disassembly could reveal some stuff, but it would take a lot of effort.

Again, is there something specific you're looking for? These questions seem like they have a purpose that isn't specified.
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.

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #922 on: March 14, 2018, 10:52:16 am »

Again, is there something specific you're looking for? These questions seem like they have a purpose that isn't specified.
Hey, long time!
I assume it's about disabling the native pathfinding loop.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #923 on: March 14, 2018, 12:54:07 pm »

New alpha build! https://github.com/DFHack/dfhack/releases/tag/0.44.07-alpha1

Hey, long time!
Welcome back!
Quote
I assume it's about disabling the native pathfinding loop.
YIKES.

That's definitely something that can only be done in a plugin and through lots of reverse-engineering, if it can be done at all.
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.

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.44.05-r2
« Reply #924 on: March 14, 2018, 03:17:46 pm »

Again, is there something specific you're looking for? These questions seem like they have a purpose that isn't specified.
Hey, long time!

Wow, welcome back!
Now we will get proper access to DFgraphics repo finally  :D

I assume it's about disabling the native pathfinding loop.

That's what I was thinking about it for a long time but didn't have time to dig so deep.

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #925 on: March 14, 2018, 03:51:37 pm »

Wow, welcome back!
Hey thanks, don't get your hopes up, just checked in, heard there's something new. I see you're still hammering on the gfx. :)

Now we will get proper access to DFgraphics repo finally  :D
What do you mean? Did I not gave access to others? Sh!t.  :o

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.44.05-r2
« Reply #926 on: March 14, 2018, 03:59:28 pm »

Wow, welcome back!
Hey thanks, don't get your hopes up, just checked in, heard there's something new. I see you're still hammering on the gfx. :)

Real life happened or lost interest, may I ask?

Now we will get proper access to DFgraphics repo finally  :D
What do you mean? Did I not gave access to others? Sh!t.  :o

AFAIK only you had full admin rights.

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #927 on: March 14, 2018, 04:11:24 pm »

Wow, welcome back!
Hey thanks, don't get your hopes up, just checked in, heard there's something new. I see you're still hammering on the gfx. :)

Real life happened or lost interest, may I ask?

Now we will get proper access to DFgraphics repo finally  :D
What do you mean? Did I not gave access to others? Sh!t.  :o

AFAIK only you had full admin rights.
RL. Some depressing shit happened I had to deal with, by the time it was mostly over I had some other stuff on my mind.
And Peredexiserrant seems to have GOD mode turned on in the repo, so you did have someone to bugger after all.  8)

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.44.05-r2
« Reply #928 on: March 14, 2018, 04:15:20 pm »

Wow, welcome back!
Hey thanks, don't get your hopes up, just checked in, heard there's something new. I see you're still hammering on the gfx. :)

Real life happened or lost interest, may I ask?

Now we will get proper access to DFgraphics repo finally  :D
What do you mean? Did I not gave access to others? Sh!t.  :o

AFAIK only you had full admin rights.
RL. Some depressing shit happened I had to deal with, by the time it was mostly over I had some other stuff on my mind.
And Peredexiserrant seems to have GOD mode turned on in the repo, so you did have someone to bugger after all.  8)

Hope it's better now.

I'm talking about this http://www.bay12forums.com/smf/index.php?topic=155882.msg6921078#msg6921078

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.44.05-r2
« Reply #929 on: March 14, 2018, 04:31:26 pm »

I'm talking about this http://www.bay12forums.com/smf/index.php?topic=155882.msg6921078#msg6921078
Hmm, IDK. He is owner now. I checked the permissions, there are only two levels: member/owner. I seem to remember I did give him admin rights back then, so it beats me. :(
I'm sure he'll chip in soon.
Pages: 1 ... 60 61 [62] 63 64 ... 81