|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 7 posts ] |
|
| Author |
Message |
|
Yop_Solo
Gameop
Joined: Mon Jan 26, 2009 12:27 am Posts: 123
|
 COMPILLING A CTS FILE
HI,
If you created a main.ts and a couples of module.ts and a part of a module use and other module with the include command... Do we need to compile each part and after compile the main.ts ? If not, could we compile only the main.ts and modules will be include with their modules ?
_________________ Dodger known as Yop Solo, Sysop twgsdodgerbbs.ath.cx http://cyberquebec.ca/_layout/?uri=http://cyberquebec.ca/twgsdodgerbbs/
|
| Wed Mar 04, 2009 5:44 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: COMPILLING A CTS FILE
No, compile the main.ts and it'll compile in the includes.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Wed Mar 04, 2009 5:51 pm |
|
 |
|
Yop_Solo
Gameop
Joined: Mon Jan 26, 2009 12:27 am Posts: 123
|
 Re: COMPILLING A CTS FILE
yea i know... but in my includes... there are some of them using the others... so if you understand my last question, it will compile and link them too...
For now, i tested my module that it is using an other module without passing throught my main.ts ... so the include is in this file... do I need to put my include only in the file that it using it... so my main doesn't need to have an include of the module that is it using my other module... Let's see my example cause i think it's very confused and explain it his relatively difficult in my second language.
EXAMPLE main.ts (include module 1.ts and module 2.ts) module 1.ts module 2.ts (include sub-module A.ts) sub-module A.ts
_________________ Dodger known as Yop Solo, Sysop twgsdodgerbbs.ath.cx http://cyberquebec.ca/_layout/?uri=http://cyberquebec.ca/twgsdodgerbbs/
|
| Wed Mar 04, 2009 7:56 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: COMPILLING A CTS FILE
As far as I know it should compile all includes.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Wed Mar 04, 2009 8:05 pm |
|
 |
|
Yop_Solo
Gameop
Joined: Mon Jan 26, 2009 12:27 am Posts: 123
|
 Re: COMPILLING A CTS FILE
Ok... so when it will compile, it will pass throught the main, compile all include and when there is an include in main's includes, it will compile them too... right ?
Someone can confirm, if you already expercience that...
_________________ Dodger known as Yop Solo, Sysop twgsdodgerbbs.ath.cx http://cyberquebec.ca/_layout/?uri=http://cyberquebec.ca/twgsdodgerbbs/
|
| Wed Mar 04, 2009 8:07 pm |
|
 |
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1838 Location: Guam USA
|
 Re: COMPILLING A CTS FILE
Yes , that is right.
Look at the examples in TWX , 2_MassUpGrade it contains includes and those incuded files contain includes .. and those included files include more included files.
and when you compile the first file .. you can remove all the other included files or rename them for test purposes .. and see that everything in in the one .cts file.
hope this answers your question as best as I can with examples and a test.
_________________ TWGS V2 Vids World on Guam Port 2002 Telnet://vkworld.ddns.net:2002 Discord @ DiverDave#8374 Vid's World Discord
Founding Member -=[Team Kraaken]=- Ka Pla
 Winners of Gridwars 2010 MBN Fall Tournament 2011 winners Team Kraaken Undisputed Champions of 2019 HHT Just for showing up!
The Oldist , Longist Running , Orginal Registered Owner of a TWGS server : Vids World On Guam
|
| Wed Mar 04, 2009 9:19 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: COMPILLING A CTS FILE
You don't need to compile your includes. When you compile a script it will compile all includes in. As for nested or recursive includes, I'm pretty sure it works for that too... but if you're so concerned about it why not just compile your main.ts and test it and make sure it works?
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Wed Mar 04, 2009 9:23 pm |
|
 |
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 13 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|