Sign in to follow this  
CactusCole

Missing k_pend_* scripts?

Recommended Posts

So I'm trying to understand how everything works and is structured and I when I was looking at triggers some of them use scripts that I can't find. For example, the trigger called bridgeexplosi001.utt (the very first one listed in the first endar spire module) uses the script k_pend_bridge05.nss which is not found in the directory containing all the scripts. Is it located somewhere else or how does the trigger work?

 

Also as a side question under dynamic area info how are triggers defined? I see each of them uses a list of structs defining its geometry, the reference to the blueprint, and then its position and orientation. Specifically, what is the geometry section defining? Is it defining a cube and then XPosition, YPosition, etc. define where the cube is? Is there a program I can use to view each level and all the objects within it?

Share this post


Link to post
Share on other sites

Most module-specific scripts are stored in that module's archive. For example, k_pend_bridge05 is stored in end_m01aa_s.rim. In KTool go to RIMs -> Modules. Scripts are in the _s RIMs, under the Script, Compiled section.

 

Triggers are always planes, as far as I know. The positions of the N vertices that form its corners are defined by the geometry structs you mentioned. The XYZ and orientation values are basically the position of its axis/pivot.

Share this post


Link to post
Share on other sites

Yeah I did that already. The full thing says

 

    OUTPUT>Lookup path root set to: C:/NeverwinterNights/Nwn/
    OUTPUT>Error: Couldn't initialize the NwnStdLoader
    nwnnsscomp decompile of old compiled file failed.  Check code.

Not sure what the lookup path root is but I tried creating those directories and placing the files in there as well. Still didn't work

Share this post


Link to post
Share on other sites

I see, it works now if I run it directly but it didn't before which is why I used the command line. The decompiled code doesn't appear in the GUI but when I save it I could open the file to view it. Guess it's not an error I need to worry about. Thanks for all the help

Share this post


Link to post
Share on other sites

Weird. Are you using some ancient version of Java?

 

Anyway, you are best off just opening an NCS file and then closing it straight away, saying yes if you want to save it as an NSS. Often times loading an NCS will only display P-Code in DeNCS, yet when saved as an NSS it will magically be properly decompiled.

Share this post


Link to post
Share on other sites

Not sure if that's what you're experiencing here but if DeNCS shows only byte-code, you can right-click it and select "View Decompiled Code" to get the decompiled code.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this