Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 23 24 [25] 26 27 ... 38

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

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #360 on: July 10, 2011, 06:53:22 am »

Great now the guys over at Dferm could use DFusion to chat in game!
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

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFusion - a lua based plugin system v3.8
« Reply #361 on: July 10, 2011, 07:17:02 am »

You know... with the current direction of DFHack, we could totally join forces and proceed towards world domination :)
I'm putting stuff into the DF binary through a shim library between DF and SDL. Works like a charm. Your LUA stuff could live inside DFHack as a plugin, possibly removing a lot of code and becoming cross-platform at the same time. It would be awesome.

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #362 on: July 10, 2011, 07:58:30 am »

You know... with the current direction of DFHack, we could totally join forces and proceed towards world domination :)
I'm putting stuff into the DF binary through a shim library between DF and SDL. Works like a charm. Your LUA stuff could live inside DFHack as a plugin, possibly removing a lot of code and becoming cross-platform at the same time. It would be awesome.
Does this mean all my work which goes into a plugin.lua for DFusion will be now stuck into a plugin of Dfusion which is a plugin for DFhack?

some kind of pluginception?
edit: oh well I'm off to write silly announcement quotes and attach them to the ends some of my commands.

Code: [Select]
function func.PrintMessage1_()
print("Type a message:")
msg="Rise from your grave, you save my daughter!"
func.PrintMessage(msg,2,1)
end
function func.PrintMessage2_()
print("Type a message:")
msg="Stand there!"
func.PrintMessage(msg,2,1)
end
function func.PrintMessage3_()
print("Type a message:")
msg="Channeling souls here!"
func.PrintMessage(msg,5,1)
end
to place these into the Trigger folder
and to use them in a normal Rum_mod function or any really
just stick this
func.PrintMessage3_(msg)
in either the beginning or end of the command.
though due to the fact adventure mode won't announce if you have the pointer out but will be shown in the announcements. happy flavor adding
« Last Edit: July 10, 2011, 09:41:57 am 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

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #363 on: July 10, 2011, 01:06:29 pm »

You know... with the current direction of DFHack, we could totally join forces and proceed towards world domination :)
I'm putting stuff into the DF binary through a shim library between DF and SDL. Works like a charm. Your LUA stuff could live inside DFHack as a plugin, possibly removing a lot of code and becoming cross-platform at the same time. It would be awesome.

Would love to, but DFHack is overwhelmingly big and not sure where i would need to start...
Logged

The Master

  • Bay Watcher
  • A respectable sort of psychopath
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #364 on: July 10, 2011, 03:17:57 pm »

which version of Dwarf fortress and Dfusion are your currently using?
the new ones should just send an error and not crash.

i'm using the current version for both. i'll tell you the exact version in a sec.

EDIT: dwarf fortress 0.31.25            DFusion 3.8
« Last Edit: July 10, 2011, 03:19:55 pm by The Master »
Logged
Holy jesus I thought I was ready but nothing could have prepared me for this
Hush, little Asea, don't you cry.
If he notices we'll surely die!
You. Made. Asea. CRY.

Gamerlord

  • Bay Watcher
  • Novice GM
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #365 on: July 10, 2011, 06:34:37 pm »

AAAHHH WHAT THE HELL IS WITH THIS THING I RAN EMBARK BY ACCIDENT THEN SIMPLE EMBARK AND NOW DF WON"T GO INTO DWARF FORTRESS MODE HOW DO I FIX THIS????

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #366 on: July 10, 2011, 08:00:02 pm »

AAAHHH WHAT THE HELL IS WITH THIS THING I RAN EMBARK BY ACCIDENT THEN SIMPLE EMBARK AND NOW DF WON"T GO INTO DWARF FORTRESS MODE HOW DO I FIX THIS????
uhh have you try to reset DF?
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

Gamerlord

  • Bay Watcher
  • Novice GM
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #367 on: July 10, 2011, 08:30:48 pm »

um... If I give sentience to a creature, do I have to go back into the raws to fix this?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #368 on: July 10, 2011, 08:57:56 pm »

no it's doesn't change the raw file... or touches it really just the game it self.
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

Gamerlord

  • Bay Watcher
  • Novice GM
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #369 on: July 10, 2011, 09:07:20 pm »

k. and when should i use the embark and simple embark ?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #370 on: July 10, 2011, 10:13:44 pm »

it should say when to use them in the Read me file.
but if that confusing you should use them during the map section of embark screen.
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

UltraValican

  • Bay Watcher
  • The Man aiming to be a Man!
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #371 on: July 12, 2011, 01:11:30 pm »

May i suggest a more user friendly/in depth "read me" file, because so far i can only use embark anywhere corectly, almost every thing else dosn't work.
Also can someone just tell me how I can make goblin migrants for a bit then swich back to dwarves.
This is a great tool, you just need to elaborate more on how its used.
Logged
Would you rather be an Ant in Heaven or a Man in Hell?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #372 on: July 12, 2011, 04:15:08 pm »

Spoiler (click to show/hide)
Rum's rough guide to Dfusion
if you can't do anything of these things then type out the first error you see and either Darius or I/me will answer.
if you excuse me I need to rest my wrist for writing up this "'non-developer' guide."
« Last Edit: July 13, 2011, 08:43:15 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

UltraValican

  • Bay Watcher
  • The Man aiming to be a Man!
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #373 on: July 12, 2011, 04:23:13 pm »

WOW, thanks for the guide, you really didn't have to type all that just to awswer my question, but I thank you all the same. :)
Logged
Would you rather be an Ant in Heaven or a Man in Hell?

micha

  • Bay Watcher
    • View Profile
Re: DFusion - a lua based plugin system v3.8
« Reply #374 on: July 13, 2011, 06:19:37 am »

>>   V3.5   .. added missing patterns2.lua and moved it to plugins folder.

awesome! thanks you muchly!
Logged
Pages: 1 ... 23 24 [25] 26 27 ... 38