PDA

View Full Version : Kreia's appearance


Master Zionosis
02-06-2007, 06:58 AM
Hi everyone, i need a script that will change Kreia's appearance from the lost hand model to the model where she has two hands (the model on Peragus).

Thanks,

~Master Zionosis

deathdisco
02-06-2007, 09:04 AM
void main()
{
object oNPC = GetObjectByTag("Kreia");
ChangeObjectAppearance(oNPC, 455);
}

This should do it.

Master Zionosis
02-06-2007, 10:45 AM
Thanks deathdisco, but i can't compile the script it says there is an error in the line: ChangeObjectAppearance , any clue's?

Hangout Hermit
02-06-2007, 11:03 AM
Meh, Deathdisco beat me to it :chop1: hehehe...

There is nothing wrong with the script itself. Prehaps you copied/pasted wrong? Or you might be using it wrong.

Master Zionosis
02-06-2007, 11:19 AM
Nope, hasn't worked, I've copied and pasted it about 10 times now, it doesn't want to compile. :headbump :headbump :headbump

stoffe
02-06-2007, 11:22 AM
The script deathdisco posted compiled without any problems here too. Thus you must be doing something wrong. :) Make sure your compiler is set to compile KotOR2:TSL scripts, since that script function does not exist in KotOR1.

Master Zionosis
02-06-2007, 11:41 AM
Well I'm using, HazardX Script Compiler, and its not working, do i need to use some other program, because i have the most recent version of this.

stoffe
02-06-2007, 11:47 AM
Well I'm using, HazardX Script Compiler, and its not working, do i need to use some other program, because i have the most recent version of this.

While I'm not using HazardX variant of nwnnsscomp I'm fairly certain it should work for both games if you use the proper constant/function definition file for it.

Make sure you have a version of nwscript.nss from the KotOR2:TSL game data in the same folder as the script compiler. Sounds to me like you are currently having the KotOR1-version of that file there.

Master Zionosis
02-06-2007, 11:53 AM
Ok, i figured out one of the things i did wrong, but it still wont compile, firstly i didn't have the nwscript.nss in the folder i was using, and the second thing is that it wont compile because of some error with the = in the script.

stoffe
02-06-2007, 11:57 AM
Ok, i figured out one of the things i did wrong, but it still wont compile, firstly i didn't have the nwscript.nss in the folder i was using, and the second thing is that it wont compile because of some error with the = in the script.

There is nothing wrong with the script, it compiles just fine without any changes. If you can't get HazardX script compiler to work properly I suggest you try using the built-in script editor in KotorTool. It will allow you to compile the scripts with a menu command.

Master Zionosis
02-06-2007, 12:01 PM
That says the same thing with the = error, ahhhh :headbump

stoffe
02-06-2007, 12:02 PM
That says the same thing with the = error, ahhhh :headbump

Have you set KotorTool to compile the script as a KOtOR2:TSL script? There should be a setting for that in one of the menus in the script editor.

Master Zionosis
02-06-2007, 12:03 PM
Yep, i have no idea whats going on.

stoffe
02-06-2007, 12:05 PM
Yep, i have no idea whats going on.

Have you successfully compiled any scripts for KotOR2:TSL before using any of the new functions? If not, and you have a non-US version of the game you may need to download a fixed version of the nwscript.nss file and put in your override folder, since the one that comes with the game contains syntax errors for some reason. You can find the corrected file in the scripting tutorials sub-forum above.

Master Zionosis
02-06-2007, 12:07 PM
Yes i have compiled many scripts for K2, and where can i download the corrected nwscript.nss file?

stoffe
02-06-2007, 12:18 PM
Yes i have compiled many scripts for K2, and where can i download the corrected nwscript.nss file?

See this thread (http://www.lucasforums.com/showthread.php?t=146472) in the scripting tutorials forum. You can extract nwscript.nss from the scripts.bif file for KotOR2:TSL with KotorTool, make the necessary fix and put the file in your override folder.

Master Zionosis
02-06-2007, 12:24 PM
nope that didn't work either, for KT or HazardX Script Compiler, it now says there is an error with the word object.

stoffe
02-06-2007, 12:34 PM
nope that didn't work either, for KT or HazardX Script Compiler, it now says there is an error with the word object.

Well, since I have no idea how you've set up your modding tools I can't offer any more assistance on that. There is nothing wrong with that script, however, so the problem lies somewhere else with your tools.

Are you only getting problems when trying to recompile this particular script? If you copy&paste another script code into that file and recompile, do you still get errors?

(The error with the word object sounds an awful lot like the syntax error in nwscript.nss though, since it is missing a parameter name after the object keyword.)

Master Zionosis
02-06-2007, 12:40 PM
Urggg, i could compile other scripts not to long a go, but now nothing works.

Darth333
02-06-2007, 01:06 PM
Can you post the exact error you are getting? Also make sure that you specify that you are compiling this script for k2 and not k1 as the ChangeObjectAppearance does not exist in the k1 nwscript.nss. If you are using HzardX 's compiler, make sure that the k2 nwscript.nss is located in your override folder.

Hangout Hermit
02-06-2007, 01:15 PM
Zionossis, on the K3 forum i have PM'd you the comiled script. My guess at what you are doing wrong is using the wrong nwscript.nss Try using Tk 102's modified nwscript.nss (http://www.lucasforums.com/showthread.php?t=146472). Also you can use the Kotor Tool to compile scripts. Go to the text editor and write the script. Save it with a .nss extention. You then go to Compile> Script is for Kotor2> F5. This will make it into a .ncs file.

Master Zionosis
02-06-2007, 01:35 PM
Thank you Hangout Hermit, i really appreciate it, except i haven't received the PM. And still to see if i can solve this problem here is a pic of the problem: http://i121.photobucket.com/albums/o226/masterzionosis/ktortoolscriptprob.jpg

Hangout Hermit
02-06-2007, 01:42 PM
Could you use [CODE] Tags and put up the script.

@About the PM. I'm not currently allowed to attach files here or at holowan so I've got Mando to upload them.

Here ya go...

http://files.filefront.com//;6698692;;/

:D

Master Zionosis
02-06-2007, 01:47 PM
Here, i believe its the same as deathdisco's post though.void main()
{
object oNPC = GetObjectByTag("Kreia");
ChangeObjectAppearance(oNPC, 455);
}

Darth333
02-06-2007, 01:52 PM
Thank you Hangout Hermit, i really appreciate it, except i haven't received the PM. And still to see if i can solve this problem here is a pic of the problem: http://i121.photobucket.com/albums/o226/masterzionosis/ktortoolscriptprob.jpg

Well Hangout Hermit has compiled the file for you but for the future, it seems that your problem is with nwscript.nss. Make use you are using this version of nwscript.nss: http://www.starwarsknights.com/forumdl/nwscript.zip. Line 5710 has been fixed.

Master Zionosis
02-06-2007, 02:00 PM
Thank you all, ill test out the new nwscript now and see if i can compile properly.