Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4] 5

Author Topic: JDwarf  (Read 19471 times)

Rafal99

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #45 on: June 18, 2012, 11:50:06 am »

Avtolik would you mind if I reuse some of your code in my own project?

I am mostly interested in the code parts responsible for communication with DFHack.
Actually I would want to use them as examples when writing my own code rather than using the code directly.
« Last Edit: June 18, 2012, 11:53:31 am by Rafal99 »
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

avtolik

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #46 on: June 18, 2012, 05:01:51 pm »

@Rafal99

Ok. Send me your email or smth :)
If you want some more code to study, this is the code I based mine upon:
https://github.com/wjrogers/HeavyDuck.DF.DwarfDuck/blob/master/HeavyDuck.DF.DFHack/DFHackClient.cs

Logged

dagger

  • Bay Watcher
  • Sniffin' glue
    • View Profile
Re: JDwarf
« Reply #47 on: June 18, 2012, 05:32:08 pm »

I can run the program and change skills but it does not actually seem to do anything in game? Any ideas?
Stupid question, but did you remember to press the "commit" button?

No luck but it might because I am running    0.34.11
Logged

Rafal99

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #48 on: June 18, 2012, 08:09:40 pm »

If you want some more code to study, this is the code I based mine upon:
https://github.com/wjrogers/HeavyDuck.DF.DwarfDuck/blob/master/HeavyDuck.DF.DFHack/DFHackClient.cs

Oh nice, this is of great help!


Also check your PM :)
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

avtolik

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #49 on: June 19, 2012, 01:36:13 am »

No luck but it might because I am running    0.34.11

There is no DFHack for 0.34.11 yet. Did you see the requirements ;)
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #50 on: June 19, 2012, 05:12:44 am »

There is a DFhack for 34.10 and experimental offsets for 34.11. They work with DFhack and with Jdwarf (i use it's anti ON BREAK functions and it works..... in 60% cases).
Logged

malvado

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #51 on: June 20, 2012, 08:34:43 am »

Nice!
Good to see there's an handy replacement for runesmith now. Well sorta
Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: JDwarf
« Reply #52 on: June 20, 2012, 11:56:05 am »

not to stop a coder, but you can already do this with Cheat Engine 6.1

I don't know if you need to re enter the memory address' each time though.

avtolik

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #53 on: June 20, 2012, 04:07:53 pm »

Nice!
Good to see there's an handy replacement for runesmith now. Well sorta

Well I haven't used Runesmith that much and don't remember anything besides editing skills :)
If you are missing something speak up!
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #54 on: June 21, 2012, 05:20:04 am »

not to stop a coder, but you can already do this with Cheat Engine 6.1

I don't know if you need to re enter the memory address' each time though.

This is MUCH more convenient than cheatengine. And also have a use of scripts for healing and breaking ON BREAK status. How can you do this in CheatEngine?
Logged

Rafal99

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #55 on: June 21, 2012, 05:54:15 am »

not to stop a coder, but you can already do this with Cheat Engine 6.1

You can do everything in Cheat Engine. But hardly anything is easy, and most of the time it is actually very hard and requires good knowledge about DF offsets and structures.

While with a custom app like the JDwarf it is just a few clicks.
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

avtolik

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #56 on: June 21, 2012, 06:34:32 am »

Thanks for the support guys!  :)
I'll also add that JDwarf runs under Linux.

Anyway. Recently I noticed that with the HEAL menu I can resurrect dwarfs if I hadn't refreshed (restarted) JDwarf. Weird :)
And on the topic of refreshing, I put a Refresh button just like in DT.
Logged

Flavio

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #57 on: June 21, 2012, 10:24:26 pm »

This is great!
It will have support to change attributes and traits?
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #58 on: June 22, 2012, 01:46:11 am »

Yesterday i made my 2 dwarfs take out a wall which supported big floor abov ethem (stupid mistake :) ). Well i resurrected those 2 dwarfs with Heal function (even after some unpausing). But - they started working and everything was pretty fine but i never saw them in Dwarf Therapist again. As it was a startin group of 7 i decided to restart a map. But hey - resurrect option is cool but might need some more fixing to change flags which make them invisible in DT:) Also they actually went out from dead list into usual alive list - so i guess most flags were ok:)
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: JDwarf
« Reply #59 on: June 22, 2012, 03:26:35 pm »

In heal script you need to add a check for killed flag (otherwise Dwarf Therapist won't recognise dwarfes who are resurrected).
So it hsould look like:
   unit.flags1.dead=false
   unit.flags2.killed=false
etc

Tested - working.
Logged
Pages: 1 2 3 [4] 5