Author Topic: Modding incompatibilities  (Read 528 times)

Spyrex

  • Newbie
  • *
  • Posts: 9
    • View Profile
Modding incompatibilities
« on: May 03, 2021, 08:19:11 am »
I recently ran into the problem of overriding a core's script, resulting in many ambiguity errors because this script already got overridden by another mod.
How to prevent these errors?

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1945
    • View Profile
Re: Modding incompatibilities
« Reply #1 on: May 03, 2021, 10:19:25 am »
Hello!

Unfortunately, it's not possible to avoid this kind of conflict so it's best to avoid using this particular combination of mods.
We may consider a solution to merge scripts but overall it's a very unreliable approach (because the code is in C# and not some scripting language).

Regards!

Spyrex

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Modding incompatibilities
« Reply #2 on: May 03, 2021, 10:30:29 am »
And what would be the best option for me?
The mod I am trying to create has the mod that is conflicting with my mod as a dependency. :(

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1945
    • View Profile
Re: Modding incompatibilities
« Reply #3 on: May 03, 2021, 10:32:51 am »
If there is definitely no way to avoid overriding the same file, then the easiest solution would be to just incorporate the other mod into yours and manually merge the changes so there are no conflicts.

Spyrex

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Modding incompatibilities
« Reply #4 on: May 03, 2021, 10:34:57 am »
Okay I will do that, but I hope there will be a better way soon  ;)