But I see no easy way to read that back out in the shootergame server browser. I see it in the Unreal server browser under “game”, but I don’t see a easy way using the onlinesubsystemsteam to get at it. How can I access that field from the server browser/client using onlinesubsystem? Is there another field/method anyone would recommend I use for this?
Hey, why do you need to read it back? As far as I understand it’s just mean to be a static description which is identical for every game server. If you are looking to have a custom field or description for every server I suggest using the online subsystem which has a key value system for sessions which Steam supports. Looks something like this:
But what I’m looking for is a way to add a “description” field that shows up in my game’s server browser. I don’t really care how, but I’m trying to add a “keyvalue” pair and that is making the server not even show up in the browser (even though I have no filters in my server browser) or in the Steam browser. When I remove the keyvalue pair I was adding, it shows up again. Basically, I just want to add a field that allows a server owner to put a description about his or her server. Can this be done through the onlinesubsystem steam? If so, how?
Check your logs, maybe there is a limit that prevents you from adding a description that is too long. I am doing a similar thing where players can enter a custom server name using the generic online subsystem interface (with the steam online subsystem backend). If you don’t have a specific reason as to why not to use the interface, you can look at CreateSessionCallbackProxy.cpp around line 60 how to set such a key value pair, in your case probably:
Well, I’ve tried the line of code you suggested (not in CreateSessionCallbackProxy.cpp, but in the OnlineSessionAsyncServerSteam.cpp. Same result, the server does not register with steam (or at least, it doesn’t show up in the shootergame server browser) if I have the line of code in, and it does if I don’t. I don’t see any errors in the server or client logs relating to Steam, it just doesn’t show up.
I just stuck it at the end of the UpdatePublishSettings() function: