Search the Community
Showing results for tags 'thenet'.
-
Hey, I have a quick question about the networking behind DST. (It seems like @V2C or PeterA talk about networking more than most devs) My brother and I made a mod that allows people to change client mods in-game, and it reconnects people back to the server. We do this in our modmain: GLOBAL.JoinServer(GLOBAL.TheNet:GetServerListing()) Before this update, the world didn't pop up a screen saying "Duplicate Connection" when we used this line. My question is whether you guys may have changed a check in the backend that we can't see (like in TheNet), because now our mod is pretty difficult to adapt... (We have a way of retrieving the server's IP address and using TheNet:StartClient, but we're still figuring out how to make it work properly since it has worked in the past...)
-
Hey everybody, my brother and I are currently attempting to modify mods from inside a server(so far non-dedicated). We are already capable of making a modified type of modsscreen screen appear in the game and are able to enable and disable mods. Whenever we enable/disable mods in-game(so far only single player works, others crash when joining), the game will save and restart and appear as if the mods have been changed normally, but it does not seem like it is updating the list of mods internally. Someone looking at the server details from another computer will only see the mods that the world first loaded with. For example, if a server starts with Combined Status enabled and we disable it, the world will no longer show it, but the mods list and scoreboard will still show Combined Status as though it were enabled. We are currently searching for a way to update the list of enabled mods everywhere in the game. We tried to find functions that update mod listings for a server and found one in playerstatusscreen.lua in scripts/screens that might be useful called TheNet:GetServerModsDescription(). (Btw we know something about saving the KnownModIndex but it doesn't update anything. Our end goal is make changing mods as easy as if you were outside the server) Question: So right now the question is whether there are any functions in TheNet (which is not defined in any of the game files) that could help us refresh the mod listing on every level to make sure changes are global. A follow up question could be where a list of TheNet functions is located. We know it is related to the C++ that runs in the background so this may be a bit of a challenge. Please check out the modmain on our git repository; it's really short: https://github.com/rawii22/IngameModManager
-
Someone know method like GLOBAL.Networking_Announcement('Heroes Never Die!',{0,1,0,0.1},'mod') But working for all players. I mean this command should be executed on all players' PCs or equal command but with TheNet: And is there lua sources of TheNet: or its built-in in some of DLLs?