nested #include's in script = partial brokenness

Forum Archive - from http://theuniversal.net
Locked
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

nested #include's in script = partial brokenness

Post by zaroba »

Software:Universal Client
Version Number:
________________________________________________________________________
Location

________________________________________________________________________
Description:
Since there is a lot to script for zoric, I was going to try and avoid having all the includes in the main script file for the sake of organization and to avoid needing a page or two of just includes.

I noticed on (I think) the civ scripts that #includes can basically be nested so was setting this up with the zoric script to somewhat act as a folder/file system

But it only partially worked. Had 5 includes in the main script. Those 5 files had a few other includes (only a few so far), but only the first one or two seemed to work. Eliminated the #include nesting and everything works fine.
________________________________________________________________________
Steps to Replicate:
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

aint had a problem with that myself.
Coupla things i can think of that might be an issue..
1) The include paths aren't relative to the file they're in, they're always taken from "Data\Scripts".
2) If your files just contain #includes, make sure you've got a new line at the end of the script file, as sometimes it won't parse the last. (A bug that needs to be fixed if this is the case).

Otherwise, can you send make a sample that demonstrates the problem?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

I didn't have time to test tonight, but I'm positive that it not working was related the error in the script that was causing the var change bug I posted about in the other topic.

Basically forgetting the change the access building # in the event. lol
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

this still a problem?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

Not that I have experienced.
Locked