v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing Utility:DFusion
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
== DFusion info page == | == DFusion info page == | ||
Thread for discussions: [http://www.bay12forums.com/smf/index.php?topic=93317.0 Thread] | Thread for discussions: [http://www.bay12forums.com/smf/index.php?topic=93317.0 Thread] | ||
Line 11: | Line 9: | ||
=== dfusion === | === dfusion === | ||
First this command runs all plugins' init.lua part then show a menu. Type number to run specified plugin. | First this command runs all plugins' init.lua part then show a menu. Type number to run specified plugin. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== dfuse === | === dfuse === | ||
Similar to dfusion but not interactive. To be used with hotkeys (later will have command support). | Similar to dfusion but not interactive. To be used with hotkeys (later will have command support). | ||
Line 27: | Line 17: | ||
== Exported functions and objects == | == Exported functions and objects == | ||
The DF is accessed by object 'df'. This object holds all the types, globals table and some helper functions. | The DF is accessed by object 'df'. This object holds all the types, globals table and some helper functions. | ||
− | |||
=== Examples === | === Examples === | ||
<pre> | <pre> | ||
Line 39: | Line 28: | ||
end | end | ||
</pre> | </pre> | ||
− | + | This is also useful to get what fields are available: | |
<pre> | <pre> | ||
− | + | for k,v in pairs(df.global) do --any object can be instead of df.global | |
− | + | print(k) | |
+ | end | ||
</pre> | </pre> | ||
− | + | Also all the flags can be accessed by name or by number: | |
<pre> | <pre> | ||
− | + | first_unit.flags.dead=true --is same as... | |
+ | first_unit.flags[1]=true --... this | ||
</pre> | </pre> | ||
− | |||
=== Other objects === | === Other objects === | ||
==== Console. ==== | ==== Console. ==== | ||
Line 128: | Line 118: | ||
| pokestr | | pokestr | ||
| writes a string to memory | | writes a string to memory | ||
− | | | + | | peekstr(0x15486,"Hello world") |
|} | |} | ||
Line 167: | Line 157: | ||
This section explains in detail some of more complex things that could be done with dfusion. | This section explains in detail some of more complex things that could be done with dfusion. | ||
− | + | ...TODO... | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Tips and Tricks == | == Tips and Tricks == | ||
− | * To use dfusion's functionality in lua first run '' | + | * To use dfusion's functionality in lua first run ''dfusion'' (exit it with 'q') and then use run ''lua'' |
− |