Search the Community
Showing results for tags 'library'.
Found 3 results
Hey everyone! I've created a library that sends data between the clients without server code. This is very useful when you want to create a client mod and send something to other players with your mod. First of all you need to download the library from here: Then place it into your mod folder(MOD/scripts/tools). local ClientData = require("tools/client_data")(modinfo.name) And now you can create a command for sending: ClientData:AddCommand(name, Fn) --Fn arguments: caller (guid, userid, name, prefab), ... And send your command with: ClientData:SendCommand(name, ...) For example there's my mod that prints something for other players that use this mod: local _G = GLOBAL local require = _G.require local ClientData = require("tools/client_data")(modinfo.name) ClientData:AddCommand("test", function(entity, str) print("TEST", str) end) _G.TheInput:AddKeyDownHandler(_G.KEY_F1, function() ClientData:SendCommand("test", math.random()) end)
VinchenzoJackal posted a topic in [Don't Starve] Art, Music & LoreI played this game during the BETA, long before it was available to everyone on Steam... thus, long before the tons of characters and content, and the purchasable expansion, and before the whole multiplayer thing was even mentioned, let alone thought possible. I was always obsessed with studying and collecting information about a strange world that was exotic, deadly, and unexplored. In the time I've played I've discovered many unique things about quite a few of the characters, creatures, relics, and then some. I thought I'd make this thread simply to put together everything I'd discovered. Other people are also welcome to add things to this thread, but please keep theories and rumors to a low, it would be nice to just have things we have complete certainty on, rather than people making up stuff and then arguing because no side has proof on what is true. So... this thread will have me, and others, posting what has been discovered as fact about the odd dimension the player's character is sucked into, and what exactly is discovered about each character, as well as each form of life and mysterious object found. We might eventually run out of facts, and need to rely on updates as well as things mentioned from Klei. We also may eventually need to make use of even more cryptic methods of learning, such as the rare symbols and letters seen in every trailer Klei makes and hides them in. Hopefully we will spread light on things. And please... if something is a spoiler to a critical part of the storyline and or game progression, make sure that you warn people of it being so and properly make it as such.