Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Using DFHack to edit site types: is it possible?  (Read 1382 times)

ImACatNamedGloves

  • Bay Watcher
    • View Profile
Using DFHack to edit site types: is it possible?
« on: July 06, 2022, 10:10:31 am »

Hello there,

Supposing that I have enough coding experience to write either C++ plugins and Lua scripts. Does DFHack have access to the hardcoded data structures that define site types such as CITY, FORTRESS and so on? Could it be possible to edit them somehow or at least know where they are? The difficulty of such a thing is something else - I'm talking about the viability of the concept. What do y'all think about this?

I'm eager to read your toughts on this matter.
Logged

newtyrol

  • Bay Watcher
    • View Profile
Re: Using DFHack to edit site types: is it possible?
« Reply #1 on: August 04, 2022, 09:03:46 pm »

I know that when you are in adventure mode that DFHack's adventureFort script relies on having a permenant saving site to prevent any changes from being reverted. And it had code that allows you to add like 2-3 different options of site types to preserve it. I have no idea if changing a site type would cause issues or not.
Logged