lfnetwork.com mark read register faq members calendar

Thread: Compiling Include Files
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-23-2013, 08:52 PM   #1
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,286
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Compiling Include Files

Is it possible to compile .nss include files into .ncs? I tried using the compilers from starwarsknights.com and KotOR tool, but they both ignore the .nss because they see it as an include file.


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,
Old 05-24-2013, 02:04 AM   #2
Hassat Hunter
Forumite
 
Join Date: Jan 2010
Posts: 557
Include files are just that, including into other files. They will never compile themselves.

For example TSLRCM made many changes to k_inc_treas_k2, but it had to be compiled into over a hundred other files to take effect.
Hassat Hunter is offline   you may: quote & reply,
Old 05-24-2013, 03:03 PM   #3
Fair Strides 2
Witty Programmer
 
Fair Strides 2's Avatar
 
Join Date: Jan 2012
Location: Oregon, United States
Posts: 584
Current Game: Master of Orion 2
Helpful! 
Quote:
Originally Posted by Fallen Guardian View Post
Is it possible to compile .nss include files into .ncs? I tried using the compilers from starwarsknights.com and KotOR tool, but they both ignore the .nss because they see it as an include file.
1. An Include file is any file that doesn't have void main() or int StartingConditional().

2. The Include file is compiled, in a sense. When you compile a script that has an include at the top of it, the functions are basically copied and pasted into the script you're compiling. This also happens to any includes that include has.

Example:
Show spoiler


In that example, the final .ncs from File A would have all of the functions from File B and File C added to it before it was compiled. The final file size of the .ncs reflects the size of the included files. Hope this made sense!


All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.4 is LIVE!!! Check it out here.

Check out WalkSwitch, the Walkmesh-changing tool!
Fair Strides 2 is online now   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Compiling Include Files

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:46 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.