probably related to my other question: overriding core scripts
#1
Posté 15 mars 2010 - 06:36
#2
Posté 15 mars 2010 - 08:30
#3
Posté 15 mars 2010 - 08:40
#4
Posté 16 mars 2010 - 09:26
at/core/override/toolsetexport/
has the files: engineevents_at.GDA
eventmanager.ncs
eventmanager_at.GDA.
m2da_eventmanager.GDA
and i haven't put eventmanager_h anywhere.
anything that's missing as far as files go?
#5
Posté 21 mars 2010 - 12:22
Because that's what I've been trying to do, and so far it didn't work.
Are you saying that the ONLY way to override core scripts is by using EventManager?
P.S. Actually, I want to change an include (sys_soundset_h), but judging from this thread that is impossible without compiling the scripts which reference it (since includes can't be compiled on their own). And this include is referenced by a bunch of core scripts (rules_core, player_core, creature_core).
#6
Posté 21 mars 2010 - 01:47
gordonbrown82 wrote...
i sent this to anakin5 as well but i'm unsure how active he is so i'll put my setup here as well. i've not gotten it to work yet:
at/core/override/toolsetexport/
has the files: engineevents_at.GDA
eventmanager.ncs
eventmanager_at.GDA.
m2da_eventmanager.GDA
and i haven't put eventmanager_h anywhere.
anything that's missing as far as files go?
You'll need a custom script to handle the events you're redirecting, but other than that, you should be right.
If it's still not working, you may want to try putting eventmanager_h.nss in the same folder as eventmanager.nss before exporting the eventmanager script. From what I understand, header files are basically copy-pasted into the top of a script file during exporting, so it shouldn't make a difference, but who knows, it might...
Malcroix wrote...
Wait, so you can't override the rules_core and other core scripts by changing them in the toolset and then exporting to override?
You can, but it's considered poor form, hence Anakin5s event override workaround.
Malcroix wrote...
P.S. Actually, I want to change an include (sys_soundset_h), but judging from this thread that is impossible without compiling the scripts which reference it (since includes can't be compiled on their own). And this include is referenced by a bunch of core scripts (rules_core, player_core, creature_core).
Again, you shouldn't be changing the scripts that came with the toolset directly, what you should do is create your own custom header and a script that utilises it. Unfortunately, depending on what you want to do, you may end up needing to basically re-write the original script (or in your case, multiple scripts).
Ideally though, you should only need to make custom scripts for the parts you wish to change and leave the original scripts to do the rest.
#7
Posté 21 mars 2010 - 07:08
Lord Thing wrote...
Malcroix wrote...
Wait, so you can't override the rules_core and other core scripts by changing them in the toolset and then exporting to override?
You can, but it's considered poor form, hence Anakin5s event override workaround.
I am not yet familiar with EventManager, and an inexperienced scripter, so for me a few simple changes in the core script would be preferable at this stage than using EventManager and having to write my own event scripts. Eventually I might come to this, but right now what I'm looking for is "proof of concept", i.e. will this change in script actually do what I want.
Lord Thing wrote...
Malcroix wrote...
P.S. Actually, I want to change an include (sys_soundset_h), but judging from this thread that is impossible without compiling the scripts which reference it (since includes can't be compiled on their own). And this include is referenced by a bunch of core scripts (rules_core, player_core, creature_core).
Again, you shouldn't be changing the scripts that came with the toolset directly, what you should do is create your own custom header and a script that utilises it. Unfortunately, depending on what you want to do, you may end up needing to basically re-write the original script (or in your case, multiple scripts).
Okay, so I shouldn't do it, or I cannot do it? Because, again, it's much easier for me to change a few lines in an existing script than write an entirely new one and link it up through EventManager.
Any chance some of you experienced scripters might look at the script itself? It's here.
Modifié par Malcroix, 21 mars 2010 - 07:09 .
#8
Posté 22 mars 2010 - 09:24
I've also had a look at the script you had in your thread and made some comments on it which I hope you will find helpful.





Retour en haut






