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