I released my mod and found it was giving two points per one point of distribution points on level up. This was because I had my module script falling through to the module_core but did not need to fall through. Since my mod is connected to the Single Player campaign as an add-on the SP campaign already covers the module_core. By having my mod fall through it was calling the module_core twice and giving the +2 attribute bug.
This written as I understand the issue. If some guru's out there want to explain it better (or fix what I may have said wrong) or explain it more clearly for the other newbies, please do!
The moral to the story is your module script should not have to fall through to the module_core if you are an add-on to the single player campaign. I'm not sure if you need to if you are a stand-alone module or not. Maybe not in all cases? Correct me if I'm wrong. Thanks.
FYI to new modders on module_core
Débuté par
Sonmeister
, juil. 16 2010 11:47
#1
Posté 16 juillet 2010 - 11:47
#2
Posté 18 juillet 2010 - 06:55
That's correct. The main campaign normally needs to fall through (be it custom or Single Player), add-ins shouldn't. The reason is that the module scripts for all active add-ins run in addition to the main campaign module script. You only want module_core to run once. I think it's covered in the wiki, but maybe it could be clearer.
#3
Posté 18 juillet 2010 - 08:26
I was doing it wrong. Thanks for sharing
Modifié par _L_o_B_o_, 18 juillet 2010 - 08:27 .





Retour en haut






