Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 6 7 [8] 9 10 ... 38

Author Topic: DFusion - a lua based plugin system (integrated into DFHack)  (Read 151426 times)

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v2.0
« Reply #105 on: December 02, 2010, 08:12:54 pm »

No. I don't like abandoned forts because they litter items. I think if you embark on a lair it still litters them.
« Last Edit: December 02, 2010, 08:21:50 pm by darius »
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.0
« Reply #106 on: December 02, 2010, 11:15:25 pm »

though lairs do scatter your men around making a mess when creatures come and kill them.
oh I just remember that way back when using runesmith for companioning demons, I had to first get them to be the same(a) civ which removes the wild civ they keep. though I think it is better to slap the prisoner profession( and your civ) on them just to be sure.
maybe call it "the turn creature into slave" and have it next to the "make creature follow" for testing.
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

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v2.0
« Reply #107 on: December 03, 2010, 07:15:38 am »

Well changing civ to mine on GCS did not work (it ate my companions). The main problem now is that not everything is saved when traveling (i think civ is not saved).
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.0
« Reply #108 on: December 03, 2010, 10:41:27 pm »

oh darius for self modding Dfusion how would someone like me go through and make swapping/taming creatures just by using the cursor?
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

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v2.0
« Reply #109 on: December 04, 2010, 12:36:24 pm »

oh darius for self modding Dfusion how would someone like me go through and make swapping/taming creatures just by using the cursor?
In adventure mode?
First you need to find pointer for x,y,z location of the pointer. It should be in one place (that is xxyyzz where one letter is one byte) after you know that load those coordinates (with engine.peekw(offset)) and compare to each creature's coordinates. I could write a tutorial/tool for that but maybe tomorrow because now i'm exhausted. Oh and usually you need some kind of memory hacking tool to find new offsets. (or just steal them from DFHack :) )
« Last Edit: December 04, 2010, 12:44:23 pm by darius »
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.0
« Reply #110 on: December 09, 2010, 03:12:34 am »

Here a suggestion I don't really need but would be fun to play around.
What if you could change the race of the character(though traveling might lead to wolves with human title turning into humans and humans with cat titles turning into cats and vice versa)?
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

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #111 on: December 09, 2010, 08:01:45 am »

Okay updated! Now adventurer tools have pointer based (that pointer that you get by looking or talking) targeting AND its heavily commented (thats closest i could get to tutorial...).
Here a suggestion I don't really need but would be fun to play around.
What if you could change the race of the character(though traveling might lead to wolves with human title turning into humans and humans with cat titles turning into cats and vice versa)?
I will try that. Although it might be possible to make a more permanent solution if ill find where DF keeps creatures while they are traveling ( i hope not in files...)
Edit: it worked... but very crashy. Changed before traveling and when landed it still was a dragon, but crashed soon after starting to fight (although it breathed fire)
« Last Edit: December 09, 2010, 08:09:43 am by darius »
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #112 on: December 09, 2010, 09:22:04 am »

Okay updated! Now adventurer tools have pointer based (that pointer that you get by looking or talking) targeting AND its heavily commented (thats closest i could get to tutorial...).
Here a suggestion I don't really need but would be fun to play around.
What if you could change the race of the character(though traveling might lead to wolves with human title turning into humans and humans with cat titles turning into cats and vice versa)?
I will try that. Although it might be possible to make a more permanent solution if ill find where DF keeps creatures while they are traveling ( i hope not in files...)
Edit: it worked... but very crashy. Changed before traveling and when landed it still was a dragon, but crashed soon after starting to fight (although it breathed fire)
I expect something on par of needing to save the game first before having the changes are permanent. I guess you help pave a small way to playing as proper night creatures and stealing folks for converting purposes. that and for roleplaying experiences.
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

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #113 on: December 09, 2010, 11:07:44 am »

