reepblue Posted January 6, 2019 Share Posted January 6, 2019 Hello, Is it possible to do a direct connection to another computer without Steam, or do both machines need Steam installed with their own accounts? I would like to test my net code within the same location to see if the right data is sending/receiving but the dependency with Steam kind of makes me uncertain. Thanks. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted January 6, 2019 Share Posted January 6, 2019 Yes, but not if the other computer is behind a router: https://www.leadwerks.com/learn?page=API-Reference_Object_Client https://www.leadwerks.com/learn?page=API-Reference_Object_Server 2 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted January 6, 2019 Author Share Posted January 6, 2019 To clarify, with "behind a router", I would have the two machines plugged into a router. Do you mean that I can't do this or you're just restating connecting to another PC on the internet is not possible without the aid of Steam? I simply just want to connect to another room in the house. I just want to understand what I'm getting myself into. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
carlb Posted January 6, 2019 Share Posted January 6, 2019 no it means they are on another router across internet to you router will not work. you setup is both on the same side of router is just a normal lan network 1 Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
reepblue Posted January 6, 2019 Author Share Posted January 6, 2019 Ok, thank you both. New to netcoding, so I'm really sorry for my lack of understanding on this topic. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
carlb Posted January 6, 2019 Share Posted January 6, 2019 dont worry about it, the best way to learn is to ask 1 Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
reepblue Posted January 6, 2019 Author Share Posted January 6, 2019 Just did a test with the default template. It seems like the PC without Steam was unable to create a Lobby. From what I understand the P2P class is Steam dependent but nothing suggests the Lobby is. It looks like I'd have to write my own system using the base client/server classes, which in that case I'll just use Turbo which as them as I'm interested in just sending packets over my network. Luckily, the Parameters for the P2P/Lobby is similar to the Client/Server. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
gamecreator Posted January 6, 2019 Share Posted January 6, 2019 3 hours ago, Josh said: Yes, but not if the other computer is behind a router: I thought this is the problem that NAT punch-through solved...? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 7, 2019 Share Posted January 7, 2019 56 minutes ago, gamecreator said: I thought this is the problem that NAT punch-through solved...? Yes, and it is using Steam's system. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
gamecreator Posted January 7, 2019 Share Posted January 7, 2019 Ah yes. Then all you need to do is implement a Steam-independent version. ? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2019 Share Posted January 9, 2019 We might in the future. The number of people making a multiplayer game is a niche and the number of people who want to do that outside of Steam is a smaller group. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted January 9, 2019 Author Share Posted January 9, 2019 I personally just want a client/server soultion in which the application hosts a server localy and then creates a client to connect to the server; kind of what Source does. I have to experiment to see if it's practical. I still only wish to make Single player games, but I don't want to be limited. Having a system like described above will make any game multiplayer with a flip of a switch. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
gamecreator Posted January 9, 2019 Share Posted January 9, 2019 2 hours ago, Josh said: We might in the future. The number of people making a multiplayer game is a niche and the number of people who want to do that outside of Steam is a smaller group. Seems like that's true. Multiplayer is definitely another level of challenge, with interpolation/prediction and whatnot stepping up the difficulty. A few weeks ago I tested my dungeon game with a friend online and it was fairly smooth with 1 enemy. Add 10 more and the client is unplayably laggy. But this is with no interpolation or prediction so there's hope... if I can figure out how to do it. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2019 Share Posted January 9, 2019 50 minutes ago, gamecreator said: Seems like that's true. Multiplayer is definitely another level of challenge, with interpolation/prediction and whatnot stepping up the difficulty. A few weeks ago I tested my dungeon game with a friend online and it was fairly smooth with 1 enemy. Add 10 more and the client is unplayably laggy. But this is with no interpolation or prediction so there's hope... if I can figure out how to do it. One suggestion would be to pack all those different enemies into one single message. There's no reason that would be any slower than just one. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
gamecreator Posted January 9, 2019 Share Posted January 9, 2019 Yup, already done. A dynamic packet is created based on the number of enemies alive in the level at any time. There is a lot of room for improvement here too though, even simple stuff like not sending the packet every frame (which starts to get into client prediction). Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 9, 2019 Share Posted January 9, 2019 Thanks jen. That looks like good reading. At this point I'm really hoping to find a dummy/beginner tutorial but maybe that doesn't exist for an advanced topic like this. This looked promising but got a bit overwhelming: http://www.gabrielgambetta.com/client-side-prediction-server-reconciliation.html Quote Link to comment Share on other sites More sharing options...
catch22 Posted January 11, 2019 Share Posted January 11, 2019 If you guys are doing networking, I highly recommend at least going through gaffer's write ups. He did the Titanfall series networking, and some other AAA titles, I think. https://gafferongames.com/ 2 Quote Coding for Christ. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.