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"

How to set up a Steam LAN game with Steam OSS?

Hi all,

I'm trying to create my own online subsystem based off of the Steam online subsystem. I've copied and renamed all of the Steam OSS and ultimately I want to change a lot of its interfaces (sessions, voice, ect). But for now I'm just trying to test my copy of the Steam OSS. I can only test over a LAN right now, so I wanted to know how to start a Steam LAN game (or if its even possible). If I can get that up and running I can then try to emulate it with my custom OSS.

*also I have gotten a basic non-steam LAN game running with the Null OSS. Another note is that my game uses a dedicated server, so a client can't host a server.

Any help would be really appreciated!

Product Version: UE 4.20
Tags:
more ▼

asked Nov 27 '18 at 10:24 PM in C++ Programming

avatar image

LDOGLONDON
80 5 5 8

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I was not able to accomplish LAN play with the Steam OSS, but I was able to get my desired outcome by creating a custom OSS which basically combines the Steam OSS with the NULL OSS.

If you create your own OSS you shouldn't have to append anything to your map URL for LAN matches. The only thing the OSS is looking at when settings up sessions are the session settings, or "FOnlineSessionSettings", that should be set up within your Game Session class (for your game).

I basically just check command line arguments to modify things like the session settings and what interfaces my OSS will be using.

more ▼

answered Jan 30 '19 at 06:45 PM

avatar image

LDOGLONDON
80 5 5 8

(comments are locked)
10|2000 characters needed characters left

If specific online subsystem supports LAN listings you just need to mark Use LAN Boolean when you create session, your online subsystem needs to support that in order to work.

https://docs.unrealengine.com/en-us/Engine/Blueprints/UserGuide/OnlineNodes

more ▼

answered Nov 28 '18 at 04:24 AM

avatar image

Shadowriver
33.9k 916 164 1093

avatar image LDOGLONDON Nov 28 '18 at 06:27 PM

Thanks for the comment. I am doing all of this in c++ and in my game session class when I am setting up the session settings I am checking a command line argument "LAN", which I set, to determine if bIsLANMatch is true (I believe that should correspond to the BP bool). My problem now is that client can't find the server at all. Like it can't see it when I'm using Steam OSS or my own OSS. I think I need to append ?bIsLANMatch to my map URL but I'm not sure if I have to do that on the server or the client, and I'm not sure where the to modify the map URL also.

avatar image Shadowriver Nov 28 '18 at 10:14 PM

You overrided something important or you not forwarding LAN bool properly look on original OnlineSubsystem code what it does on LAN. YOu can also look up null as all null does is do LAN lookup using multicast IPs like any LAN game does

(comments are locked)
10|2000 characters needed characters left
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