Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Compatibility Check Token (for better compatibility between mods)  (Read 311 times)

Fatace

  • Bay Watcher
  • Cease hostilities? Never!
    • View Profile

I did bring this up to Putnam in Kitfox discord prior, but this should probly be something in Suggestions as well.

Alot of non-modders tend to not understand how compatibility works with DF compared to other games and modding, with DF in order for us to change something with a vanilla defined creature/entity, we would have to just re-write it. Some people just CUT out the original, then just re-add it back in and paste it back in with the new things, under the same token name. While some mods do that, others re-define the name making the originals obsolete. So when the said player adds in a mod that gives the human PLAINS civ new weapons or workshops, to a mod that CUTS the PLAINS civ and adds in a X_PLAINS, it can't be added in.

This leaves the player the option to just add in the tokens themselves, or them just being deterred from wanting to use x mod cuz of this.



Suggestion:

Modders need to have some form of a mod id check system token for the [SELECT_X] tag. This will allow modders to make their mod compatible with other mods alot easier.

Example:
- Lets say a modder adds in a new workshop, but the player is using a mod that redefined the entity so it cannot just easily do [SELECT_ENTITY:PLAINS] to add the new tokens to it..

Compatible way:

[SELECT_ENTITY:NEW_PLAINS:IF:(mod id that adds in the first mod's workshop)]
 
^ This will allow the modder that made the re-defined entity to check if a mod is present, if it is, the mod will add in the new workshop to the defined entity. If the mod id does not exist, the tokens are not added.

"but what about it adding tokens to the normal defined entities/creatures?"

[SELECT_ENTITY:PLAINS:IF:(mod id)]

Would be the same as well. If the mod id is not present upon world generation, it skips over this.




This addition would be greatly appreciated and would be beneficial considering how annoying it is that non-modders dont understand how DF works for mod compatibility wise on Steam.
Logged
I once had a 30 dwarf glacier fortress once.. was going great till the dwarf merchants brought along a WereKoala and killed everyone...