If you want to try race changing:
Code: [Select]
function adv_tools.racechange()
--first three lines same as before (because we will need an offset of creature at location x,y,z)
myoff=offsets.getEx("AdvCreatureVec")
vector=engine.peek(myoff+16,ptr_vector)
indx=GetCreatureAtPos(getxyz())
RaceTable=RaceTable or BuildNameTable() --slow.If loaded don't load again
print("Enter race name ALL CAPS!:")
repeat
entry=io.stdin:read() --get entry
id=RaceTable[entry] -- find race id
until id~=nil -- if not found repeat
engine.poke(vector:getval(indx),ptr_Creature.race,id)
end
insert this into adv_tools/plugin.lua (in the second line)
and replace
Code: [Select]
choices={{adv_tools.changeadv,"Change adventurer"},{adv_tools.MakeFollow,"Make creature follow"},{function () return end,"Quit"}} --make a table of function+string pairs
with
Code: [Select]
choices={{adv_tools.changeadv,"Change adventurer"},{adv_tools.MakeFollow,"Make creature follow"},{adv_tools.racechange,"Change race"},{function () return end,"Quit"}} --make a table of function+string pairs
But be warned: its quite buggy and will crash DF.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #114 on: December 09, 2010, 08:47:58 pm »

well learn one thing you should not do with a changed creature...
don't look at their description.
also don't attack with them until body is fully changed... which I think is from saving the game... well time to see if this is true! it's true I got a human female turn salt banshee to use salt based attacks and kill a human spearman before dying from the mob rush. so I guess one could perma change into another race... but doing so kills any chance of seeing your descriptions.
« Last Edit: December 09, 2010, 11:57:28 pm by Rumrusher »
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

Askot Bokbondeler

  • Bay Watcher
  • please line up orderly
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #115 on: December 09, 2010, 09:33:36 pm »

don't look at their description.

a creature so horrendous the mere description of it's aspect is enough to drive men insane!

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #116 on: December 09, 2010, 09:45:59 pm »

don't look at their description.

a creature so horrendous the mere description of it's aspect is enough to drive men insane!
also don't stand in the line of fire of friendly dragons (does not crash but melts ;) )
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #117 on: December 09, 2010, 10:07:48 pm »

don't look at their description.

a creature so horrendous the mere description of it's aspect is enough to drive men insane!
also don't stand in the line of fire of friendly dragons (does not crash but melts ;) )
STILL don't look into the description of a changed character... even if you saved and travel with them.
makes me wonder how Dwarf companion pull that one off as well.
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

Kobold Troubadour

  • Bay Watcher
  • [MUSICALITY: +-]
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #118 on: December 10, 2010, 08:04:08 am »

STILL don't look into the description of a changed character... even if you saved and travel with them.
So you can change your companion to a Colossus or Fiend but you're forbidden to look at them directly ever again? Medusa effect huh? So the Caravan arc will also give new hurdles to jump over...interesting...
Logged
[UTTERANCES] kinda' makes it hard for people to understand kobold songs...

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v2.1
« Reply #119 on: December 10, 2010, 07:05:14 pm »

STILL don't look into the description of a changed character... even if you saved and travel with them.
So you can change your companion to a Colossus or Fiend but you're forbidden to look at them directly ever again? Medusa effect huh? So the Caravan arc will also give new hurdles to jump over...interesting...
well the game will turn to stone and crumble.
so far you should not travel as adventurer's companion(being someone's companion won't lead to this),
don't fight the creature who race has been changed unless you save the game after the change is done, don't 'L'ook 'D'irectly into the swap creature 'D'etails (don't know if this works in fort mode),
also build a abandon fort a small click from a lair (but not on top of it) for companion storage,
lairs are for items not people... until darius could find away to seal creatures in cages or figure out how to turn forts into lairs and towns this would be a good option.



edit: I figure out why we can't look at descriptions. the hack only changes the race and not the personal descriptions each race has. so if a blue eye human with blond hair gets turn into a rabbit then the human data can't cross over to the rabbit data due to the game searching for that type of description under the rabbit race leading to a crash. It could be fixed if someone adds in a Faux-detail in order to bypass the game need of a certain type of detail. now while I'm on it if changing race changes the creatures limbs if you save and reload what happens if said creature is wounded would this means we can heal team mates if we change them to their race?



edit: IT WORKS, that salt demon I had human limbs are still fine compared to her losing her left foot.
so one can heal companions/self if you change your race.
the thing is I don't know as of now if the demon form get's patch up or would that still lead to a missing leg.
here's to reviving dead folks and Zombism!

edit: Yes the limb grows back the limb grows back! All you have to do is to change creature race to something else travel change back then travel again! said human salt demon was fix of her missing foot problem.
« Last Edit: December 10, 2010, 10:05:59 pm by Rumrusher »
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
Pages: 1 ... 6 7 [8] 9 10 ... 38