Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 232 233 [234] 235 236 ... 373

Author Topic: DFHack 0.34.11 r3  (Read 1454038 times)

falconne

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3495 on: April 02, 2013, 07:51:03 pm »

Is there a command that can be run to return what screen Dwarf Fortress is currently on?  If so, does it work in both Fortress and Adventure mode?

I'm attempting a mouse-driven interface that is context-sensitive to what you are doing.

You can take a look at my mouse plugin https://github.com/Falconne/dfhack/blob/master/plugins/mousequery.cpp too see how it figures out the current context. There's also a couple of big switch statements in Gui.cpp that are for printing out the current context... the code used there is what you want.
Logged
Utility plugins for DFHack, for improving Dwarf Fortress' user interface.

turabeasel

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3496 on: April 02, 2013, 07:58:42 pm »

I tried running the digfort script on osx and received this error

E: RuntimeError: ./hack/scripts/digfort.rb:3: usage: digfort <plan filename>
 ./hack/scripts/digfort.rb:3
 (eval):1:in `load'
 (eval):1
 (eval):1:in `catch'
 (eval):1

Is there anyway to fix that or does the digfort script not work? Or maybe I'm not using it as intended, can anyone help?

Thanks
Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3497 on: April 02, 2013, 08:13:38 pm »

Dragoon209

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3498 on: April 02, 2013, 08:23:58 pm »

You can take a look at my mouse plugin https://github.com/Falconne/dfhack/blob/master/plugins/mousequery.cpp too see how it figures out the current context. There's also a couple of big switch statements in Gui.cpp that are for printing out the current context... the code used there is what you want.

Thanks!! I'll have a look
Logged
Check out my mini-mods:
Upgradable Leather Tiers
Block Crafting Workshop

Have you played Webfort yet?  It's a way to play Dwarf Fortress in a web browser with your friends!  Come check it out at:
Community Web Fortress

Cato

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3499 on: April 02, 2013, 09:38:40 pm »

