Now, in the middle of making changes to the scripts, the events inexplicably stopped firing as though they were no longer being overridden. During this time I had made no changes at all to the GDA file but now cannot, for the life of me, get this working again.
Unfortunately I've made so many changes to things trying to get it working again since then that I can't remember how things were originally. Here's what I now have:
The script (AddIns/bring_a_friend/module/override/toolsetexport/et_baf_rules_core.ncs)
(Most of the code is now taken out of this and just debugging messages are left)
#include "events_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
switch(nEventType)
{
case EVENT_TYPE_ATTACKED:
{
object oAttacker = GetEventObject(ev, 0);
DisplayFloatyMessage(oAttacker, "EVENT_TYPE_ATTACKED");
HandleEvent(ev);
break;
}
case EVENT_TYPE_PERCEPTION_APPEAR:
{
object oAppear = GetEventObject(ev,0);
DisplayFloatyMessage(oAppear, "EVENT_TYPE_PERCEPTION_APPEAR");
HandleEvent(ev);
break;
}
}
}
The GDA (AddIns/bring_a_friend/module/override/engineevents_et_baf.gda)
(Created with GDApp as I don't have Excel and Open Office produces no files)
ID Label Script
int string string
25 EVENT_TYPE_PERCEPTION_APPEAR et_baf_rules_core
1001 EVENT_TYPE_ATTACKED et_baf_rules_core
I've tried pretty much everything I can think of, including changing the GDA file name, changing the IDs, creating a new mod, deleting everything and starting from scratch, etc. The most frustrating thing is that this was working but now won't work no matter what I do.
The only 2 possibilities I can come up with is that my GDA file is wrong or the game is ignoring any resources the toolset creates.
I've had so many strange and inconsistent problems with the toolset that I'm begining to think my installation is corrupted in some way.
Modifié par Emmental, 16 décembre 2009 - 07:26 .





Retour en haut







