Alien Swarm Compile issues "CUserCmd Error"

Grab your favourite IDE and tinker with the innards of game engines

Alien Swarm Compile issues "CUserCmd Error"

Postby bishop934 on Wed Aug 08, 2012 11:03 pm

Hey guys first off I'd like to say I'm just learning C++ and all that jazz. So forgive me if this is the easiest error in the world to fix. But, hey..we all start off with something stupid that stops us from continuing our journey on-wards to headache land.

Anyway! Sorry..as for the reason I'm making this topic, I'm currently working on compiling the Alien Swarm source code for the first time..I haven't done any modifications of my own to it, as I haven't been able to..but I did add this to it to make it first person..but..when I compile the Client project I get these errors..

This one is from Client Project compile:
Code: Select all
.\swarm\asw_prediction.cpp(183) : error C2039: 'forced_action' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_prediction.cpp(211) : error C2039: 'crosshair_entity' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_prediction.cpp(291) : error C2039: 'crosshairtrace' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
asw_in_mouse.cpp
asw_in_main.cpp
asw_in_camera.cpp
asw_fx_impacts.cpp
asw_client_entities.cpp
.\swarm\asw_in_main.cpp(590) : error C2039: 'crosshairtrace' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_in_main.cpp(594) : error C2039: 'crosshairtrace' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_in_main.cpp(596) : error C2039: 'crosshair_entity' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_in_main.cpp(598) : error C2039: 'forced_action' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_in_main.cpp(599) : error C2039: 'sync_kill_ent' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_in_main.cpp(604) : error C2039: 'forced_action' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_in_main.cpp(604) : error C2039: 'sync_kill_ent' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'


This one is from Server Project compile.
Code: Select all
.\swarm\asw_playermove.cpp(92) : error C2039: 'forced_action' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_playermove.cpp(107) : error C2039: 'crosshair_entity' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'
.\swarm\asw_playermove.cpp(222) : error C2039: 'crosshairtrace' : is not a member of 'CUserCmd'
        c:\my folders\crazysmod\src\game\shared\usercmd.h(32) : see declaration of 'CUserCmd'


I'd really appreciate some help on this.
User avatar
bishop934
Dumpling
Dumpling
 
Joined: Sun Jun 07, 2009 5:11 am

Re: Alien Swarm Compile issues "CUserCmd Error"

Postby ScarT on Sat Aug 11, 2012 11:25 pm

Are you using the project files that came with the SDK template? The point of the SDK template is getting rid of all the ASW files, and you're still compiling them :)
User avatar
ScarT
Senior Member
Senior Member
 
Joined: Sat Apr 02, 2005 7:33 pm
Location: Denmarkian Land

Re: Alien Swarm Compile issues "CUserCmd Error"

Postby Ken Chan on Sun Aug 12, 2012 4:57 pm

forced_action and crosshairtrace are used in oringal ASW code and have #ifdef INFESTED_DLL,
Check are you removed INFESTED_DLL definition?
but if you did there should be much much more errors...
User avatar
Ken Chan
Regular
Regular
 
Joined: Mon Apr 09, 2012 7:16 pm
Location: Hong Kong

Return to Programming

Who is online

Users browsing this forum: No registered users