Urban Terror Forums: Protocol to connect Urban Server - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1

Protocol to connect Urban Server Rate Topic: -----

#1 User is offline   yogurtu Icon

  • Account: yogurtu
  • Joined: 06-January 13
  • Posts: 4

Posted 30 May 2013 - 06:09 PM

Hi..


I have an advanced question, I hope you can solve it:


The thing is that I am a developer, and I develop a full stats web server (like xlrstats) for urban that works very well by reading FULL LOG files that server outputs.

Now I would like to generate a simple EXE that communicates with Server Console exactly like Big Brother Bot does.
Is there any public protocol to contact server and send / receibe information that is being dispayed realtime on the server?


My intention is to show information realtime like displaying custom things on screen like
"3 kills in a row"
"player likes to lemming"
"player captured flag in 15 seconds"
"player is camping since 15 seconds"
etc..etc...


I know that B3 does this things, but I found very hard to configure it out.
I found more interesting to make myself a tool for this.



So If you can give me the protocol, I really apretiate it!
thanks!


Yogurtu.
(aka: parkour)

#2 User is offline   b1naryth1ef Icon

  • Account: b1naryth1ef
  • Country:
  • Joined: 01-August 12
  • Posts: 137

Posted 30 May 2013 - 07:02 PM

You could use the normal RCON protocol, (for an example implementation see https://github.com/b1naryth1ef/Q3Rcon). Another possible method is to use a custom server binary with stdin support and simply write to the stdin. Rcon is definitely easier however.
I break stuff and call it a feature

#3 User is offline   Terrorist Icon

  • Account: terrorist
  • Main tag: pwnz:
  • Country:
  • Joined: 28-February 10
  • Posts: 32

Posted 31 May 2013 - 01:08 AM

Read the .log, parse it and then, drop the information back to the server using rcon...

I recommend you to use B3 if you don't have programming skills....

#4 User is offline   yogurtu Icon

  • Account: yogurtu
  • Joined: 06-January 13
  • Posts: 4

Posted 31 May 2013 - 09:43 PM

View PostTerrorist, on 31 May 2013 - 01:08 AM, said:

Read the .log, parse it and then, drop the information back to the server using rcon...

I recommend you to use B3 if you don't have programming skills....




I have a lot of xperience programming, and i dont want to use b3. already have a parser and also a web that displays all the stats.

The only thing that I need is "how to send my msgs to RCON programatically?"



Thanks!

View Postb1naryth1ef, on 30 May 2013 - 07:02 PM, said:

You could use the normal RCON protocol, (for an example implementation see https://github.com/b1naryth1ef/Q3Rcon). Another possible method is to use a custom server binary with stdin support and simply write to the stdin. Rcon is definitely easier however.



Thanks!!!!!!!!!!
Seems very easy with that!

Wich version of phyton should I use?

#5 User is offline   b1naryth1ef Icon

  • Account: b1naryth1ef
  • Country:
  • Joined: 01-August 12
  • Posts: 137

Posted 02 June 2013 - 06:27 AM

View Postyogurtu, on 31 May 2013 - 09:43 PM, said:

I have a lot of xperience programming, and i dont want to use b3. already have a parser and also a web that displays all the stats.

The only thing that I need is "how to send my msgs to RCON programatically?"



Thanks!




Thanks!!!!!!!!!!
Seems very easy with that!

Wich version of phyton should I use?


Was written for 2.7, could be easily adapted to 3.x
I break stuff and call it a feature

bullet_loaderAdvertisement
Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942