Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ RCbot2 _ Trying to Recompile RCBot2 (Win32)

Posted by: RoboCop May 21 2017, 03:45 PM

Hello, I thought I may help out by trying to recompile RCBot2 using VS2017. Now I had to download latest MMSource src-code in order to use the MMS SDK scripts. I had to do some adjustments like removing Create Custom Directory in "D:" like "D:\drv\xxrcinstall\files\rcbot2\files\rcbot2meta.dll;D:\Games\GTAV\steamapps\common\Team Fortress 2\tf\addons\rcbot2meta.dll;%(Outputs)" in order for it to work. The other adjustments is the Code Generation for SSE2 in [Enable Enhanced Instruction Set]. When I tried to [Build] the RcBot2_Meta binary it gave me this error below:-

CODE
1>   Creating library .\Release/HPB_bot2.lib and object .\Release/HPB_bot2.exp
1>tier1.lib(KeyValues.obj) : error LNK2019: unresolved external symbol __vswprintf referenced in function "int __cdecl swprintf(wchar_t *,wchar_t const *,...)" (?swprintf@@YAHPA_WPB_WZZ)
1>tier1.lib(strtools.obj) : error LNK2019: unresolved external symbol __snwprintf referenced in function "int __cdecl V_snwprintf(wchar_t *,int,wchar_t const *,...)" (?V_snwprintf@@YAHPA_WHPB_WZZ)
1>tier1.lib(strtools.obj) : error LNK2019: unresolved external symbol __vsnprintf referenced in function "int __cdecl V_snprintf(char *,int,char const *,...)" (?V_snprintf@@YAHPADHPBDZZ)
1>tier1.lib(utlstring.obj) : error LNK2001: unresolved external symbol __vsnprintf
1>.\Release/rcbot2meta.dll : fatal error LNK1120: 3 unresolved externals
1>Done building project "HPB_Bot2.vcxproj" -- FAILED.


Now I'm a bit of a C++ rookie but does anyone know what this means or have any possible clues or who had this error before for RcBot2?

This RcBot2 src code was downloaded from the latest r484 in SourceForge.

Posted by: Cheeseh May 21 2017, 06:59 PM

I remember reading somewhere that the hl2 source can't compile in vs later than 2013. I couldn't get it to compile on 2015.

Posted by: RoboCop May 21 2017, 09:43 PM

QUOTE(Cheeseh @ May 21 2017, 07:59 PM) *

I remember reading somewhere that the hl2 source can't compile in vs later than 2013. I couldn't get it to compile on 2015.

Alright I got it now, I've managed to recompile both the Release and Debug builds but with the newer Metamod Source Src SDK.