Re: [Snippet] Adding Player EXP
error
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
3>------ Build started: Project: SupervisorServer, Configuration: Release Win32 ------
3>Linking...
2>Compiling...
3>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>obj_ServerPlayer.cpp
2>ServerGameLogic.cpp
2>.\Sources\ServerGameLogic.cpp(674) : error C2601: 'ServerGameLogic::CanDamageThisObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(696) : error C2601: 'ServerGameLogic::ApplyDamage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(734) : error C2601: 'ServerGameLogic::ApplyDamageToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(769) : error C2601: 'ServerGameLogic::ApplyDamageToZombie' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(785) : error C2601: 'ServerGameLogic::RelayPacket' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(810) : error C2601: 'ServerGameLogic::p2pBroadcastToActive' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(836) : error C2601: 'ServerGameLogic::p2pBroadcastToAll' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(852) : error C2601: 'ServerGameLogic::p2pSendToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(874) : error C2601: 'ServerGameLogic::p2pSendRawToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(884) : error C2601: 'ServerGameLogic::InformZombiesAboutSound' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(893) : error C2601: 'ServerGameLogic::GetRewardData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(921) : error C2601: 'ServerGameLogic::AddPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(931) : error C2601: 'ServerGameLogic::AddDirectPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(953) : error C2601: 'ServerGameLogic::OnPKT_C2S_ValidateConnectingPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(980) : error C2601: 'ServerGameLogic::CreateNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1066) : error C2601: 'ServerGameLogic::DeletePlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1092) : error C2601: 'ServerGameLogic::OnPKT_C2S_JoinGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1163) : error C2601: 'ServerGameLogic::OnPKT_C2S_StartGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1286) : error C2601: 'ServerGameLogic::CheckForPlayersAround' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1301) : error C2601: 'ServerGameLogic::GetStartSpawnPosition' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1338) : error C2601: 'ServerGameLogic::GetSpawnPositionNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1355) : error C2601: 'ServerGameLogic::GetSpawnPositionAfterDeath' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1386) : error C2601: 'ServerGameLogic::AdjustPositionToFloor' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1408) : error C2601: 'ServerGameLogic::NetRegisterObjectToPeers' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1442) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1491) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1510) : error C2601: 'ServerGameLogic::ResetNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1525) : error C2601: 'ServerGameLogic::OnPKT_C2S_Temp_Damage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1583) : error C2601: 'ServerGameLogic::ProcessChatCommand' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1604) : error C2601: 'ServerGameLogic::Cmd_Teleport' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1632) : error C2601: 'ServerGameLogic::Cmd_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1653) : error C2601: 'ServerGameLogic::Cmd_SetVitals' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1668) : error C2601: 'ServerGameLogic::OnPKT_C2C_ChatMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1810) : error C2601: 'ServerGameLogic::OnPKT_C2S_DataUpdateReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1818) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_PlayerKick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1841) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1860) : error C2601: 'ServerGameLogic::OnPKT_C2S_SecurityRep' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1926) : error C2601: 'ServerGameLogic::OnPKT_C2S_UseNetObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1990) : error C2601: 'ServerGameLogic::OnPKT_C2S_CreateNote' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2009) : error C2601: 'ServerGameLogic::OnPKT_C2S_TEST_SpawnDummyReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2018) : error C2601: 'ServerGameLogic::OnPKT_C2S_DBG_LogMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2034) : error C2601: 'ServerGameLogic::OnPKT_C2S_ScreenshotData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2059) : error C2601: 'ServerGameLogic::ProcessWorldEvent' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2138) : error C2601: 'ServerGameLogic::TrackWeaponUsage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2164) : error C2601: 'ServerGameLogic::Tick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2239) : error C2601: 'ServerGameLogic::DumpPacketStatistics' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2265) : error C2601: 'ServerGameLogic::GetUtcGameTime' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2280) : error C2601: 'ServerGameLogic::SendWeaponsInfoToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2313) : fatal error C1075: end of file found before the left brace '{' at '.\Sources\ServerGameLogic.cpp(524)' was matched
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 49 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
and dies 4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
Re: [Snippet] Adding Player EXP
This error you gotta disable the warnings for.
winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
This error is due to line 524
\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
Try replace with this code and if you get a error (prob will) post it.
if(IsServerPlayer(sourceObj))
{
obj_ServerPlayer * killedByPlr = ((obj_ServerPlayer*)sourceObj);
if (targetPlr->profile_.CustomerID == killedByPlr->profile_.CustomerID)
}
Just search for if(IsServerPlayer(sourceObj)) and replace that code with code above.
Re: [Snippet] Adding Player EXP
Now error
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
2>ServerGame.cpp
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>Linking...
2>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 1 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
now I can not at my server more open :-(
Re: [Snippet] Adding Player EXP
Well player exp is now fixed so thats good, for winmain do what i said before its in properties you gotta do it to winmain.cpp and for your other error its saying it cannot open it so see if you even have it.
But those 2 errors you got now are from something else not this tutorial.
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Lost Echo
Well player exp is now fixed so thats good, for winmain do what i said before its in properties you gotta do it to winmain.cpp and for your other error its saying it cannot open it so see if you even have it.
But those 2 errors you got now are from something else not this tutorial.
Help me please, I am not able to resolve this problem
http://i.imgur.com/hkdJe39.jpg?1
Re: [Snippet] Adding Player EXP
how do I make the warning of WINMAIN.CPP off ???
Re: [Snippet] Adding Player EXP
unfortunately it does not work still with me now I beckomme 2x XP for a zombie can you please help me on teamviewer :-(
Re: [Snippet] Adding Player EXP
Re: [Snippet] Adding Player EXP
would be nice one re-release :kiss: someone knows the fuctions?
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Bombillo
would be nice one re-release :kiss: someone knows the fuctions?
@Bombillo
Its your lucky day re-added it enjoy.
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
@
Bombillo
Its your lucky day re-added it enjoy.
You're awesome man!, One thing I have been search for
Code:
obj_ServerPlayer * killerPlr = ((obj_ServerPlayer*)sourceObj);
but I cannot found the function, I just need this to finish
Code:
gServerLogic.AddPlayerReward(killerPlr, RWD_PlayerKill);
any idea?
I use IR(Infestation Reloaded) srcs
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Bombillo
You're awesome man!, One thing I have been search for
Code:
obj_ServerPlayer * killerPlr = ((obj_ServerPlayer*)sourceObj);
but I cannot found the function, I just need this to finish
Code:
gServerLogic.AddPlayerReward(killerPlr, RWD_PlayerKill);
any idea?
I use IR(Infestation Reloaded) srcs
Okay can you open warz_server.sln and then search for KillPlayer then you will find an entire function then copy it all and put it on pastebin.com ill take a look at it and tell you where to put it.
Re: [Snippet] Adding Player EXP
here is the function thanks for the help man
http://pastebin.com/4gTw6WhN
Re: [Snippet] Adding Player EXP
Ok i noticed my problem sorry i forgot to add a certain code to it anyways here is your "Fixed" killplayers with playerkilling exp
http://pastebin.com/raw.php?i=nc9bPH2n
If you have problems with adding it just re-follow my tutorial as it would now work :)
Re: [Snippet] Adding Player EXP
it works! awesome :thumbup: