Unbelievable...
Displaying 1-8 of 8 total.
1
ChaliShank
|
I've been trying to use include files because I need them to organize my code. Unfortunately, no matter what I try to do, it doesn't understand any line of code in the included vc file! I can't figure out what's going on and I am short on time. I'm sure the problem is extremely obvious. I have tried a dozen different configurations. I'm running winV2 under win2K, and it causes some crazy memory leak but I just ignore it (That was off the subject). Help please.
Posted on 2002-02-11 14:00:23
|
choris
|
And what version of verge are you using?
choris@verge-rpg.com
Posted on 2002-02-11 15:47:34
|
Tricron3
|
(nt)=No Text
Posted on 2002-02-11 20:27:46
|
ChaliShank
|
//Start code here//
void LoadCharData() {
MikeCurHP = 150;
MikeMaxHP = 160;
MikeCurAT = 0;
MikeAT = 100;
}
//End code//
This is all I have in my data.vc file. Right now I am using manually created variables instead of reading from a file, which would be implemented later. Anyway, I including it in system.vc using this statement:
#include "data.vc"
The vc error message in data.vc is "Error: Line 1. Unknown token." No matter how I rearrange variable declarations or code, it can never understand whatever I write on the first line.
I am essentially running the official 2.7 with the windows 2.6 exec dropped on top of it. It is running under W2K, God knows how.
Hope this helps.
Posted on 2002-02-12 12:44:24
|
choris
|
I never use v2.7 so I can't be sure, but I don't see anything wrong. Maybe try taking the comments out? Or are those just for our benefit...
Oh, and make sure you have an extra blank line at the end of all your vc files. Maybe that'll help.
choris@verge-rpg.com
Posted on 2002-02-12 13:56:09
|
TheGerf
|
Might not be the answer of not, but some versions of vcc don't let you use a character right after a comment, you need to use a space.
ie
//Start
changes to
// Start
By the way, you don't need to end coments with a //, unless that's just your style. You only need to begin with it.
Other things, V2.7 and V2.6 should not be compatable at all. That might raise the dead or something.
You should try to get the exe's all from the same version, some are compatable while some aren't.
TheGerf, not just any gerf.
Posted on 2002-02-12 18:23:13
|
ChaliShank
|
For some reason, adding a line at the end of the code worked, and now it runs and compiles sub-vcs just fine. Undoubtably I'll be back with more questions at some future point, but I was wondering if you could tell me why it needs an extra line. Just out of curiosity.
Thanks for the help, guys.
Posted on 2002-02-13 10:18:01
|
TheGerf
|
Some versions of vcc accidently ignore the last line or two. When your last line is a closing brace }, it can cause really gay errors when it's not read (because it was ignored).
TheGerf, not just any gerf.
Posted on 2002-02-13 22:23:21
|