Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 33 34 [35] 36 37 38

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

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #510 on: January 05, 2012, 12:18:27 am »

Yes. She's friends with 3 other fire imps, 2 male one female if that helps. Hm...

Maybe she wanted a little adventure in her life? :P

EDIT: Actually, this is intresting enough that I might track the story of Asmel.
 
'The Story of Asmel Wheelscalded, Impborn.'
'Never has such a creation existed, neither shall it exist again.'
I'll be posting the story in the Community Stories forum, and I'll be posting here the progress of the mysterious half-breed.

EDIT2: For some reason, if I try to look at Asmel's description now, it crashes. What happened?

EDIT3:Look's like this world's screwed. IT crashes before I can do much else anyway. :(
« Last Edit: January 05, 2012, 02:59:33 am by IamanElfCollaborator »
Logged

Reudh

  • Bay Watcher
  • Perge scelus mihi diem perficias.
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #511 on: January 05, 2012, 02:43:40 am »

So this code
Code: [Select]
function selectcaged()
  local retvec={} --return vector (or a list)
  myoff=offsets.getEx("AdvCreatureVec")
  vector=engine.peek(myoff,ptr_vector) --standart start
  for i=0,vector:size()-1 do --check all creatures
     local off
     off=vector:getval(i)
     --[[local crciv=engine.peek(off,ptr_Creature.civ)
     local curciv=engine.peek(vector:getval(0),ptr_Creature.civ)
     if curciv==crciv then]]--
     local flags=engine.peek(off,ptr_Creature.flags)
     if flags:get(25)==true then  --if caged ...
        table.insert(retvec,off)--... add it to return vector
     end
  end
  return retvec --return the "return vector" :)
end
function convertcage()
local trgs=selectcaged()
for k,v in pairs(trgs) do
flags=engine.peek(v,ptr_Creature.flags)
flags:set(17,false)
flags:set(19,false)
flags:set(26,true) --this is the tamed flag
local crciv=engine.peek(v,ptr_Creature.civ)
local curciv=engine.peekd(offsets.getEx("CurrentRace")-12)
engine.poke(v,ptr_Creature.civ,curciv)
end
end

linked earlier DOES work without a hitch?
And how do I access it?

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #512 on: January 05, 2012, 03:36:42 am »

Yes. She's friends with 3 other fire imps, 2 male one female if that helps. Hm...

Maybe she wanted a little adventure in her life? :P

EDIT: Actually, this is intresting enough that I might track the story of Asmel.
 
'The Story of Asmel Wheelscalded, Impborn.'
'Never has such a creation existed, neither shall it exist again.'
I'll be posting the story in the Community Stories forum, and I'll be posting here the progress of the mysterious half-breed.

EDIT2: For some reason, if I try to look at Asmel's description now, it crashes. What happened?

