Dwarf Fortress

Dwarf Fortress

Not enough ratings
C++ Plugin Sideloader
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
486.484 KB
16 Sep @ 10:24am
1 Change Note ( view )

Subscribe to download
C++ Plugin Sideloader

Description
C++ Plugin Sideloader
=---------------------------------------------------------------------------------------------------=
How to use
The mod add 2 DFhack scripts out of the box. Install and uninstall
To install the C++ located in plugins folder in the mod directory just run the install script
Uninstalling you can figure out.
The plugin just shows a announcement and source code is available
=---------------------------------------------------------------------------------------------------=
The mod serves as a template or proof of concept for modders
This mod allows easy deployment of C++ plugins as mods.
This mod also serves as a template for those who want to load their C++ plugins into dwarf fortress without having to go folder spelunking and for those looking to expand their modding arsenal opening a whole area of modding.

Regular DFhack lua scripts use only C++ wrappers and therefore limited in their capabilites. If you could directly access the C++ functions you would have much more control modding. DFhack is a memory hacking tool so it is limited in its nature but still open for a great deal of tomfoolery


This mod contains:
  • install_plugin(mod) and uninstall_plugin(mod) DFhack scripts
  • shmurda.plug.dll/.so plugin (currently only .dll)
  • smurda.plug.dll source code

Current state
There are alot of things i wanna implement but the script works well for those who are already playing with c++ modding.

Cross-compiled example plugins for linux, Some sort of file verification to not accidentally delete other plugins
As of now there is a plug.so but its just a empty file used for testing and proof of concept.

I made this when i was writing a mud drying feature for my other mod because i got fedup with folders constantly open. But i think this mod could serve modders in distribution and ease of use for their mods, even better, no more folders open :D

=---------------------------------------------------------------------------------------------------=
I also uploaded the mod to github
https://github.com/based8/c-_plugin_sideloader
=---------------------------------------------------------------------------------------------------=

DFhack naturally required