Ludeon Forums

Ludeon Forums

  • October 07, 2022, 11:57:13 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [A16] Modding: ResearchMod class broken.  (Read 993 times)

Fluffy (l2032)

  • Planetologist
  • ****
  • Posts: 1400
  • Cat guy
    • View Profile
[A16] Modding: ResearchMod class broken.
« on: January 09, 2017, 04:29:48 PM »

There are two problems with researchMods;
1; The class itself is useless as a base class; the Apply() function is not virtual, and the specialAction field is private.
2; Assigning a researchMod type to the researchMods field in ResearchProjectDef XML leads to a 'Trying to parse to unknown data type' error.

Expected behaviour;
1; Apply() is virtual, and/or specialAction is public.
2; Setting workers in XML functions the same as setting workers for e.g. hediffs.
Logged

Tynan

  • Developer
  • Administrator
  • Transcendent
  • *****
  • Posts: 12484
    • View Profile
    • Tynan's Blog
Re: [A16] Modding: ResearchMod class broken.
« Reply #1 on: January 19, 2017, 12:01:22 PM »

I'm gonna cut ResearchMod, it's unsupported old cruft.
Logged
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Tynan

  • Developer
  • Administrator
  • Transcendent
  • *****
  • Posts: 12484
    • View Profile
    • Tynan's Blog
Re: [A16] Modding: ResearchMod class broken.
« Reply #2 on: January 19, 2017, 12:03:38 PM »

Done, thanks.
Logged
Tynan Sylvester - @TynanSylvester - Tynan's Blog