Urban Terror Forums: Few questions related to new 4.2 server binary - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1

Few questions related to new 4.2 server binary Rate Topic: -----

#1 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 08 August 2012 - 06:12 PM

Hi guys!
So I'm experimenting with the 4.2 beta release. Running a server on my dedicated box etc.

First question, is any of the source code for the server binary open to the public? I am assuming not.

Another observation, I am able to use the 4.1-style dedicated server binaries with 4.2 with only one small modification. I upped the protocol version (a constant defined in a header file) from 68 to 70 since that's what the clients are expecting now. It magically works! I'm actually surprised it works since I assume a newer protocol means new way of passing information back and forth. But so far no problems. Since I have a few "addons" and "bugfixes" in my old 4.1-style dedicated binaries it would be nice to either get the 4.2 dedicated binary source code (probably a "no") or know that the 4.1-style dedicated binaries will work after the protocol up.

The only fiddly bit that I experienced in setting up a server was an overflow in the server userinfo string, that stores all the server settings for purposes of the "getinfo" and "getstatus" queries. Since the new auth server cvars take up space in the server userinfo string, there is less space available now. So I had to fiddle with shortening some of the strings such as download server, team names, and other things to make it fit. At least I had this problem with my 4.1-style dedicated binary but I'm pretty sure the userinfo constraint hasn't changed with 4.2, unless I'm wrong.

I'm glad that Frozen Sand has decided to make incremental improvements to UrT. Thank you!

#2 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 09 August 2012 - 01:14 AM

OK thanks to Nitro I managed to find this:

https://github.com/B...banTerror-4.git

I assume this is the "official" code to generate Quake3-UrT-Ded.i386.

Could someone please tell me which ioquake3 this is based off of?
Is this just a continuation of the UrT-4.1 code, i.e. ioUrbanTerrorSource_2007_12_20.zip (revision 1240 of ioquake3 plus UrT-specific changes), or was a new version of ioquake3 adopted as the base?

#3 User is offline   undead Icon

  • Account: undead
  • Joined: 06-June 10
  • Posts: 199

Posted 09 August 2012 - 02:14 AM

View PostRambetter, on 09 August 2012 - 01:14 AM, said:

OK thanks to Nitro I managed to find this:

https://github.com/B...banTerror-4.git

I assume this is the "official" code to generate Quake3-UrT-Ded.i386.

Could someone please tell me which ioquake3 this is based off of?
Is this just a continuation of the UrT-4.1 code, i.e. ioUrbanTerrorSource_2007_12_20.zip (revision 1240 of ioquake3 plus UrT-specific changes), or was a new version of ioquake3 adopted as the base?

Rambetter,

IIRC they originally were using the latest ioquake3. Barbatos had a client that started against upstream ioquake3. I made a number of comments about how to improve it. Then suddenly that client was removed from github and they started working on this old 2007 code again. So yes, this is a continuation on ioUrbanTerrorSource_2007_12_20 (aka SVN r1142 + misc patches from later SVN revisions). You can verify this because Barbatos included the .svn/ metadata in a git repository...

You may want to review the 4.2 code before running the binary. The auth code allows for arbitrary command execution via system() calls. This is not sanitized or checked in any manner. They expose this as an ioquake3 syscall so the QVM can call it.

Grep for Sys_StartProcess.

https://github.com/B...nix/unix_main.c
https://github.com/B...in32/win_main.c
https://github.com/B...erver/sv_game.c
https://github.com/B.../client/cl_ui.c

Edit: Looks like they are going to move to the latest ioquake3. Yay! Hopefully they remove Sys_StartProcess in the process of moving to the latest ioquake3.

http://www.urbanterr...342#entry332342

This post has been edited by undead: 09 August 2012 - 02:45 AM


#4 User is offline   Nitro Icon

  •   QA member   
  • Account: nitro
  • Main tag: |P|
  • Country:
  • Joined: 15-March 10
  • Posts: 1,133

Posted 13 August 2012 - 09:45 PM

looking forward to testing your hard work ;) your binaries make hosting urt servers easy and keeping myself sane in the process :P
Lian Li pc-o11dw Der 8auer Edition · Gigabyte x570 Aorus Xtreme · AMD Ryzen 9 5950x 16-Core
32GB DDR4 3800MHz CL16 · 2x 1TB Samsung NVMe RAID 0 · 16GB Radeon RX 6900XT Liquid Cooled

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