PDA

View Full Version : [K1] Custom planet galaxy map problem


JediMaster76
06-19-2008, 04:42 PM
Alright. So I've been following TK's tutorial, and its been working great. I have the .mdl/.mdx files renamed and hex-edited, the two new TGAs (the little planet icon and the larger one). I have also edited the k_inc_ebonhawk.nss and the k_pebo_galaxymap files in accordance to the tutorial.

So I dump these files into my override and start up KoTOR, and enter the Ebon Hawk and go the the Galaxy Map. I click it, and my custom planet's little avatar displays. However, when I press on it, the whole game freezes, and it crashes (as in, "This program has experienced a problem and needs to close" type of crash).

I was wondering how to prevent this crashing so I can actually go to my custom planet. While I am asking this, I might as well through in another question; how can I prevent my planet from showing up until I reach a certain point in a global boolean/journal/conditional?

Exile007
06-20-2008, 12:29 AM
I'm not very good at KotOR scripting (neither am I at TSL, but that's beside the point) but have you chucked planetary.2da into the Override as well? If not, that could be the problem. ;)

As to your other question, this is what I would write for the script


~snip

if (GetGlobalNumber("your_global") == number) {
SetPlanetAvailable(13, TRUE);
SetPlanetSelectable(13, TRUE);
}
else {
SetPlanetSelectable(13, FALSE);
}

Replace "your_global" with the Global Number you have used, and number with the number that you have set the global. And replace 13 with whatever corresponding Live Planet your planet is.

Again, I am not very good at scripting, so don't be surprised if this doesn't work. :(

JediMaster76
06-20-2008, 01:40 AM
Nope, I tossed the planetary.2da file in there, but it didn't work. Would I have to edit anything in that particular .2da file?

glovemaster
06-20-2008, 02:41 AM
Likely the problem is that you didn't compile some or any of the scripts included with your modified k_inc_ebonhawk.nss.
You have to make your changes to the script and add it in the Override IIRC, though it could be the Compiler directory.
Then when you make changes to other scripts that include k_inc_ebonhawk.nss the changes will be compiled with them.

This also applies with k_inc_galaxy.nss I think.

JediMaster76
06-20-2008, 03:24 AM
So basically I have to compile all the scripts referenced in the k_inc_ebonhawk.nss file? Okay, do I have to compile the k_inc_ebonhawk.nss file itself? Because I've been having trouble actually compiling it...

Seamhainn
06-20-2008, 03:43 AM
No, you just have to compile the .nss files which you actually changed and toss those newly created .nsc files into your override folder.

stoffe
06-20-2008, 06:32 AM
So I dump these files into my override and start up KoTOR, and enter the Ebon Hawk and go the the Galaxy Map. I click it, and my custom planet's little avatar displays. However, when I press on it, the whole game freezes, and it crashes (as in, "This program has experienced a problem and needs to close" type of crash).

If the game crashes when you select the planet on the galaxy map screen I'd guess the model you use for the planetary view is corrupted/broken, and the game crashes when it is trying to load it. Try replacing it with a standard, unaltered planet model and see if the crashing vanishes. That would verify if this is the problem or not. :)