lfnetwork.com mark read register faq members calendar

Thread: Weird Script Happenings
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 11-28-2012, 11:52 AM   #1
harIII
Veteran
 
harIII's Avatar
 
Join Date: Feb 2008
Posts: 983
Helpful! 
Weird Script Happenings

Now for those who are unfamiliar with me, I've been a pretty regular around here when it comes to modding and I believe myself to be a fairly rational human being. However my rationale is proving ill.

I'm doing a small little project in my spare time for KOTOR. I've spent quite some time modding both KOTOR and TSL and I've never ran into this problem before. Quite frankly it doesn't make any sense at all.

Has anyone ever had any trouble with having scripts fire in KOTOR? For example I have a door that is locked and can only be open by a key. When you click on it to open, it will fire a script to do a few things to set up a dialog scene and do everything perfectly except to have the character talk to you, the character is a new companion. However if I push the tab (rotate the pc button), it will fire the dialog. Another thing happening is if you open up a placeable to grab it's inventory, it should spawn another placeable upon disturbing it's inventory, in theory anyways. In practice, nothing appears to happen. Does anyone know what is going on with these scripts?

-----EDIT-----
In case it is of any insight I gave the files to Fallen Guardian who tested them for me and the dialog apparently work on his computer yet it still doesn't work on mine. Any ideas guys?

Last edited by harIII; 11-28-2012 at 03:41 PM.
harIII is offline   you may: quote & reply,
Old 11-28-2012, 04:57 PM   #2
Fair Strides 2
Witty Programmer
 
Fair Strides 2's Avatar
 
Join Date: Jan 2012
Location: Oregon, United States
Posts: 584
Current Game: Master of Orion 2
Helpful! 
Quote:
Originally Posted by harIII View Post
Has anyone ever had any trouble with having scripts fire in KOTOR? For example I have a door that is locked and can only be open by a key. When you click on it to open, it will fire a script to do a few things to set up a dialog scene and do everything perfectly except to have the character talk to you, the character is a new companion. However if I push the tab (rotate the pc button), it will fire the dialog. Another thing happening is if you open up a placeable to grab it's inventory, it should spawn another placeable upon disturbing it's inventory, in theory anyways. In practice, nothing appears to happen. Does anyone know what is going on with these scripts?

-----EDIT-----
In case it is of any insight I gave the files to Fallen Guardian who tested them for me and the dialog apparently work on his computer yet it still doesn't work on mine. Any ideas guys?
Well, I can't check it for you, but you might have the scripts in the wrong slots. That or you have those wonderful cases that I love so much:

The script that you've spent an hour debugging compiles, but only because you've made it so nothing happens in the script!

You might consider using the module's heartbeat script or item scripts, and involve:

Code:
if(GetIsOpen(object oDoor))
Or something like that, if everything hangs on the door.
Fair Strides 2 is offline   you may: quote & reply,
Old 12-01-2012, 10:43 AM   #3
harIII
Veteran
 
harIII's Avatar
 
Join Date: Feb 2008
Posts: 983
Helpful! 
Okay everyone, I've feeling quite stupid right now because I figured out what was going on. Number 1 my script firing and the script I was editing were two different scripts, sooo, I fixed it. Number 2 the spawning thing was looking for a character file rather than a placeable.

However even with these changes it still doesn't explain why Fallen Guardian's copy of the files worked while mine didn't when we had the same files.
harIII 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 > Weird Script Happenings

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:15 AM.

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