I reviewed the previous comments of those who had the same problems as me. But I don’t even understand how to solve this problem yet. I’ll start from the beginning. I’m using UE5.2, Windows10. I compile and run the project through Visual Studio development environment (as for me it is much easier and more reliable than through “Live Coding, UE5”). So when I start the project through Visual Studio, everything starts normally, the engine itself starts without problems. But when I click on the “create server” button . Visual Studio gives an error (probably critical because of the logic of the code itself).
I click “extend” and a session on the server is created and everything seems to be normal. Only on the client window when I want to join the server. Above it shows that the server is found but no game sessions are found and that’s it.
I commented everything in DefaultEngine, as discussed in the comments under this lecture, switched off stim and tested everything the same way “session not found”. I switched back on steam and uncommented in DefaultEngine and called on steam. I even thought that there may be a problem in the code. Because others even displayed the IP-address, but I do not. So I removed my code and replaced it with the one I found on GitHub. But it still does the same thing. So I don’t even know what to look at to solve this problem. As far as I understand it pops up for almost everyone, but it is solved differently.
I APOLOGISE, I FORGOT TO ADD THAT. That when I run just a project from the engine or from file.bat, the server session is created without problems. Even in the previous lectures when I launched via V.S. there were no problems either. Only since the 15th lesson this problem started.
However, I played with DefaultEngine a little bit and started the project via bat.file. Then Steam is displayed (it is not displayed through the engine). And it already runs a session, but writes that it can not find the server JoinCoopADv.
However, I played with DefaultEngine a little bit and started the project via bat.file. Then Steam is displayed (it is not displayed through the engine). And it already runs a session, but writes that it can not find the server JoinCoopADv.
I apologise I may have confused you with my corrections. But in brief the situation is this if you run through bat.file, the session is found and displays the name of the server to which should connect. Through IDE when creating a level on the server it gives an error about transition between client/server levels. And when searching for a session neither the session nor the server name is found.
So, just right-click on the Create Server’s Server Name and promote to variable, then drag the pin into the Find Server’s Server Name and this will eliminate the duplicates
I run the two sessions from the command line only.
The other two sessions are created automatically. I will try to add NOSTEAM now. Have you run the project through (V.S.)? Did you get a critical error when creating the server?
Ah, no. OSS should be NULL but when you run from command line you add -NOSTEAM at the end and it blocks steam from being loaded. There’s an issue with steam still being used in 5.2 even with the Null subsystem is used and this prevents that from happening.
I’ve just tested it twice, through the command line. I ran and my IP address was displayed, but it didn’t connect to the session. And the first time it was written in the path file NOSTEAM, but this time it was NULL. Only I can not understand why such adventures go with the test . When I run the test through the browser one result, through the command line another one…
I take it you’ve been busy. But here’s what I’ve got these past couple of days. One time I got it to work consistently, But then it went back to the way it was. Trying to join the server, writes my address, like everything is normal, but connection to the level does not happen. I removed the commenting symbol from the line (If using Sessions), and everything worked fine. But today everything started the same. The first time I start a session found, but started, closed the created level, opened a new one. On the one I tried to connect create a session, and on the new window connect immediately.
Sorry, I have indeed been busy. This is what I use to run the tests from powershell. You’ll need to update the paths but something like this should work:
No, it’s not, and it’s working weird. I added this under my path: -Game -WINDOWED -LOG -NOSTEAM -ResX=800 -ResY=600 and it started to start UE itself with the selection of the project, instead of starting it…or should it be!?
It needs the project. you still have to build external to this as it doesn’t build the code.
When I had a look at one of your projects from before, this is how I tested it and it worked just fine.
Look what I got. If I don’t run the engine, everything works fine through the command line. If the engine was started at least once there is a delay with connection and nothing happens, it was just described in a separate cmd window. But the problem is different. I downloaded the project and decided to test it as in the lesson, the result is the same and the same does not create a server session. In the messages you can see that everything is created and even on a separate PC you can see the server and it is connected to it, but the level map itself is not loaded.