lfnetwork.com mark read register faq members calendar

Thread: Syntax Error in nwscript.nss
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-14-2005, 02:10 PM   #1
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
Exclamation Syntax Error in KotOR2 nwscript.nss

For those of you attempting to compile KotOR2 scripts that include new constant values or new functions, there appears to be a syntax error in nwscript.nss that will prevent you from compiling!

Near line 5710 you will see:
Code:
// RWT-OEI 01/29/04
// 794: Disables or Enables the Orient On Click behavior in creatures. If
//      disabled, they will not orient to face the player when clicked on
//      for dialogue. The default behavior is TRUE.
void SetOrientOnClick( object = OBJECT_SELF, int nState = TRUE );
The problem lies in this part:
Code:
object = OBJECT_SELF
Change it to this:
Code:
object oCreature=OBJECT_SELF
and then place the modified nwscript.nss file in the same folder as nwnsscomp.exe.



Last edited by Darth InSidious; 08-02-2009 at 01:27 PM. Reason: Changed text size in code-boxes. Was too small to read.
tk102 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Tutorials: Scripting > Syntax Error in nwscript.nss

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:26 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.