Code error, need help...
Displaying 1-13 of 13 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Nemesis,

Ok, here is the prob. I compile my code on VCC and i get this messege "map.vc(9) error: { expexted if got" and when i try to run my game, it shows only the corner of my map, the colors are screwed up, and can't move. can anyone help me out?



Posted on 2002-01-02 22:04:45

choris

Well that's a compile error and I guess you don't have much experience with programming. Look in your map.vc at line 9. Make sure you've put semicolons at the end of all neccesary lines and closed all your parenthesis and brackets. Pasting your code would make it easier for me to help you.

As far as the screwed up colors, you haven't compiled the code for map.vc, so it's trying to run without any code for that map.

Try to fix the code and compile successfully, if you can't get it post your code.



choris@verge-rpg.com

Posted on 2002-01-03 10:42:57

Nemesis,

Here's my code. I've got semicolons and so i'm not sure whats wrong. I think one reason might be is that
I accidently replaced it with a file of the same name, and I had to redo it. I'm not sure if that helps any though.

event //0, the autoexec event!
{
PaletteMorph(0,0,0,0,63);
SetPlayer(Entityspawn(46,72,"freeman.chr"));
}

event //1, patty
if (Random(1) = 0)
{
TextBox("Patty: Welcome to Roller World!","","");
}


event //2, Dustin
if (Random(2) = 0)
{
TextBox("Dustin: Get off me!","","");
}
else
{
TextBox("Dustin: I'm gonna kick your ass","fucker!","");
}

event //3, ladies
if (Random(1) = 0)
{
TextBox("Freeman: Hello ladies!","Ladies: Get lost!","");
}

event //4, to the can
{Warp(6,6,0);}

event // 5 back to the rink
{Warp(21,22,0);}

event //6, will & bake
if (Random(1) = 0)
{
TextBox("Will:piss off!","Bake: I like magic because its!","fun and good


!","Freeman: whatever quacks your duck.");
}



Posted on 2002-01-03 17:33:48

rpgking

For some reason, on all the events that have if statements in them, you left out the opening & closing braces "{,}". Put them in and it should work.



Out of clutter, find simplicity. -Einstein

Posted on 2002-01-03 19:11:57

Nemesis,

Thanks! The braces helped me out and I know no longer get that error, but for some reason, when I run verge, it still only shows the top left corner and the colors are distorted. It says i have a unknown token error map.vc(14) but I've had those before and I got it to run...



Posted on 2002-01-03 19:30:29

Nemesis,

Ok, I got that problem fixed, now I've got a new one from it. I get a messege that says map.vc(37) error expected, , got. I closed of my semicolons so i'm not sure whats the prob. Here is the code:

event //0, the autoexec event!
{
PaletteMorph(0,0,0,0,63);
SetPlayer(Entityspawn(46,72,"Freeman.chr"));
}

event //1, patty
{if (Random(1) = 0)
{
TextBox("Patty: Welcome to Roller World!","","");
}

}

event //2, Dustin
{if (Random(2) = 0)
{
TextBox("Dustin: Get off me!","","");
}
else
{
TextBox("Dustin: I'm gonna kick your ass!","fucker","");
}

}



event //3, ladies
{if (Random(1) = 0)
{
TextBox("Freeman: Hello ladies!","Ladies: Get lost!","");
}
}

event //4, to the can
{Warp(6,6,0);}

event //5, back to the rink
{Warp(21,22,0);}

event //6, will & bake
{if (Random(1) = 0)
{
TextBox("Will: Get lost!","Bake: I like magic because its!","fun and good


!","Freeman: whatever quacks your duck.");
}
}



Posted on 2002-01-03 20:27:16

ladyvesper

Any errors when you run VCC means you shouldn't bother running the Verge.exe program. If there are errors during VCC compilation, then your map code isn't finished and cannot be executed by the interpreter. The invalid token probably means you misspelled a command. Go to the line referenced by VCC and see if you can figure it out. If not, comment it out, whistle, and walk away. ^^;

As to your palette problem, don't forget to put a call to palettemorph() in your map's event 0 (autoexec event). Without this verge'll use whatever its idea of a default palette happens to be.



Posted on 2002-01-05 13:39:52

Nemesis,

Umm. can someone help me out with this problem? I now get a "map.vc(37) error expected, , got" messege since i've had the brackets, but when I remove them, I get an unknown token error. Can some tell me whats wrong with my code and what I need to change?. Thanks to those of have responded to my other messeges



Posted on 2002-01-06 17:09:26

Nemesis,

Ok, I keep getting a bunch of probs and I have no clue whats wrong. It is giving me some errors that should be there and I seen no problems in my code. So I am wondering, If anyone out there would be willing to download my game, and tell me whats wrong and help me fix it since I really can't find anything in the tutorials. If you are willing to do this, reply and tell and I will send it to you. Sorry if I am coming of as lame, but I need some help.



Posted on 2002-01-06 19:11:19

TheGerf

Yeah, sure. E-Mail it to me. TheGerf@hotmail.com



TheGerf, not just any gerf.

Posted on 2002-01-06 20:11:21

TheGerf

What do you use to write your vc files? When I downloaded them, they had weirdass blocks of crap all over the place where tabs should be. That might screw up the vcc interpreter. If your using microsoft word, or wordpad, or something else like that your problem is right there, because I think they format tabs differently than a plain text editor. Try copy/pasting your code into a new vc file made in notepad.



TheGerf, not just any gerf.

Posted on 2002-01-06 21:34:02

Nemesis,

Since for some reason I can;t save my files as .VC files, what I do is take and exisiting .VC file, and change it to a .TXT file, enter my code, clink on undo rename and compile it.Oh, and when I open it, there in note pad.



Posted on 2002-01-07 16:27:50

TheGerf

To save them as .vc files, in note pad go
save as... and then change the file type to all files.
After that, name the file with a .vc extension
Hit save.
The end.



TheGerf, not just any gerf.

Posted on 2002-01-08 14:52:24


Displaying 1-13 of 13 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.