Charutils.cpp Code Break

Post Reply
xelloss
Posts: 57
Joined: Sat Mar 09, 2013 1:09 am

Charutils.cpp Code Break

Post by xelloss » Thu Jul 17, 2014 2:07 pm

Recent mod to charutils.cpp on github causes build fail.

Code: Select all

Error	1	error C2061: syntax error : identifier 'CMessageSpecialPacket'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3465	1	DSGame-server
Error	2	error C2660: 'CCharEntity::pushPacket' : function does not take 6 arguments	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3465	1	DSGame-server
Error	3	error C2143: syntax error : missing ';' before ')'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3465	1	DSGame-server
Error	4	error C2059: syntax error : 'if'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3472	1	DSGame-server
Error	5	error C2143: syntax error : missing ';' before '{'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3473	1	DSGame-server
Error	6	error C2447: '{' : missing function header (old-style formal list?)	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3473	1	DSGame-server
Error	7	error C2065: 'PChar' : undeclared identifier	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3541	1	DSGame-server
Error	8	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3541	1	DSGame-server
Error	9	error C2365: 'charutils::SaveCharStats' : redefinition; previous definition was 'function'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3541	1	DSGame-server
Error	10	error C2065: 'PChar' : undeclared identifier	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3542	1	DSGame-server
Error	11	error C2227: left of '->GetMJob' must point to class/struct/union/generic type	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3542	1	DSGame-server
Error	12	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3542	1	DSGame-server
Error	13	error C2365: 'charutils::SaveCharJob' : redefinition; previous definition was 'function'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3542	1	DSGame-server
Error	14	error C2065: 'PChar' : undeclared identifier	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3543	1	DSGame-server
Error	15	error C2227: left of '->GetMJob' must point to class/struct/union/generic type	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3543	1	DSGame-server
Error	16	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3543	1	DSGame-server
Error	17	error C2365: 'charutils::SaveCharExp' : redefinition; previous definition was 'function'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3543	1	DSGame-server
Error	18	error C2065: 'PChar' : undeclared identifier	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3544	1	DSGame-server
Error	19	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3544	1	DSGame-server
Error	20	error C2365: 'charutils::SaveCharPoints' : redefinition; previous definition was 'function'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3544	1	DSGame-server
Error	21	error C2143: syntax error : missing ';' before '->'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3545	1	DSGame-server
Error	22	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3545	1	DSGame-server
Error	23	error C2059: syntax error : 'if'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3547	1	DSGame-server
Error	24	error C2143: syntax error : missing ';' before '{'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3548	1	DSGame-server
Error	25	error C2447: '{' : missing function header (old-style formal list?)	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3548	1	DSGame-server
Error	26	error C3861: 'loadCharWsPoints': identifier not found	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	3616	1	DSGame-server
Error	27	error C3861: 'BuildingCharWeaponSkills': identifier not found	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	4418	1	DSGame-server
Error	28	error C3861: 'UpdateItem': identifier not found	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	4493	1	DSGame-server
Error	29	error C3861: 'AddItem': identifier not found	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	4497	1	DSGame-server
Error	30	error C3861: 'hasLearnedAbility': identifier not found	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	4530	1	DSGame-server
Error	31	error C2059: syntax error : '}'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	4628	1	DSGame-server
Error	32	error C2143: syntax error : missing ';' before '}'	d:\games\server emulation\ffxi\src\map\utils\charutils.cpp	4628	1	DSGame-server

santssoft
Posts: 40
Joined: Tue Apr 30, 2013 5:41 am

Re: Charutils.cpp Code Break

Post by santssoft » Thu Jul 17, 2014 2:30 pm

I've pull a fix in github: https://github.com/DarkstarProject/darkstar/pull/390

To fix the error, delete the line 3469 (if your charutils.cpp is not modded): " }" and add the link to header message_special.h: #include "../packets/message_special.h"

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: Charutils.cpp Code Break

Post by bluekirby0 » Thu Jul 17, 2014 3:03 pm

Fixed in the main repo

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Charutils.cpp Code Break

Post by demolish » Thu Jul 17, 2014 3:07 pm

my bad, didn't test before merging :/
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Charutils.cpp Code Break

Post by TeoTwawki » Thu Jul 17, 2014 10:45 pm

I was so tired last night I must have compiled the wrong dir before I pull req'd :oops:
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Post Reply