Thought I'd go ahead and mention it here, I posted the details (with save) on the bug tracker but I'm getting a repeatable crash error relating to job cancellation. In short anytime a particular reaction ([REACTION:BLOCK_BOULDER], it's a masterwork reaction) is cancelled while active, whether I do it at the workshop screen or the dwarf does it because he doesn't have enough blocks it crashes to desktop. It doesn't appear to be the reaction itself though (or at least not independently of dfhack) because if I run the save without dfhack and cancel the job it proceeds normally.

@turabeasel I've used the digfort script on osx so it's not intrinsic to that. What was the command you activated it with? Alternatively could be the csv file itself, if I export to csv from numbers by default it doesn't use the correct separator that digfort is looking for, it uses "," instead of ";", but the script itself does work on osx so it's not that
Logged

robertheinrich

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3500 on: April 02, 2013, 10:13:27 pm »

Thought I'd go ahead and mention it here, I posted the details (with save) on the bug tracker but I'm getting a repeatable crash error relating to job cancellation. In short anytime a particular reaction ([REACTION:BLOCK_BOULDER], it's a masterwork reaction) is cancelled while active, whether I do it at the workshop screen or the dwarf does it because he doesn't have enough blocks it crashes to desktop. It doesn't appear to be the reaction itself though (or at least not independently of dfhack) because if I run the save without dfhack and cancel the job it proceeds normally.

@turabeasel I've used the digfort script on osx so it's not intrinsic to that. What was the command you activated it with? Alternatively could be the csv file itself, if I export to csv from numbers by default it doesn't use the correct separator that digfort is looking for, it uses "," instead of ";", but the script itself does work on osx so it's not that

Generally I think you shouldn't use the bugtracker for problems which are caused by modding the game. From my understanding the bugtracker is to be used to help Toady keep track of bugs of the vanilla version and not for mods. As for dfhack, much of what it does is independent of what certain crazy people add to the game. Some of the plugins and scripts will only work properly on vanilla raws and break on modded scenarios. Don't blame dfhack if you mod the raws and something blows up into your face. Instead, come to the dfhack thread (oh, you did that :) ) and complain about it.
« Last Edit: April 02, 2013, 10:23:32 pm by robertheinrich »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3501 on: April 02, 2013, 10:32:14 pm »

Mods can reveal bugs in vanilla that normally wouldn't show up; however, I don't think DFHack is really a standard mod, so...

Cato

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3502 on: April 02, 2013, 10:44:15 pm »

By bug tracker I meant the dfhack bug tracker (on git hub, from the first page of this thread) if I understand the dfhack release properly it's at least partially connected to dfhack. I say this because when I test it by running the fort with the df script I can cancel the job and the game proceeds normally. If I then run the dfhack script and try the same thing then after unpausing it crashes. If I correctly understand that the df script (as opposed to the dfhack) script in the r3 release runs dwarf fortress without dfhack then it is at least partially connected to dfhack, not sure about the whys or hows but thought I'd bring it up.
« Last Edit: April 03, 2013, 12:39:44 am by Cato »
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3503 on: April 03, 2013, 03:45:23 am »

okay if I remember warmist made a companion option to allow you to order them to do jobs.
at the time I didn't do much with this due to there was no way to mass order commands.
(like telling one to go dig means you need to chaperone the guy to dig out a tunnel and not like say designate a path and just order him.)
so I didn't do much with this. since r3 is out best drop the code.
Code: [Select]
function getLastJobLink()
    local st=df.global.world.job_list
    while st.next~=nil do
        st=st.next
    end
    return st
end
function AddNewJob(job)
    local nn=getLastJobLink()
    local nl=df.job_list_link:new()
    nl.prev=nn
    nn.next=nl
    nl.item=job
    job.list_link=nl
end
function MakeDig(unit,pos,job_type)
    local nj=df.job:new()
    nj.id=df.global.job_next_id
    df.global.job_next_id=df.global.job_next_id+1
    nj.flags.special=true
    nj.job_type=job_type
    nj.completion_timer=-1
    nj.unk4a=12
    nj.unk4b=0
    nj.pos:assign(pos)
    nj.general_refs:insert("#",{new=df.general_ref_unit_workerst,unit_id=unit.id})
   
    AddNewJob(nj)
    unit.job.current_job=nj
    pos.x=pos.x-1
    unit.path.dest:assign(pos)
end

{name="channel",f=function(unit_list,pos)
    if not CheckCursor(pos) then
        return false
    end
    for k,unit in pairs(unit_list) do
        MakeDig(unit,pos,df.job_type.FellTree)
    end
    return true
end},
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

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3504 on: April 03, 2013, 10:23:08 am »

I am aware there are problems with autoSyndrome and trueTransformation but I can't work on them right now. Please document any problems in as much detail as possible, and if you have time, see if you can play around with them and find out exactly when the problem happens.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3505 on: April 03, 2013, 11:29:17 am »

Expwnent, any idea why it doesn't work for me at all? I've posted the raws on the previous page.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3506 on: April 03, 2013, 12:35:53 pm »

There are still some weird requirements with boiling temperature that I'm going to remove in the next version. But you said that the first transformation DID happen so that can't be it.

Try different intermediate/final forms, different durations, etc.

There's a small chance that it doesn't work in combination with autoSyndrome, but that's a HUGE flaw if true, and I'm 90% sure I tested that myself. Try the same syndrome with an interaction and see if it works.
Logged

robertheinrich

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3507 on: April 03, 2013, 01:15:06 pm »

By bug tracker I meant the dfhack bug tracker (on git hub, from the first page of this thread)

Alright, I thought you used DF's official bug tracker at Mantis which should only be used for problems with the vanilla game. I didn't look at your savegame yet but I imagine the problem *might* be caused by workflow trying to check if it should protect a repeat job which uses a modded custom reaction.
Logged

Cato

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3508 on: April 03, 2013, 03:40:07 pm »

The problem would have to be more specific than just workflow on a custom reaction because I have lots of other custom (from masterwork) reactions running with workflow on and managing them without any problems. It's just that particular reaction that causes problems. I don't see anything immediately stand out about the reaction itself either.
Logged

falconne

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3509 on: April 03, 2013, 03:59:53 pm »

I didn't look at your savegame yet but I imagine the problem *might* be caused by workflow trying to check if it should protect a repeat job which uses a modded custom reaction.

I did a quick check before coming to work this morning to make sure it wasn't a workflow problem and I don't think it is. The crash happens here in autoSyndrome because "bob->mat_index" is -1.

Just guessing here without knowing anything about the code, but might it also be a bug that the autoSyndrome is processing the job as if it completed successfully, even though it was actually cancelled?
Logged
Utility plugins for DFHack, for improving Dwarf Fortress' user interface.
Pages: 1 ... 232 233 [234] 235 236 ... 373