I'm trying to change the "x0_inc_henai" script but like the title says, there's no NCS file generated. is there something about this particular script that needs to be done differently?
Compilation succesful but no NCS file
Débuté par
manageri
, déc. 17 2010 07:38
#1
Posté 17 décembre 2010 - 07:38
#2
Posté 17 décembre 2010 - 07:46
Are you trying to change the base script, or create an override version? Cause the latter is definitely what you should do.
#3
Posté 17 décembre 2010 - 07:54
You need a main() function to create a ncs file.
What you are using is an include, the game uses these as a shared resource, you need to find the files which have main() functions in them which also include x0_inc_henai, then you need to compile those. Generally you only have to focus on the particular ones that actually are run when the given change is made.
In this case this means the following scripts
gb_assoc_combat.nss
gb_assoc_heart.nss
gb_comp_combat.nss
gb_comp_spawn.nss
gr_pc_spawn.nss
nw_ch_ac4.nss
nw_g0_charm.nss
nw_g0_confuse.nss
nw_g0_dominate.nss
nw_g0_fear.nss
nw_g0_insane.nss
nw_g0_rebuked.nss
nw_g0_sleep.nss
x0_acth_fightno.nss
x0_acth_fightyes.nss
x0_acth_healmno.nss
x0_acth_healmyes.nss
x0_ch_hen_combat.nss
x0_ch_hen_conv.nss
x0_ch_hen_spawn.nss
x0_conh_fightno.nss
x0_conh_fightyes.nss
x0_conh_healmno.nss
x0_conh_healmyes.nss
x0_hen_conv.nss
x2_sig_state.nss
Could be more as you can chain includes together.
What you are using is an include, the game uses these as a shared resource, you need to find the files which have main() functions in them which also include x0_inc_henai, then you need to compile those. Generally you only have to focus on the particular ones that actually are run when the given change is made.
In this case this means the following scripts
gb_assoc_combat.nss
gb_assoc_heart.nss
gb_comp_combat.nss
gb_comp_spawn.nss
gr_pc_spawn.nss
nw_ch_ac4.nss
nw_g0_charm.nss
nw_g0_confuse.nss
nw_g0_dominate.nss
nw_g0_fear.nss
nw_g0_insane.nss
nw_g0_rebuked.nss
nw_g0_sleep.nss
x0_acth_fightno.nss
x0_acth_fightyes.nss
x0_acth_healmno.nss
x0_acth_healmyes.nss
x0_ch_hen_combat.nss
x0_ch_hen_conv.nss
x0_ch_hen_spawn.nss
x0_conh_fightno.nss
x0_conh_fightyes.nss
x0_conh_healmno.nss
x0_conh_healmyes.nss
x0_hen_conv.nss
x2_sig_state.nss
Could be more as you can chain includes together.
Modifié par painofdungeoneternal, 17 décembre 2010 - 07:54 .
#4
Posté 17 décembre 2010 - 08:46
So basically the NSS file is all I'm supposed to have? And will the scripts that include it not be updated to use the modified x0_inc_henai without being compiled, meaning I need all of them in the override as well?
Edit: One more thing, is just having the modified x0_inc_henai in my override enough to make the toolset use that instead of the core file when it's compiling the scripts that include it?
Edit: One more thing, is just having the modified x0_inc_henai in my override enough to make the toolset use that instead of the core file when it's compiling the scripts that include it?
Modifié par manageri, 17 décembre 2010 - 08:52 .
#5
Posté 17 décembre 2010 - 09:48
manageri wrote...
So basically the NSS file is all I'm supposed to have?
yep.
And will the scripts that include it not be updated to use the modified x0_inc_henai without being compiled
nope, they won't. You need to recompile all (executable) scripts that reference new or changed includes.
meaning I need all of them in the override as well?
yep. But notice something : If you're changing say, just one function in an include, then only those scripts that call that particular function need recompiling.
Edit: One more thing, is just having the modified x0_inc_henai in my override enough to make the toolset use that instead of the core file when it's compiling the scripts that include it?
I think so (make sure it's the only x0_inc_henai in your override ..)
ps.
painofdungeoneternal wrote...
Could be more as you can chain includes together.
Something to be aware of, includes can include includes. In which case .. you get the picture
#6
Posté 17 décembre 2010 - 10:04
Ok, thanks a lot.





Retour en haut






