[NEW] Unreal Engine 4 Proof of concept

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

Moderators: Lapo, Bax, MBagnati

User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

[NEW] Unreal Engine 4 Proof of concept

Postby Lapo » 30 Jun 2015, 16:18

We have released a proof of concept for how to integrate UE4 and the SFS2X C++ API.

This package contains a modified version of one of the examples provided with Unreal Engine 4. It is a proof of concept showing how to integrate the SmartFoxServer 2X C++ API, connect to the server and exchange public messages.

A specific tutorial (also contained in the zip) provides in depth instructions on how to setup your Unreal project and interact with SmartFoxServer 2X.

Download link is at the bottom of this page.
Lapo
--
gotoAndPlay()
...addicted to flash games
imperator132k
Posts: 6
Joined: 05 Jan 2016, 16:18

Re: [NEW] Unreal Engine 4 Proof of concept

Postby imperator132k » 06 Jan 2016, 08:59

hello,

I have found with the update to unreal 4.10 you are required to operate under vs2015 in which the smartfoxapi is not setup.

is there any releases in which the c++ api is registered under 2015 or is this something in the pipeline?

regards,

Imperator132k
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: [NEW] Unreal Engine 4 Proof of concept

Postby MBagnati » 06 Jan 2016, 11:26

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.
imperator132k
Posts: 6
Joined: 05 Jan 2016, 16:18

Re: [NEW] Unreal Engine 4 Proof of concept

Postby imperator132k » 15 Oct 2016, 14:44

Hello,

I have been working very succesfully with the Unreal POC demo that has been provided for VS2013 and have managed to integrate this to a high level and expand greatly on it.

I was overjoyed when you released the C++ API for VS2015 and have just spent many times trying to compile the SmartFoxApi into a static library so that i can extend the POC to VS2015.

I have followed all the instructions and am able to compile this without errors into a static library.

When i go to use the new SmartFoxApi.lib and add "#include <SmartFox.h>" this is the error message i am recieving:

Core\BoostAsio\Windows\boost/intrusive/slist.hpp(1921): error C4003: not enough actual parameters for macro 'check'

The SmartFoxApi.lib that was provided with the UE4 Poc worked perfectly.

Is there any way we could compile these libraries again and update the PoC demo to include use with the VS2015.

I am currently working on UE4 9.2 but the current Version is 13, this means there are alot of versions to be released since this was published.

I would like to get this compiled and put forward a tutorial system to integrate this into UE4 such as Genesis Rage has done for Unity, but am unable to continue until i can get the SmartFoxApi.lib working.

Regards

Imperator132k
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: [NEW] Unreal Engine 4 Proof of concept

Postby MBagnati » 20 Oct 2016, 01:32

Hi,

In my opinion, there is a conflict between the check macro defined by Boost and that one defined in UE4.
I suggest you to edit the file trunk_api\Core\BoostAsio\Windows\boost\intrusive\slist.hpp to remove or rename the function

Code: Select all

void check() const


Best regards
imperator132k
Posts: 6
Joined: 05 Jan 2016, 16:18

Re: [NEW] Unreal Engine 4 Proof of concept

Postby imperator132k » 20 Oct 2016, 21:39

Thank you, I will try this and update
tai65535
Posts: 3
Joined: 04 Jan 2018, 02:21

Re: [NEW] Unreal Engine 4 Proof of concept

Postby tai65535 » 19 Jan 2018, 06:37

Are we going to have an updated version for UE4?

Will Mac be supported?
diohun
Posts: 6
Joined: 23 Jan 2018, 09:24

Re: [NEW] Unreal Engine 4 Proof of concept

Postby diohun » 05 Jun 2020, 15:17

Guys, pls update this concept too... and make one better doc, and support.... Thanks.
jgwinner
Posts: 1
Joined: 29 Oct 2020, 00:37

Re: [NEW] Unreal Engine 4 Proof of concept

Postby jgwinner » 31 Oct 2020, 01:20

Is Unreal supported?

I have two applications with 1400+ confirmed users, just today. Would love to use Unreal for this.

I need a commercially supported solution. Can Smart Fox Server work?

== John ==
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [NEW] Unreal Engine 4 Proof of concept

Postby Lapo » 04 Nov 2020, 16:54

Sorry,
we only support Unreal via the C++ client API which are not in active development.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
aschord
Posts: 2
Joined: 10 Jan 2022, 07:58

Re: [NEW] Unreal Engine 4 Proof of concept

Postby aschord » 10 Jan 2022, 11:16

SFS2X_API_Cpp_v1.7.5 does not work in Unreal Engine 4.27. What should I do if I want to use it in UE4.27? The official example is too old to be used correctly ?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [NEW] Unreal Engine 4 Proof of concept

Postby Lapo » 11 Jan 2022, 14:29

Hi,
the C++ API are not officially maintained by us. It's just too much work to check them against every possibile combination of platform/OS/architecture and game engines. Most of our users work with Unity, Javascript and mobile platforms so that's where we put more of our client side resources.

All we can do is offer the source code and several usage examples so you can download them and experiment with your game-engine and dev tools of choice. Most of the compilation issues you will find (if any) are usually solvable with a few searches online, but we understand that this may not for everyone, although C++ devs are mostly used to this due to the nature of the language.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 16 guests