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?
Overriding combat_h
Débuté par
Lathaon
, janv. 17 2010 01:29
#1
Posté 17 janvier 2010 - 01:29
#2
Posté 17 janvier 2010 - 06:17
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.
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
Posté 17 janvier 2010 - 08:15
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?
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
Posté 17 janvier 2010 - 08:31
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
Posté 18 janvier 2010 - 05:19
I've been using DAToolChest to find all the scripts that need recompiling. Sometimes a header file appears in more than one script.
#6
Posté 18 janvier 2010 - 08:08
Ah, cool. If I'd known about that sooner, I wouldn't have bothered writing my own program for it.





Retour en haut







