Jump to content

Home

Compiling k_pebn_galaxy.nss (probably already solved)


glovemaster

Recommended Posts

I was just following through the guide by tk102

http://www.lucasforums.com/showthread.php?t=127001

and i can't compile the k_pebn_galaxy.nss and the k_inc_ebonhawk.nss files i get these errors:

 

Compiling: k_pebn_galaxy.nss

k_inc_ebonhawk.nss(209): Error: Function "EBO_PlayTakeOff"'s prototype doesn't m

atch the declaration

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

k_inc_ebonhawk.nss(240): Error: Return statement outside the scope of a function

 

k_inc_ebonhawk.nss(243): Error: Function "EBO_PlayLanding"'s prototype doesn't m

atch the declaration

k_inc_ebonhawk.nss(274): Error: Return statement outside the scope of a function

 

Compilation aborted with errors

Total Execution time = 251 ms

 

and the compiler doesnt give me errors for the k_inc_ebonhawk.nss file i just doesn't give me the ncs file when it says i have compiled it.

 

I'm using FTs compiler

 

please help!

Link to comment
Share on other sites

i can't compile the k_pebn_galaxy.nss and the k_inc_ebonhawk.nss files i get these errors:

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

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

 

There are errors in the k_inc_ebonhawk.nss include file, where the function prototype declared at the top has no return value type set for functions that are meant to return a string value, while the implementation of those functions further down do have this set.

 

Fix it by replacing what's on line 19 in k_inc_ebonhawk.nss, which looks like...

 

void EBO_PlayTakeOff(int nCurrentPlanet);

 

...with this:

 

string EBO_PlayTakeOff(int nCurrentPlanet);

 

Similarly, replace what's on line 21 in k_inc_ebonhawk.nss, which looks like...

 

void EBO_PlayLanding(int nDestination);

 

...with this:

 

string EBO_PlayLanding(int nDestination);

 

Then save the modified k_inc_ebonhawk.nss file in your override folder, and try to recompile the k_pebn_galaxy.nss script again.

 

 

and the compiler doesnt give me errors for the k_inc_ebonhawk.nss file i just doesn't give me the ncs file when it says i have compiled it.

 

The k_inc_ebonhawk.nss is an include file, and not a script that can be compiled on its own. It contains variables and functions that can be used by other scripts. Only scripts that contain a main() or StartingConditional() function can be compiled. These scripts can then in turn use an include file via an #include directive. k_pebn_galaxy.nss is such a script that uses the k_inc_ebonhawk.nss include file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...