wayoints


(LION) #1

sr for disturbing you once more
but i got a probl in adding waypoints:

  1. in cgme he tells me this:

cg_commandmap.c
C:\etmoding\sf\src\cgame\cg_commandmap.c(1146) : error C2065: ‘WAYP_ATTACK’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_commandmap.c(1146) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_commandmap.c(1147) : error C2065: ‘WAYP_DEFEND’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_commandmap.c(1147) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_commandmap.c(1148) : error C2065: ‘WAYP_REGROUP’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_commandmap.c(1148) : error C2051: case expression not constant
cg_draw.c
C:\etmoding\sf\src\cgame\cg_draw.c(3862) : error C2065: ‘WAYP_ATTACK’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_draw.c(3862) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_draw.c(3865) : error C2065: ‘WAYP_DEFEND’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_draw.c(3865) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_draw.c(3868) : error C2065: ‘WAYP_REGROUP’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_draw.c(3868) : error C2051: case expression not constant
cg_ents.c
C:\etmoding\sf\src\cgame\cg_ents.c(1487) : error C2065: ‘WAYP_ATTACK’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_ents.c(1487) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_ents.c(1490) : error C2065: ‘WAYP_DEFEND’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_ents.c(1490) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_ents.c(1493) : error C2065: ‘WAYP_REGROUP’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_ents.c(1493) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_ents.c(1498) : error C2065: ‘WAYP_BOT’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_ents.c(1498) : error C2051: case expression not constant
C:\etmoding\sf\src\cgame\cg_ents.c(1502) : error C2065: ‘WAYP_BOTQUEUED’ : undeclared identifier
C:\etmoding\sf\src\cgame\cg_ents.c(1502) : error C2051: case expression not constant

as what do ive to declare these?

then in game:

c:\etmoding\sf\src\game\g_local.h(2089) : error C2146: syntax error : missing ‘)’ before identifier ‘wayPointType’
c:\etmoding\sf\src\game\g_local.h(2089) : error C2081: ‘wayPointType_t’ : name in formal parameter list illegal
c:\etmoding\sf\src\game\g_local.h(2089) : error C2061: syntax error : identifier ‘wayPointType’
c:\etmoding\sf\src\game\g_local.h(2089) : error C2059: syntax error : ‘;’

he tells me this over 290 times and refers to

void G_SetWayPoint( gentity_t* ent, wayPointType_t wayPointType, vec3_t loc );
is anybody able to give an advise? [/quote]


(FREAK!!!) #2

C:\etmoding\sf\src\cgame\cg_commandmap.c(1146) : error C2065: ‘WAYP_ATTACK’ : undeclared identifier

ok, i didn’t tried bot/waypoint-support till now. but i think it’s build up in the same as other features.

well, the error tells you, that he don’t know this indentifier.
so, tell him what or who he is.

so look in bg_local.h (cgame), where all pointers,etc. are declared and add it there.
the same thing in q_shared.c (game)
the rest i think, have you done. or other errors would occur, too.


(LION) #3

freak did u got my pm?
as what do if to add “weap_*” ??
in bg_local.h i only see #definitions,
and pmove-things!
and in q_shared im totaly messed up … :banghead: