Auto-connect
Moderator: Moderators
Auto-connect
I've been contemplating this for a while, but it's stumped me how to do it.
I'm hoping to have/make a script allowing you to simply put in a console command and an ip or address and it checks every second or so and asks the server the maxplayers and the players in then, if the players in are less than maxplayers then connect, otherwise wait. But i dont know how to make console commands or run scripts from the main menu, heck i dont know how to send a paket to the server asking Maxplayers/players
Any help or is this a fools errand?
I'm hoping to have/make a script allowing you to simply put in a console command and an ip or address and it checks every second or so and asks the server the maxplayers and the players in then, if the players in are less than maxplayers then connect, otherwise wait. But i dont know how to make console commands or run scripts from the main menu, heck i dont know how to send a paket to the server asking Maxplayers/players
Any help or is this a fools errand?
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
Yes with a 3rd prog yes, but since i'm not up on sending packets with any language and i dont trust my compiler i was hoping to do it with this.
So how would i run a script that checks if i'm connected or connecting and reconnects if i'm not? also how would i run a script when not in a map?
So how would i run a script that checks if i'm connected or connecting and reconnects if i'm not? also how would i run a script when not in a map?
Code: Select all
reconnecter:
while(isConnected != 1)
{
connect xxx.xxx.xxx : xxxx
wait 1
}
endModerator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
ohh u mean rpoggy? i thoguth u meant in script.
using a program is easy., i did somethign like that a long time ago and wudnt be v.hard
i still wokrin on my admin mod idea.
Phil(sfx) also was wokrin on something to watch a server like u said just last night actualy.
guess it cud be addapted to connect u.
using a program is easy., i did somethign like that a long time ago and wudnt be v.hard
i still wokrin on my admin mod idea.
Phil(sfx) also was wokrin on something to watch a server like u said just last night actualy.
guess it cud be addapted to connect u.
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
I've already pointed a solution to you. Qstat + a simple perl script or a little program and you've got a working solution.
Tried Qstat rook, it didnt work. i tried three servers with MOH setting and it failed to read them.I've already pointed a solution to you. Qstat + a simple perl script or a little program and you've got a working solution.
Yes you told me how and i looked up at least three different things i had to do, but apparently the #import wont work and a couple other preprocessor things. i need a diff compiler is all.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Try qstat -gps SERVER_IP:PORT . Works for me.
What I meant was like:
or something. Then parse the program's output.
What I meant was like:
Code: Select all
SYSTEM("qstat -gps " + serverip + ":" + serverport);Did. Made a new shortcut and called it from cmdprompt and used this line:
<path> -gps 69.93.129.87:12203
<path> -gps mohpub.violentricity.net
<cmdlinepath> -gps 69.93.129.87:12203
<cmdlinepath> -gps mohpub.violentricity.net
Neither worked, as i recall it waited and tried bit, then gave me an error like
"server not responding"
or somesuch.
<path> -gps 69.93.129.87:12203
<path> -gps mohpub.violentricity.net
<cmdlinepath> -gps 69.93.129.87:12203
<cmdlinepath> -gps mohpub.violentricity.net
Neither worked, as i recall it waited and tried bit, then gave me an error like
"server not responding"
or somesuch.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:

