Aller au contenu

Photo

Compilation succesful but no NCS file


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

#1
manageri

manageri
  • Members
  • 394 messages
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?

#2
MasterChanger

MasterChanger
  • Members
  • 686 messages
Are you trying to change the base script, or create an override version? Cause the latter is definitely what you should do.

#3
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
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.

Modifié par painofdungeoneternal, 17 décembre 2010 - 07:54 .


#4
manageri

manageri
  • Members
  • 394 messages
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?

Modifié par manageri, 17 décembre 2010 - 08:52 .


#5
kevL

kevL
  • Members
  • 4 070 messages

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
manageri

manageri
  • Members
  • 394 messages
Ok, thanks a lot.