Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Can't get k_sup_galaxymap to compile

Page: 1 of 1
 Miles Edgeworth
10-26-2007, 2:21 PM
#1
For some reason, I can't get k_sup_galaxymap to compile, I have no clue why, as I only edited one row.

This is the section edited:

//While on Korriban Bastila is not available to take outside the Ebon Hawk.
//After the Leviathan Bastila will never be available again. I put this check in to
//make sure she does not get made selectable by accident after the Leviathan. It also
//does not allow Bastila to be taken on to Korriban
if(nSelected != 30 && nKOTOR == 15)
{
SetNPCSelectability(NPC_BASTILA, TRUE);
}
else if (nSelected == 30)
{
SetNPCSelectability(NPC_BASTILA, TRUE);
}


This is the error message:

k_sup_galaxymap.nss(209): Error: Function "EBO_PlayTakeOff"'s prototype doesn't match the declaration

k_sup_galaxymap.nss(211): Error: Undeclared identifier "nCurrentPlanet"

k_sup_galaxymap.nss(240): Error: Return Statement outside the scope of function

k_sup_galaxymap.nss(243): Error: Function "EBO_PlayLanding"'s prototype doesn't match the declaration

k_sup_galaxymap.nss(274): Error: Return Statement outside the scope of function
 stoffe
10-26-2007, 8:04 PM
#2
For some reason, I can't get k_sup_galaxymap to compile, I have no clue why, as I only edited one row.
k_sup_galaxymap.nss(209): Error: Function "EBO_PlayTakeOff"'s prototype doesn't match the declaration


The k_inc_ebonhawk.nss include file that comes with KOTOR is broken, you'll need to fix an error in it before you can use it to compile the script.

On line 243 in that script, change...
string EBO_PlayLanding(int nDestination)
...to...
void EBO_PlayLanding(int nDestination)

And on line 274, remove return "NULL";
Page: 1 of 1