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 User:Jifodus/Dwarf Fortress Utility Framework
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: | ||
− | I'm currently writing a framework for Dwarf Fortress utilities. The general idea is to use C++ interfaces in a cross-compiler fashion that is very easy to use | + | I'm currently writing a framework for Dwarf Fortress utilities. The general idea is to use C++ interfaces in a cross-compiler fashion that is very easy to use. |
− | + | Please note, since this is still currently under development, I don't have the time to make a pretty WikiPage. I also will not post the interface & file format document for the same reason. Once there is a release, I will have a solid data format that will probably never change, as well as unchanging interfaces. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Features Overview== | ==Features Overview== | ||
Line 52: | Line 18: | ||
* Complete source code | * Complete source code | ||
* Identify Dwarf Fortress version via PE executable timestamp | * Identify Dwarf Fortress version via PE executable timestamp | ||
− | * Cross-compiler/ | + | * Cross-compiler/C compatible using Windows COM style interfaces |
− | |||
* Auto-loading of Lua data files | * Auto-loading of Lua data files | ||
* Library self-contained in DLL | * Library self-contained in DLL | ||
Line 70: | Line 35: | ||
** iDFUF::installDataFile is not yet implemented | ** iDFUF::installDataFile is not yet implemented | ||
* Compiled as debug mode (bloated file sizes) | * Compiled as debug mode (bloated file sizes) | ||
+ | * Windows XP or later required (from the use of GetModuleHandleEx) | ||
* The library is not extensively tested | * The library is not extensively tested | ||
− | |||
===Second Release=== | ===Second Release=== | ||
Line 226: | Line 191: | ||
uf->addTypeFactory("creature", &global_CreatureFactory); | uf->addTypeFactory("creature", &global_CreatureFactory); | ||
iPointer *pointer; | iPointer *pointer; | ||
− | cCreatureType *creature = (cCreatureType *)instance->getMemoryObject | + | cCreatureType *creature = (cCreatureType *)instance->getMemoryObject(pointer, instance->getType("creature")); |
− | |||
creature->setHappiness(-10000); // hahaha die dwarf! | creature->setHappiness(-10000); // hahaha die dwarf! | ||
uf->destroy(); | uf->destroy(); | ||
} | } | ||
− | |||
− |