Master Zionosis Posted February 6, 2007 Share Posted February 6, 2007 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 Link to comment Share on other sites More sharing options...
deathdisco Posted February 6, 2007 Share Posted February 6, 2007 void main() { object oNPC = GetObjectByTag("Kreia"); ChangeObjectAppearance(oNPC, 455); } This should do it. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 Thanks deathdisco, but i can't compile the script it says there is an error in the line: ChangeObjectAppearance , any clue's? Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 6, 2007 Share Posted February 6, 2007 Meh, Deathdisco beat me to it hehehe... There is nothing wrong with the script itself. Prehaps you copied/pasted wrong? Or you might be using it wrong. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 Nope, hasn't worked, I've copied and pasted it about 10 times now, it doesn't want to compile. :headbump Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 That says the same thing with the = error, ahhhh Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 That says the same thing with the = error, ahhhh 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 Yep, i have no idea whats going on. Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 Yes i have compiled many scripts for K2, and where can i download the corrected nwscript.nss file? Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 Yes i have compiled many scripts for K2, and where can i download the corrected nwscript.nss file? See this thread 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 nope that didn't work either, for KT or HazardX Script Compiler, it now says there is an error with the word object. Link to comment Share on other sites More sharing options...
stoffe Posted February 6, 2007 Share Posted February 6, 2007 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.) Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 Urggg, i could compile other scripts not to long a go, but now nothing works. Link to comment Share on other sites More sharing options...
Darth333 Posted February 6, 2007 Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 6, 2007 Share Posted February 6, 2007 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. 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. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 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: Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 6, 2007 Share Posted February 6, 2007 Could you use 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;;/ Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 6, 2007 Author Share Posted February 6, 2007 Here, i believe its the same as deathdisco's post though. void main() { object oNPC = GetObjectByTag("Kreia"); ChangeObjectAppearance(oNPC, 455); } Link to comment Share on other sites More sharing options...
Darth333 Posted February 6, 2007 Share Posted February 6, 2007 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: 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.