Search the Community
Showing results for tags 'client'.
-
function Script:UpdateWorld() if(srvr == nil) then srvr = Server:Create(8888) srvr:Publish("GG2", "GoodGame",10) client = Client:Create() end cnt = client:CountServers("GG2",15) --print("Count of servers = ") --print(cnt) if window:KeyHit(Key.T) then aa = client:GetServer(0) bb = aa.addres print(bb) bb = "127.0.0.1" client:Connect(bb,8888) client:Send(1,"Connected") end msg = srvr:Update() if(msg ~= nil) then print("Msg =") print(msg) end end Hello! PLS help me. When writing such code and clicking on 'T', as a result, messages from the client do not come and the ip server is always equal to "nil". Please help me. Sorry in advance for maybe a stupid question. Output: msg = absent; bb = nil; cnt(if enable) = 1;
-
Hi everyone, so I'm committed to learning Leadwerks and producing at least one game via it. So I find myself here. I've been recommended to contact one of you for help, via skype lessons but that's kindof beside the point of this post. So I'm new to this whole thing, and I've been spending my time planning, and learning over the past couple of weeks. One of the things I've found myself needing as part of the first project is the ability to connect from one computer to another, but not local Lan. Is the method I'm thinking of called peer to peer? My program that I'm planning is kindof like having a pen and paper roleplaying game, where one person runs the rules, with all the monsters, combat etc as part of the system that he/she would run, then the other people are the players who would be in different locations and be able to connect to the host PC, so that they could see maps, counters and access their character sheets and such, all on the person who's running the game's computer over the net. What would I need to look at to learn how to include something like that please? I'm assuming it's something I'd have to program and isn't included as is in Leadwerks?