Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Better way to add variants to faction fleets than replacing faction file?  (Read 1302 times)

Vinyl Dash

  • Lieutenant
  • **
  • Posts: 61
    • View Profile

I was wondering if there was a better way of adding ship variants to fleets of a given faction than simple replacing the entire faction file. While doing that works, it kind of breaks apart once you have two mods trying to change that faction file.

Is there something like "faction.addVariant(shipRole, variant, weight)" to be be used in a script that I'm missing?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24103
    • View Profile
Re: Better way to add variants to faction fleets than replacing faction file?
« Reply #1 on: December 31, 2014, 11:29:22 AM »

Take a look here:
http://fractalsoftworks.com/forum/index.php?topic=5016.0

In brief, you don't need to replace the entire file - the mod's file should only have the stuff that's new/different.
Logged

Vinyl Dash

  • Lieutenant
  • **
  • Posts: 61
    • View Profile
Re: Better way to add variants to faction fleets than replacing faction file?
« Reply #2 on: December 31, 2014, 11:42:54 AM »

Ah, wonderful. Works perfectly too.

Thanks a lot for the ridiculously fast reply.
Logged