SRCDS Steam group


Need help with pushing players
#1
I have two servers. we are going to call them A and T for now. I want to push players from A to T. so I can shut Adown for maintence. then I want to push them back to A after Im done

Is there anyway I can do this? any help would be appriciated.
Reply
#2
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#3
Mooga.. what part of that readme will help you help him?.
Reply
#4
Mainly which game and the OS.
afaik, server forwarding doesn't work with Orange Box games (TF2, L4D, L4D2)
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#5
Oh. im sorry. Garrysmod. Windows.
Reply
#6
(05-30-2010, 12:10 PM)austech360 Wrote:  Oh. im sorry. Garrysmod. Windows.

lua_run for k,v in pairs(Player.GetAll()) do v:RunConCommand("connect ip:port /n") end

Do that in the server console.

Also no, that probably wont work because I'm pretty sure I got the lua coding wrong.. but thats basically what you need to do.
Actually this would probably work too:

lua_run for k,v in pairs(Player.GetAll()) do v:SendLua("connect ip:port") end

Again though not sure if it will work or not as I haven't tested it.
Reply
#7
(05-30-2010, 07:19 AM)austech360 Wrote:  I have two servers. we are going to call them A and T for now. I want to push players from A to T. so I can shut Adown for maintence. then I want to push them back to A after Im done

Is there anyway I can do this? any help would be appriciated.

(05-30-2010, 01:36 PM)Darksoul Wrote:  
(05-30-2010, 12:10 PM)austech360 Wrote:  Oh. im sorry. Garrysmod. Windows.

lua_run for k,v in pairs(Player.GetAll()) do v:RunConCommand("connect ip:port /n") end

Do that in the server console.

Also no, that probably wont work because I'm pretty sure I got the lua coding wrong.. but thats basically what you need to do.
Actually this would probably work too:

lua_run for k,v in pairs(Player.GetAll()) do v:SendLua("connect ip:port") end

Again though not sure if it will work or not as I haven't tested it.
Wow. Ok. uhh. Now. Im a moron. How would I go about this? I have evovle admin mod. Is there a command I could type in console to push a player to a different server?
Reply
#8
(05-30-2010, 01:51 PM)austech360 Wrote:  
(05-30-2010, 07:19 AM)austech360 Wrote:  I have two servers. we are going to call them A and T for now. I want to push players from A to T. so I can shut Adown for maintence. then I want to push them back to A after Im done

Is there anyway I can do this? any help would be appriciated.

(05-30-2010, 01:36 PM)Darksoul Wrote:  
(05-30-2010, 12:10 PM)austech360 Wrote:  Oh. im sorry. Garrysmod. Windows.

lua_run for k,v in pairs(Player.GetAll()) do v:RunConCommand("connect ip:port /n") end

Do that in the server console.

Also no, that probably wont work because I'm pretty sure I got the lua coding wrong.. but thats basically what you need to do.
Actually this would probably work too:

lua_run for k,v in pairs(Player.GetAll()) do v:SendLua("connect ip:port") end

Again though not sure if it will work or not as I haven't tested it.
Wow. Ok. uhh. Now. Im a moron. How would I go about this? I have evovle admin mod. Is there a command I could type in console to push a player to a different server?

Type it into the server console and hit enter.
Reply
#9
[Input]
lua_run for k,v in pairs(Player.GetAll()) do v:RunConCommand("connect austinserv
er.mine.nu:27016 /n") end

[Output]
> for k,v in pairs(Player.GetAll()) do v:RunConCommand("connect austinserver.min
e.nu:27016 /n") end...
:1: attempt to index global 'Player' (a function value)
Reply
#10
Try the SendLua one, and put the IP in instead of the domain name.
Reply
#11
(05-30-2010, 01:57 PM)Darksoul Wrote:  Try the SendLua one, and put the IP in instead of the domain name.

got this back

Code:
lua_run for k,v in pairs(Player.GetAll()) do v:SendLua("connect 99.90.224.198:27
016") end

> for k,v in pairs(Player.GetAll()) do v:SendLua("connect 99.90.224.198:27016")
end...
:1: attempt to index global 'Player' (a function value)
Reply
#12
Is there anyone on the server and is it the server console or client console?.

Oops, try a lowercase P. So like this:

lua_run for k, v in pairs(player.GetAll()) do v:SendLua("connect ip:port") end
Reply
#13
its srcds console. on the server computer. Im in the server
Ok. wierd. I got a lua error on the client computer. said

Code:
:1: malformed number near '99.90.224.198'
Reply
#14
lua_run for k, v in pairs(player.GetAll()) do v:SendLua("connect ip".. : .."port") end

I'm not positive though. Sorry Sad.
Reply
#15
you see the numbers I entered? Put those in for me? Im a bit confused now. I assume like this.

lua_run for k, v in pairs(player.GetAll()) do v:SendLua("connect 99.90.224.198".. : .."27016") end
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)