Aller au contenu

Photo

Overriding combat_h


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

#1
Lathaon

Lathaon
  • Members
  • 163 messages
I've made some changes to combat_h, recompiled it (though this required adding "void main() {}" at the end - the compiler doesn't seem to accept scripts without those), put the .ncs file in packages\\core\\override and deleted all the toolsetexport stuff. I checked my override folder and it's definitely the only combat_h.ncs in there.

I added a UI message (shattered) which should display every time someone attacks, just to make sure it was running. It wasn't.

Any idea what the problem might be?

#2
Challseus

Challseus
  • Members
  • 1 032 messages
Hi.

combat_h is an include file, which is why it doesn't have a void main(). When you make changes to it, you must re-compile all files that include it in order to see the changes.

#3
Lathaon

Lathaon
  • Members
  • 163 messages
Ah, thanks. I knew it was an include file, just figured it would compile seperately.

So if it's included by another include file (rules_h), does that mean all the scripts that use rules_h need to be recompiled?

Modifié par Lathaon, 17 janvier 2010 - 08:16 .


#4
Challseus

Challseus
  • Members
  • 1 032 messages

Lathaon wrote...

Ah, thanks. I knew it was an include file, just figured it would compile seperately.

So if it's included by another include file (rules_h), does that mean all the scripts that use rules_h need to be recompiled?


Unfortunately, yes.

#5
Proleric

Proleric
  • Members
  • 2 355 messages
I've been using DAToolChest to find all the scripts that need recompiling. Sometimes a header file appears in more than one script.

#6
Lathaon

Lathaon
  • Members
  • 163 messages
Ah, cool. If I'd known about that sooner, I wouldn't have bothered writing my own program for it.