[ISSUE] SmartFox 1.6.2 in UE4 4.10.1

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

nico90
Posts: 2
Joined: 27 Dec 2015, 18:46

[ISSUE] SmartFox 1.6.2 in UE4 4.10.1

Postby nico90 » 28 Dec 2015, 20:47

Hello friends,

I am trying to integrate SFS into UE 4.10.1 using the documentation I found in the proof of concept example for 4.7.4. I'm attempting to recreate my own connecting actor by examining the UnrealSfsDemoCharacter provided with the example. For now, all I did was adding the include statements as in the UnrealSfsDemoCharacter.h, only with modified directories. This is what I get when I try to build :(.

Code: Select all

C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C4003: not enough actual parameters for macro 'check'C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C4003: not enough actual parameters for macro 'check'
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C4003: not enough actual parameters for macro 'CA_ASSUME'C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C4003: not enough actual parameters for macro 'CA_ASSUME'
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C2062: type 'void' unexpectedC:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C2062: type 'void' unexpected
1>
1>  C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(2122): note: see reference to class template instantiation 'boost::intrusive::slist_impl<ValueTraits,SizeType,BoolFlags,HeaderHolder>' being compiledC:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(2122): note: see reference to class template instantiation 'boost::intrusive::slist_impl<ValueTraits,SizeType,BoolFlags,HeaderHolder>' being compiled
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1922): error C4430: missing type specifier - int assumed. Note: C++ does not support default-intC:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1922): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1922): error C2059: syntax error: '{'C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1922): error C2059: syntax error: '{'
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1922): error C2334: unexpected token(s) preceding '{'; skipping apparent function bodyC:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1922): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/asio/detail/impl/win_iocp_socket_service_base.ipp(211): warning C4191: 'type cast': unsafe conversion from 'FARPROC' to 'cancel_io_ex_t'
1>          Calling this function through the result pointer may cause your program to failC:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/asio/detail/impl/win_iocp_socket_service_base.ipp(211): warning C4191: 'type cast': unsafe conversion from 'FARPROC' to 'cancel_io_ex_t'
1>          Calling this function through the result pointer may cause your program to fail
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/asio/detail/impl/win_iocp_handle_service.ipp(244): warning C4191: 'type cast': unsafe conversion from 'FARPROC' to 'cancel_io_ex_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/asio/detail/impl/win_iocp_handle_service.ipp(244): warning C4191: 'type cast': unsafe conversion from 'FARPROC' to 'cancel_io_ex_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/thread/win32/thread_primitives.hpp(312): warning C4191: 'type cast': unsafe conversion from 'boost::detail::win32::farproc_t' to 'boost::detail::win32::detail::gettickcount64_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/thread/win32/thread_primitives.hpp(312): warning C4191: 'type cast': unsafe conversion from 'boost::detail::win32::farproc_t' to 'boost::detail::win32::detail::gettickcount64_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1627): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQuerySystemInformation_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1627): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQuerySystemInformation_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1834): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtSetInformationFile_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1836): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQueryObject_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1834): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtSetInformationFile_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1836): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQueryObject_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1908): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtOpenFile_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1909): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtClose_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1908): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtOpenFile_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(1909): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtClose_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2288): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQuerySection_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2301): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQuerySemaphore_t'
1>          Calling this function through the result pointer may cause your program to failC:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2288): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQuerySection_t'
1>          Calling this function through the result pointer may cause your program to fail
1>
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2312): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQueryTimerResolution_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2319): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtSetTimerResolution_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2326): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::QueryPerformanceCounter_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2301): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQuerySemaphore_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2333): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::QueryPerformanceFrequency_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2312): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtQueryTimerResolution_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2319): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::NtSetTimerResolution_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2326): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::QueryPerformanceCounter_t'
1>          Calling this function through the result pointer may cause your program to fail
1>C:\Users\nicol\OneDrive\Dokumente\Unreal Projects\POL\smartfox_api_cpp\Core\BoostAsio\Windows\boost/interprocess/detail/win32_api.hpp(2333): warning C4191: 'type cast': unsafe conversion from 'boost::interprocess::winapi::farproc_t' to 'boost::interprocess::winapi::QueryPerformanceFrequency_t'
1>          Calling this function through the result pointer may cause your program to fail


Does anyone know what is causing these problems? Can anyone help me please? I really have no clue, since there seems to be something wrong with the files that are provided.

EDIT: I'm using VS2015, for both compiling the API and UE4.

Best wishes
Nicolas
nico90
Posts: 2
Joined: 27 Dec 2015, 18:46

Re: [ISSUE] SmartFox 1.6.2 in UE4 4.10.1

Postby nico90 » 28 Dec 2015, 23:07

I managed to fix some of the errors. But I am still getting this :(. Does anyone have a solution for this?
Error C1083 Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory POL c:\users\nicol\onedrive\dokumente\unreal projects\pol\smartfox_api_cpp\Core\BaseEvent.h 17
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: [ISSUE] SmartFox 1.6.2 in UE4 4.10.1

Postby MBagnati » 06 Jan 2016, 11:27

Hi,
Today SmartFox C++ API are delivered only for Microsoft Visual Studio 2010, Microsoft Visual Studio 2012, Microsoft Visual Studio 2013 environments.
We have already started an activity to generate an API version that will be compliant with Microsoft Visual Studio 2015.
Please stay tuned.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: [ISSUE] SmartFox 1.6.2 in UE4 4.10.1

Postby Bax » 14 Jan 2016, 17:10

We just released a new version of the API, now compatible with VS2015.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 14 guests