EDIT3:Look's like this world's screwed. IT crashes before I can do much else anyway. :(

:/ it a shame. Really wanted this to grow into something more.

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #513 on: January 05, 2012, 03:59:30 am »

Yes. She's friends with 3 other fire imps, 2 male one female if that helps. Hm...

Maybe she wanted a little adventure in her life? :P

EDIT: Actually, this is intresting enough that I might track the story of Asmel.
 
'The Story of Asmel Wheelscalded, Impborn.'
'Never has such a creation existed, neither shall it exist again.'
I'll be posting the story in the Community Stories forum, and I'll be posting here the progress of the mysterious half-breed.

EDIT2: For some reason, if I try to look at Asmel's description now, it crashes. What happened?

EDIT3:Look's like this world's screwed. IT crashes before I can do much else anyway. :(
hmm did you close out of DF then reload, maybe you need friendship running to view?


reudt to get that to work you need to add this line
"   tools.menu:add("Convert those in cages",convertcage)"
To the one similar to it. You can find it in the plugin.lua.
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

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #514 on: January 05, 2012, 05:05:48 am »

I'ma going to need a gender change function to do moar !!SCIENCE!!
So far, I have proved it is possible to look at a half-breeds description, and to have a half-breed born under normal, fort mode circumstances without using adventurers or race changers. We must do !!SCIENCE!!, for we can make some real breakthroughs using this knowledge.

Reudh

  • Bay Watcher
  • Perge scelus mihi diem perficias.
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #515 on: January 05, 2012, 05:24:24 am »

I have embedded Dfusion, is it any different? I had to create a new plugins.lua, as there wasn't one before.

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #516 on: January 05, 2012, 06:03:02 am »

lol I find it strange that you are not somehow curious about this new development.
And nope, not to my knowledge. Unless Rumrusher or Darius proves me wrong, there isn't anything different about embedding Dfusion.

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #517 on: January 05, 2012, 08:04:47 am »

by embedded Dfusion you mean DFhack Dfusion, if so then the difference is little, there's no adv_tools and it has onfunction. Though non Dfhack dfusion has access to typing messages into Dwarf fortress and one could set up series of print commands.


Iaman, Adventurer's fall under Race changers, I had not got an adventurer recently to be in a romantic relationship I got up to buds and friends though.
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

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #518 on: January 05, 2012, 08:08:04 am »

Ah. In that case I have actually sort of gotten farther than you by getting two different races to be married and have children. Most of my dwellers are friends as well. Maybe adventure mode halfbreed mechanics are different from fort mode?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #519 on: January 05, 2012, 11:07:28 am »

Ah. In that case I have actually sort of gotten farther than you by getting two different races to be married and have children. Most of my dwellers are friends as well. Maybe adventure mode halfbreed mechanics are different from fort mode?
there no Adventure mode breeding mechanics, or I haven't seen them.

but man I hate how dfhack's mode set prevents people from changing modes if they are in Reclaim mode.

if I'm luckily AVG hasn't banned all of Dfhack's old programs from use.
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

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #520 on: January 05, 2012, 11:10:33 am »

Hell, theres a lot of !!SCIENCE!! to go through here. I'll be working to see if I can replicate Asmel Impborn.

EDIT: I just noticed I was using the unsupported Dfusion standalone. I just put that out just in case that influenced the existence of the hybrid in a fort mode without race change.
« Last Edit: January 05, 2012, 12:13:53 pm by IamanElfCollaborator »
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #521 on: January 05, 2012, 12:53:45 pm »

Damn dfusion is buggy... And almost all are super stupid bugs (e.g. forgetting to make some space for migrant races...)

Quickfix:
pls edit init.lua in migrants folder (or is it plugin.lua... i forget what version is other ppl using...) and edit
Code: [Select]
modpos,modsize=engine.loadmod("dfusion/migrants/migrants.o","Migrants")
to something like
Code: [Select]
modpos,modsize=engine.loadmod("dfusion/migrants/migrants.o","Migrants",400) -- make space for 100 migrant races...

Edit2: oh actually kobold just said that he's unhappy that his best friend (gremlin medic) has decayed... So interracial friendship is possible. Let's see what will happen next :)
Edit3: slight bug...
Spoiler (click to show/hide)
i think all the civs want to trade with me... and at the same time.
« Last Edit: January 05, 2012, 01:33:16 pm by Warmist »
Logged

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #522 on: January 05, 2012, 06:08:52 pm »

Lucky..

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: DFusion - a lua based plugin system v3.8
« Reply #523 on: January 05, 2012, 06:32:54 pm »

i think all the civs want to trade with me... and at the same time.
i think all the civs want to trade with me...
all the civs want to trade with me...
If this could be mastered... There could be more then just your parent civ trading with you...

EDIT:
If a cap could be set for how many civs of a certain entiti could come and what ones (2 HUMAN/PLAINS, 3 DWARF/MOUNTIAN) could request more stuff, and have larger trades without making Multiple Entities of the same race creature.
« Last Edit: January 05, 2012, 06:34:57 pm by Hugo_The_Dwarf »
Logged

Nighthawk

  • Bay Watcher
  • INT Score: Yes
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #524 on: January 05, 2012, 06:34:08 pm »

I haven't played DF in a while. I remember the last time I used this mod, it was to resurrect my slain adventurer.

Unfortunately, the enemies simply killed me every time I was brought back to life.

It was depressing.
Logged
Pages: 1 ... 33 34 [35] 36 37 38