Author Topic: [2238] How compile check_look.cpp and others in extensions?  (Read 2965 times)

Offline SEGA_RUS

  • Arbeit macht frei
[2238] How compile check_look.cpp and others in extensions?
« on: August 26, 2015, 05:29:10 am »
Tired with Visual Studio 12
Code: [Select]
Build started 21.08.2015 20:15:43.
     1>Project "C:\SDK\2238\New\Server\extensions\check_look\check_look.vcxproj" on node 4 (Build target(s)).
     1>ClCompile:
         C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /I..\3rdParty\angelscript\include /I..\3rdParty\StlPort /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D NDEBUG /D _WINDOWS /D _USRDLL /D CHECK_LOOK_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /Gm /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt Lookup.cpp Walking.cpp WallDist.cpp check_look.cpp
         check_look.cpp
     1>c:\sdk\2238\new\server\extensions\check_look\check_look.cpp(74): error C2039: 'IsHexRaked' : is not a member of 'Map'
                 c:\sdk\2238\new\server\extensions\fonline.h(1604) : see declaration of 'Map'
     1>c:\sdk\2238\new\server\extensions\check_look\check_look.cpp(77): error C2039: 'IsHexPassed' : is not a member of 'Map'
                 c:\sdk\2238\new\server\extensions\fonline.h(1604) : see declaration of 'Map'
     1>c:\sdk\2238\new\server\extensions\check_look\check_look.cpp(101): error C2039: 'IsHexRaked' : is not a member of 'Map'
                 c:\sdk\2238\new\server\extensions\fonline.h(1604) : see declaration of 'Map'
         WallDist.cpp
     1>c:\sdk\2238\new\server\extensions\check_look\walldist.cpp(31): error C2039: 'HexFlags' : is not a member of 'ProtoMap'
                 c:\sdk\2238\new\server\extensions\fonline.h(1534) : see declaration of 'ProtoMap'
         Walking.cpp
         Lookup.cpp
         Generating Code...
     1>Done Building Project "C:\SDK\2238\New\Server\extensions\check_look\check_look.vcxproj" (Build target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:04.88
Skype - sega_75rus

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #1 on: August 26, 2015, 06:05:35 pm »
What define do you use while compiling? Make sure __SERVER is set.

Offline SEGA_RUS

  • Arbeit macht frei
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #2 on: August 29, 2015, 12:40:07 pm »
What define do you use while compiling? Make sure __SERVER is set.
I just opened project and clicked to compile check_look.
Skype - sega_75rus

Offline SEGA_RUS

  • Arbeit macht frei
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #3 on: August 31, 2015, 07:03:19 pm »
What define do you use while compiling? Make sure __SERVER is set.
I understand you.
Added __SERVER in Preprocessor definitions

With /MD I have this
Code: [Select]
1>------ Build started: Project: check_look, Configuration: Debug Win32 ------
1>  WallDist.cpp
1>  compiled as server
1>  Walking.cpp
1>  compiled as server
1>  Lookup.cpp
1>  compiled as server
1>  check_look.cpp
1>  compiled as server
1>  Generating Code...
1>check_look.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification
1>LINK : fatal error LNK1104: cannot open file 'stlport_statix.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

With /MT this
Code: [Select]
1>------ Build started: Project: check_look, Configuration: Debug Win32 ------
1>  WallDist.cpp
1>  compiled as server
1>  Walking.cpp
1>  compiled as server
1>  Lookup.cpp
1>  compiled as server
1>  check_look.cpp
1>  compiled as server
1>  Generating Code...
1>check_look.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification
1>LINK : fatal error LNK1104: cannot open file 'stlport_static.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Skype - sega_75rus

Offline Wipe

  • Rotator
  • Random is god
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #4 on: September 01, 2015, 07:17:05 am »
Configuration: Debug Win32
Debug configuration was broken from what i remember helping Reloaded guys; i think some paths was either wrongly set or totally missing - check if they're the same as in Release and correct if needed. Or simly switch to using Release which should be working correctly.
Most important paths are StlPort [must be always first] and AngelScript, everything else is up to you and your project structure.

With /MD I have this
...
With /MT I have this
Do not change that option, ever - it must be set to whatever it is in 2238 repo [i think MT, but don't trust my memory and recheck it on clean repo]. There was some bad shit happening if you used different setting, but details are long lost in Rotators IRC channel... Maybe Atom could provide you some details, as he was investigating it back in days, but he's long lost too :D
Anyway, consensus was - use same option for all projects and never change it. If your code goes crazy on used setting but work on the other one, you must correct the code.
Games are meant to be created, not played...

Offline SEGA_RUS

  • Arbeit macht frei
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #5 on: September 01, 2015, 12:38:17 pm »
Thanks for help but I still have missed file stlport_statix.lib
Skype - sega_75rus

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #6 on: September 01, 2015, 01:42:41 pm »
Thanks for help but I still have missed file stlport_statix.lib

The lib files are in \Server\extensions\3rdParty\StlPort\ - the release version should have correct path IIRC.

Offline SEGA_RUS

  • Arbeit macht frei
Re: [2238] How compile check_look.cpp and others in extensions?
« Reply #7 on: September 01, 2015, 04:22:43 pm »
The lib files are in \Server\extensions\3rdParty\StlPort\ - the release version should have correct path IIRC.
Already  here


BTW Is it possible to use bool check_look(Critter& cr, Critter& opponent); in main.fos with disabled check_look.dll?
« Last Edit: September 01, 2015, 04:27:32 pm by SEGA_RUS »
Skype - sega_75rus