x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

HTML5 Multiplayer

hello its good to see html5 packaging from the editor on the master (4.8) branch. however, multiplayer doesn't seem to be working.

alt text

the error is from the client trying to connect over the internet. console command from blueprints, open mapname?listen and open [server ip]

is it implemented yet or do i need to mes with steam sockets or something?

thanks

edit: heres the link http://teglegrecords.free.fr/ue4/html5test.html

Product Version: Not Selected
Tags:
more ▼

asked Feb 21 '15 at 12:51 AM in Using UE4

avatar image

tegleg
80 13 13 19

avatar image JoJo_2nd STAFF Feb 23 '15 at 09:24 AM

Hi tegleg,

The HTML5 networking path is still in the early stages and still being worked on atm so I'd expect it to be a little flaky. AFAIK it's built on websockets which is wrapped in BSD socket api (but don't quote me on that) so if you want to mess with it please do.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Unreal Networking for HTML5 doesn't yet exist in main line although if you are interested in testing out a alpha version and providing a test case, please let me know.

more ▼

answered Feb 23 '15 at 09:45 AM

avatar image

[Ankitkk] STAFF
481 13 3 9

avatar image tegleg Mar 01 '15 at 01:39 PM

hello sorry for the delay. yes i would be interested in that. where do i get it? thanks

avatar image [Ankitkk] STAFF Mar 02 '15 at 02:27 PM
avatar image tegleg Mar 03 '15 at 01:14 PM

thanks :)

avatar image tegleg Mar 05 '15 at 01:42 AM

alt text

opening on local machine.

btw, still cant package without a c++ project.

scripterror.jpg (65.0 kB)
avatar image [Ankitkk] STAFF Mar 05 '15 at 01:54 AM

This is what I did to test in Firefox, Chrome hasn't been tested yet.

  • Make relevant .ini changes ( look up Readme.md for the plugin )

  • Build editor - test Networked PIE. From the output logs in the IDE, confirm that plugin was used.

  • Start the a server ( dedicated or the editor build)

  • connect a native Win64 client and confirm its working

  • edit the generated html5 file and fix up the command line arguments needed for the client ( i.e ip of the server etc..)

  • open the page in firefox.

( Currently the plugin is not enabled by default, make sure its enabled to actually use it)

avatar image tegleg Mar 07 '15 at 04:33 PM

when you say "edit the generated html5 file" refering to the host ip, what line is that exactly?

is there currently a way to change the host ip dynamically? and does it have to be a dedicated server?

thanks

edit: i still get the script error above as well as: Assertion failed: HasFoundDataDirectory [File:G:\UnrealEngine-5a54a880bac95a7e0120bdda90c1caea5005e215\Engine\Source\Runtime\Core\Private\Internationalization\ICUInternationalization.cpp] [Line: 117] ICU data directory was not discovered: ../../../test3rdperson/Content/Internationalization ../../../Engine/Content/Internationalization

avatar image Azarus Jun 20 '15 at 02:19 PM

In google it's the first result. Can we have any news for this question?

avatar image goofyseeker311 Jun 14 '16 at 03:06 PM

Any updates on this? I have a blueprint based project that would greatly benefit from out-of-the-box multiplayer entry/login through a HTML5 client.. And I would also be willing to test any recent alpha/beta packages/plugins.

avatar image goofyseeker311 Jun 20 '16 at 08:09 AM

The dedicated development/shipping server crashes when client tries to connect to port 8889. Firefox (47.0 64-bit) error: "The connection to ws://149.56..:8889/ was interrupted while the page was loading." NOTE: The normal Win64 client network cannot/wont even initiate Websocket communications!

Normal building of server/client with Visual Studio 2015 works from github source when using default networking.

Instructions used: https://github.com/ankitkk/HTML5Networking

Detailed Development Server Error:

[2016.06.20-07.32.45:601][208]LogNet: NotifyAcceptingConnection: Server TheMeetingRoom accept [2016.06.20-07.32.45:797][208]PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent) [2016.06.20-07.32.46:011][208]LogNet: NotifyAcceptedConnection: Name: TheMeetingRoom, TimeStamp: 06/20/16 10:32:46, [UNetConnection] RemoteAddr: dsl-hkibra*-.dhcp.inet.fi, Name: WebSocketConnection_0, Driver: GameNetDriver WebSocketNetDriver_0, IsServer: YES, PC: NULL, Owner: NULL [2016.06.20-07.32.46:011][208]LogNet: AddClientConnection: Added client connection: [UNetConnection] RemoteAddr: dsl-hkibra-***.dhcp.inet.fi, Name: WebSocketConnection_0, Driver: GameNetDriver WebSocketNetDriver_0, IsServer: YES, PC: NULL, Owner: NULL [2016.06.20-07.32.46:020][208]LogNetSerialization:Error: FBitReader::SetOverflowed() called [2016.06.20-07.32.46:042][208]LogWindows: Windows GetLastError: The operation completed successfully. (0) [2016.06.20-07.32.47:226][208]LogWindows:Error: === Critical error: === LowLevelFatalError [File:C:\UnrealEngine-release\Engine\Source\Runtime\Engine\Classes\Engine/NetConnection.h] [Line: 561] Pure virtual not implemented (UNetConnection::RemoteAddressToString)

[2016.06.20-07.32.47:237][208]LogExit: Executing StaticShutdownAfterError [2016.06.20-07.32.47:261][208]LogWindows: FPlatformMisc::RequestExit(1) [2016.06.20-07.32.47:262][208]Log file closed, 06/20/16 10:32:47

avatar image r4ptur3 Aug 25 '16 at 05:46 PM

bump

any news on this? I found a 2 year old github for UE4.8 that was supposed to address networking with HTML5 but it crashes UE4.12 when I try to build.

more info over here: https://answers.unrealengine.com/questions/358636/html5-networking-listen-server-issues.html

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question