I'll get there (eventually)
Displaying 1-9 of 9 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
eltimo

Thanks for all your help, i tried using intergers as suggested and that sorted that out ,i'll get ther eeventually, i've got another problem now and was wondering if you could help (pwetty please)
my code for the file that gets the error is as follows:

void autoexec()
{
Int SetAppName;
SetAppName =("El Timo rules!");
Int Map;
Map=("tutorial.map");
}

When i run verge i get this error message:

tutorial vc: SetAppName is already defined. Please choose a unique name

If i change it to something like this:

void autoexec()
{
Int el_timo;
el_timo=("El Timo rules!");
Int Map;
Map=("tutorial.map");
}

I end up with adifferent error mesage that says:

Tutorial.vc: could not ressolve identifier"!

Thanks, you guys rule!

Posted on 2005-12-06 13:56:34

Overkill


void AutoExec()
{
SetAppName("El Timo rules!");
Map("tutorial.map");
}


Try that. You don't have to make variables for functions (things like SetAppName("The Title") and Map("mymap.map")).

Posted on 2005-12-06 15:15:51

eltimo

Thats what i had before and it just flashes verge and doesn't do much else.
This is my map file(now corrected)

void AutoExec()
{
SetAppName("El Timo rules!");
Map("tutorial.map");
}

and my system.vc:

void MapInit()
{
int player;
player=EntitySpawn(5,5,"darin.chr
SetPlayer(player);
}

Its annoying because i doesn't even tell me whats wrong now.
Is there anything else i need?
thanks for your help so far!!!!

Posted on 2005-12-06 15:24:55

Omni

It appears you're missing an endquote, a parentheses, and a semicolon at the end of that link.

player=EntitySpawn(5,5,"darin.chr

should be
 player=EntitySpawn(5,5,"darin.chr");

Posted on 2005-12-06 15:53:51

eltimo

I know about those, sorry i didn't copy and paste right;
do i need anything linking the two? or not?
nethin else you can see wrong with it?
thanks,




El Timo

Posted on 2005-12-06 16:19:15 (last edited on 2005-12-06 16:19:58)

pthaloearth

i'd make player global by putting it into the system.vc outside and above any of the functions, like so


int player;

void AutoExec()
{
SetAppName("El Timo rules!");
Map("tutorial.map");
}

void MapInit()
{
player=EntitySpawn(5,5,"darin.chr");
SetPlayer(player);
}


then in your tutorial.map make it call MapInit() in the properties section under startup script. Like so:
startup script: MapInit

Posted on 2005-12-06 17:14:42

Overkill

pthaloearth: I agree with everything but the moving map specific functions to the system.vc. MapInit() should be under tutorial.vc, since it's different for every map. Anything that is different for every map should be in the map's vc. Everything that's used in more than one place identically should be in the system vc files.

Why, you may ask? Well, what happens if you have another map and you want the player to start somewhere else other than (5, 5)? What if the one map has a special cutscene? You can't call MapInit() now, and you can't declare a MapInit() in your map since it's already in the system vc. I think this is a bad move. Though, if MapInit() was a function that did commonly required hooks and initilializations not specific to a map, and was called by a map's Start() in order to accomodate extra introduction stuff, then go ahead.

eltimo: If you read this and had your brain implode a bit, just keep your MapInit() thing in the tutorial.vc file. It's a good thing to do.

Posted on 2005-12-06 20:37:09

pthaloearth

I'm aware of that I just figured for simplicities sake that I'd say what I did since it seems there having problems with what I though was an extreemly simply tutorial. Of course I've done programming for awhile so that helped me.

Posted on 2005-12-07 08:51:05

eltimo

It worked!!!!!!!!!!!!!!!!!!
I ran my first ever verge game wooooooooooooo!!!!!!!!!!!!!!!!!!!!!!!!!!
yyeeeeeeehhhh!!!!!!!!!!!!
soz that sounds very noobish but to me thats very good.
Thanks for all your help you guys rule

Posted on 2005-12-07 14:33:13 (last edited on 2005-12-07 14:58:30)


Displaying 1-9 of 9 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.