Aller au contenu

Photo

FYI to new modders on module_core


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
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.

#2
Proleric

Proleric
  • Members
  • 2 355 messages
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
_L_o_B_o_

_L_o_B_o_
  • Members
  • 117 messages
I was doing it wrong. Thanks for sharing :)

Modifié par _L_o_B_o_, 18 juillet 2010 - 08:27 .