Search the Community
Showing results for tags 'network'.
-
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;
-
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! I bought a professional edition and for 3 days I've been trying to understand how it works. 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 ! I would suggest that added commands to C ++, I would can add scripts LUA in an entity whatever I define for a command, example> I created a simple box, I can link a script LUA in the box with a command like ( entity:loadScript (EntityID, "LUASCRIPTPATH") or something like this ..... and also like that added commands to connect to a server (TCP or UDP) and receive messages > string, integer and float and too send messages > string , integer and float.... would be very useful ! thanks by attention
-
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?