Page 1 of 1

Charutils.cpp Code Break

Posted: Thu Jul 17, 2014 2:07 pm
by xelloss
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

Re: Charutils.cpp Code Break

Posted: Thu Jul 17, 2014 2:30 pm
by santssoft
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"

Re: Charutils.cpp Code Break

Posted: Thu Jul 17, 2014 3:03 pm
by bluekirby0
Fixed in the main repo

Re: Charutils.cpp Code Break

Posted: Thu Jul 17, 2014 3:07 pm
by demolish
my bad, didn't test before merging :/

Re: Charutils.cpp Code Break

Posted: Thu Jul 17, 2014 10:45 pm
by TeoTwawki
I was so tired last night I must have compiled the wrong dir before I pull req'd :oops: