Atmosaero Posted January 26 Share Posted January 26 Is it currently possible to create a multiplayer game using Lua? 1 Quote Link to comment Share on other sites More sharing options...
Leag Posted January 26 Share Posted January 26 You should be able to make it with Steamworks https://www.ultraengine.com/learn/Steamworks?lang=lua Quote Link to comment Share on other sites More sharing options...
Solution Canardia Posted January 26 Solution Share Posted January 26 Yes, you can use the Steam API in Ultra with Lua, with it you can send and receive any data between players or server: https://www.ultraengine.com/learn/Steamworks_CreateLobby?lang=lua Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Dexter Posted January 31 Share Posted January 31 Beware steamworks lobby is P2P only. This made me curious about something else tho, it appears lua's require doesnt work? I was trying it with enet, eg `require "enet"` and it blows up. If require isnt working, that would be nice to become available so the reams of existing solutions (eg, love community) could be used I did look at the Plugin architecture but that looks unrelated Quote Link to comment Share on other sites More sharing options...
Josh Posted January 31 Share Posted January 31 2 hours ago, Dexter said: Beware steamworks lobby is P2P only. This made me curious about something else tho, it appears lua's require doesnt work? I was trying it with enet, eg `require "enet"` and it blows up. If require isnt working, that would be nice to become available so the reams of existing solutions (eg, love community) could be used I did look at the Plugin architecture but that looks unrelated Lua DLL modules need to be placed in the /Modules folder. Lua code file modules should be placed in /Source. Enet is nice to use but it doesn't support NAT punch-through, so it might not be very useful for modern networked games. The P2P system is pretty nice because when the lobby owner leaves, ownership gets transferred to another player. This acts like a dedicated server without needing to program and maintain 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...
Dexter Posted January 31 Share Posted January 31 1 hour ago, Josh said: Lua DLL modules need to be placed in the /Modules folder. Lua code file modules should be placed in /Source. Enet is nice to use but it doesn't support NAT punch-through, so it might not be very useful for modern networked games. The P2P system is pretty nice because when the lobby owner leaves, ownership gets transferred to another player. This acts like a dedicated server without needing to program and maintain one. ahh great, I had dlls next to exe, thanks. Fair point on ENet, just throwing out there are alternatives 2 Quote 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.