How to build flhook with Ultimate++?
-
i still have this error
C:\MyApps\flhook158src\source\HkUserCmd.cpp(797) : warning C4146: unary minus op
erator applied to unsigned type, result still unsigned
C:\MyApps\flhook158src\source\HkUserCmd.cpp(984) : warning C4244: âargumentâ : c
onversion from âdoubleâ to âintâ, possible loss of data
C:\MyApps\flhook158src\source\HkUserCmd.cpp(1071) : warning C4244: âargumentâ :
conversion from âdoubleâ to âintâ, possible loss of dataThose are warnings from the code I copy-pasted from the bountyhunt command in the Cheaters Death FLHook - I didnât check the code over before doing so, and it has actually been removed in 1.6.0 because it didnât seem to work correctly.
I tired the rename command in my new FLHook, it works fine, but when i shutdown the server, Windows will show me 2 Memory couldât read error Sad
This bug exists in FLHook 1.5.5 as well; Iâm not sure what causes it.
-
Iâm really are Rookie on programmer too.
Iâm use :
Ultimate++
Microsoft Platform SDK for Windows Server 2003 R2 (my system is windows xp too)
Microsoft Visual C++ Toolkit 2003and I set all of above tools like this.
Iâm download and use M0tah made of flhook V1.6.0 src to build a upp version flhook (didnât do any change), then I get :
LinkingâŚ
ĂÂ Creating library C:\upp\out\MSC71.Dll.Force_speed\FLHook.lib and object C:\upp\out\MSC71.Dll.Force_speed\FLHook.exp
HkCbIServerImpl.obj : error LNK2019: unresolved external symbol âbool g_bInPlayerLaunchâ (?g_bInPlayerLaunch@@3_NA) referenced in function
âvoid __stdcall HkIServerImpl::PlayerLaunch(unsigned int,unsigned int)â (?PlayerLaunch@HkIServerImpl@@YGXII@Z)
HkCbIServerImpl.obj : error LNK2019: unresolved external symbol âclass Vector g_Vlaunchâ (?g_Vlaunch@@3VVector@@A) referenced in function
âvoid __stdcall HkIServerImpl::PlayerLaunch(unsigned int,unsigned int)â (?PlayerLaunch@HkIServerImpl@@YGXII@Z)
HkCbIServerImpl.obj : error LNK2019: unresolved external symbol âclass Matrix g_Mlaunchâ (?g_Mlaunch@@3VMatrix@@A) referenced in function
âvoid __stdcall HkIServerImpl::PlayerLaunch(unsigned int,unsigned int)â (?PlayerLaunch@HkIServerImpl@@YGXII@Z)
HkCbIServerImpl.obj : error LNK2019: unresolved external symbol âunsigned int g_iClientIDâ (?g_iClientID@@3IA) referenced in function âvoi
d __stdcall HkIServerImpl::PlayerLaunch(unsigned int,unsigned int)â (?PlayerLaunch@HkIServerImpl@@YGXII@Z)
HkInit.obj : error LNK2001: unresolved external symbol âint __cdecl SpaceObjDock(unsigned int const &,unsigned int const &,int,enum DOCK_H
OST_RESPONSE)â (?SpaceObjDock@@YAHABI0HW4DOCK_HOST_RESPONSE@@@Z)
HkInit.obj : error LNK2001: unresolved external symbol âint __cdecl SpaceObjCreate(unsigned int &,struct pub::SpaceObj::ShipInfo const &)â
(?SpaceObjCreate@@YAHAAIABUShipInfo@SpaceObj@pub@@@Z)
HkInit.obj : error LNK2001: unresolved external symbol âint (__stdcall* fpOldLaunchPos)(void)â (?fpOldLaunchPos@@3P6GHXZA)
HkInit.obj : error LNK2001: unresolved external symbol âvoid __cdecl _HkCb_LaunchPos(void)â (?_HkCb_LaunchPos@@YAXXZ)
HkTimers.obj : error LNK2019: unresolved external symbol âclass std::vector <struct dock_info,class=â" std::allocator<struct=ââ dock_info=ââ>> vDel
ayedNPCDocks" (?vDelayedNPCDocks@@3V?$vector@UDOCK_INFO@@V?$allocator@UDOCK_INFO@@@std@@@std@@A) referenced in function âvoid __cdecl
HkTimerNPCDockHandler(void)â (?HkTimerNPCDockHandler@@YAXXZ)
HkTimers.obj : error LNK2019: unresolved external symbol âclass std::vector <struct delay_mark,class=â" std::allocator<struct=ââ delay_mark=ââ>> vD
elayedMarkSpaceObjProc" (?vDelayedMarkSpaceObjProc@@3V?$vector@UDELAY_MARK@@V?$allocator@UDELAY_MARK@@@std@@@std@@A) referenced in fun
ction âvoid __cdecl HkTimerSpaceObjMark(void)â (?HkTimerSpaceObjMark@@YAXXZ)
HkTimers.obj : error LNK2019: unresolved external symbol âclass std::vector <struct delay_mark,class=â" std::allocator<struct=ââ delay_mark=ââ>> vM
arkSpaceObjProc" (?vMarkSpaceObjProc@@3V?$vector@UDELAY_MARK@@V?$allocator@UDELAY_MARK@@@std@@@std@@A) referenced in function âvoid __
cdecl HkTimerSpaceObjMark(void)â (?HkTimerSpaceObjMark@@YAXXZ)
C:\upp\out\MSC71.Dll.Force_speed\FLHook.dll : fatal error LNK1120: 11 unresolved externalsIâm use M0tah made of âflhook1.5.5UPP.zipâ to build a upp version flhook (didnât do any change too), itâs work fine.
May anyone know that and can help me solve it?</struct></struct></struct>
-
I forgot to update the UPP project file for FLHook 1.6.0, so it doesnât include the HkCbOther.cpp file. You can easily add it in to the project, however. Right-click in the source file pane and select âInsert any file(s)â.
Thanks M0tah, now itâs work.
-
ok, i do lot of test, then i can say, do not use Ultimate++ to build FLHook.
i pay long time to test on our server and the server keep crashing about per 5 hours. then i got a vs2003, build my edited code with it, upload to server, all crash problem solved. ???
-
Iâm not sure what could be the problem - the compiler/linker that youâre using with Ultimate++ are the same ones that come with VS2003. The only thing that could be different is the way the compiler/linker is called with Ultimate++ and perhaps the header files. When the server crashes, the Mod name is flhook.dll, right? Otherwise itâs probably not FLHook crashing the server.
Has anyone else experienced this problem?
-
Iâm not sure what could be the problem - the compiler/linker that youâre using with Ultimate++ are the same ones that come with VS2003. The only thing that could be different is the way the compiler/linker is called with Ultimate++ and perhaps the header files. When the server crashes, the Mod name is flhook.dll, right? Otherwise itâs probably not FLHook crashing the server.
Has anyone else experienced this problem?
I was edit some code and use the Ultimate++ build FLHook, but my server is no any crash when I use the new compiled of FLHook.
But when I edit FLHook of code like error explanation, and use Chinese to change originally English explanation of code, some place can be change and some place will be cause crash.
I guess that is the problem, Ultimate++ canât correct support what in code use Chinese, but VS2003 can.
-
No, JONG, i have test it both my Windows XP and a english Windows XP in Virtual PC, and both not good. i dont know what happen but per 5 hours or more/less, the server will cut all connection, need restart. i think my flhook crash flserver(and make it cant restart).
but im not sure, just not recommended to build with Ultimate++ ;D
-
No, JONG, i have test it both my Windows XP and a english Windows XP in Virtual PC, and both not good. i dont know what happen but per 5 hours or more/less, the server will cut all connection, need restart. i think my flhook crash flserver(and make it cant restart).
but im not sure, just not recommended to build with Ultimate++ ;D
If that, maybe I need to find and get the VS2003. ;D