Urban Terror Forums: UrTSB - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (9 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • This topic is locked

UrTSB Rate Topic: ***** 5 Votes

a Urban Terror Server Browser

#31 User is offline   Sorcerer Icon

  • Account: sorcerer
  • Country:
  • Joined: 25-July 10
  • Posts: 25

Posted 12 August 2010 - 07:09 PM

Yes, your right. I added an option to control this behaviour (default will be false).

#32 User is offline   PyroBor Icon

  • Account: pyrobor
  • Country:
  • Joined: 28-February 10
  • Posts: 24

Posted 12 August 2010 - 07:57 PM

I have one more small feature request.
F5 key could be shortcut to "Refresh" just enter is to "Connect" in svn version.
[img]http://cache.www.gam...9A15-FFCC00.png[/img]
It is all about fun!

#33 User is offline   Glennz Icon

  • Account: glennz
  • Country:
  • Joined: 02-March 10
  • Posts: 100

Posted 13 August 2010 - 08:23 AM

It looks really neat but I have one problem.
The window doesn´t fit on my screen, because I am using an Asus EEE pc netbook.
Could you try tweaking the gui so it fits on smaller screens? :happy:

#34 User is offline   Sorcerer Icon

  • Account: sorcerer
  • Country:
  • Joined: 25-July 10
  • Posts: 25

Posted 13 August 2010 - 04:38 PM

The small one with 800x600?
The filter needs to be rearranged in order to make the window more shrinkable in width.
I'll think about a solution.

#35 User is offline   Glennz Icon

  • Account: glennz
  • Country:
  • Joined: 02-March 10
  • Posts: 100

Posted 14 August 2010 - 05:44 AM

View PostSorcerer, on 13 August 2010 - 04:38 PM, said:

The small one with 800x600?
The filter needs to be rearranged in order to make the window more shrinkable in width.
I'll think about a solution.


Ehh.. it´s the 10.1 inch version. :P

bullet_loaderAdvertisement

#36 User is offline   PyroBor Icon

  • Account: pyrobor
  • Country:
  • Joined: 28-February 10
  • Posts: 24

Posted 14 August 2010 - 09:26 AM

Removing servers on recent tab does't work for me. I am using svn source. I run the urtsb in shell and got this:
$ urtsb
2010-08-14 10:17:52,320 INFO    [GuiController] executeFavoritesLoading called...
2010-08-14 10:17:52,381 INFO    Thread:Coordinator - received serverlist_loaded signal. Queuesize is 9
2010-08-14 10:17:52,481 INFO    Thread:Worker_8 notifying the coordinator thread that the queue processing is finished
2010-08-14 10:17:52,482 INFO    Thread:Coordinator - received the finished signal
2010-08-14 10:17:54,601 INFO    [GuiController] executeRecentServersLoading called...
2010-08-14 10:17:54,602 INFO    Thread:Coordinator - received serverlist_loaded signal. Queuesize is 16
2010-08-14 10:17:54,765 INFO    Thread:Worker_6 notifying the coordinator thread that the queue processing is finished
2010-08-14 10:17:54,765 INFO    Thread:Coordinator - received the finished signal
Traceback (most recent call last):
  File "/opt/urtsb/src/recenttab.py", line 163, in onRemoveRecentClicked
    gui.removeRecent(server)
  File "/opt/urtsb/src/guicontroller.py", line 113, in removeRecent
    + 'adress ' + server.getaddress())
AttributeError: 'str' object has no attribute 'getaddress'

[img]http://cache.www.gam...9A15-FFCC00.png[/img]
It is all about fun!

#37 User is offline   Sorcerer Icon

  • Account: sorcerer
  • Country:
  • Joined: 25-July 10
  • Posts: 25

Posted 14 August 2010 - 09:54 AM

thx, fixed.

#38 User is offline   Sorcerer Icon

  • Account: sorcerer
  • Country:
  • Joined: 25-July 10
  • Posts: 25

Posted 14 August 2010 - 12:43 PM

SVN Revision 100 ! :biggrin: time for a new release: 0.3 is uploaded.

http://code.google.c.../downloads/list

Highlights:
  • country flag column displaying the location as a small flag icon
  • RCON Feature


Full list of changes:
  • added option to disable the update of the selected server row when refresh button is clicked
  • remember filter/query parameters
  • some "under the hood" code improvements
  • fixed a bug that prevented the lock-icon to be displayed on the "Recently Played" tab
  • added feature to display location of the server as a small flag icon
  • handle players with blank names as UnnamedPlayer?
  • applied patch to make UrTSB work on windows (contributed by Courgette from the urbanterror.info forums)
  • server connect on double-click / enter pressed and F5 key refreshes serverdetails
  • playerlist and server var list are now sortable
  • now launching UrT in a subprocess ( to avoid that UrTSB is blocked while UrT is running)
  • new feature: RCON window for remote server administration
  • added contextmenus to the serverlist and the playerlist


#39 User is offline   Courgette Icon

  •   community dev   
    B3 bot developer
  • Account: courgette
  • Main tag: [B3]
  • Country:
  • Joined: 09-June 09
  • Posts: 204

Posted 14 August 2010 - 12:48 PM

Hi, below is a patch to make this work under windows



Index: src/guicontroller.py
===================================================================
--- src/guicontroller.py	(revision 101)
+++ src/guicontroller.py	(working copy)
@@ -27,6 +27,7 @@
 import shlex
 import subprocess
 import thread
+import os
 
 
 
@@ -311,10 +312,12 @@
 		executable = config[cfgkey.URT_EXE]
 		path = config[cfgkey.URT_EXE_PATH]
 		additionalcommands = config[cfgkey.URT_EXE_PARAMS]
-                
-        cmd = path + executable + ' + connect ' + server.getaddress()
+        
+        if not os.path.exists(os.path.join(path, executable)):
+            Log.log.warning('path to Urban Terror unreachable : ' + os.path.join(path, executable))
+        params = ' +connect ' + server.getaddress()
 		if server.needsPassword():
-            cmd = cmd + ' + password ' + server.getPassword()
+            params = params + ' +password ' + server.getPassword()
 			if server.getRememberPassword():
     			if server.isFavorite():
         			fm.saveFavorites()
@@ -322,20 +325,20 @@
     			server.setPassword('')
 		
 		#add additional params    
-        cmd = cmd + ' ' + additionalcommands
+        params = params + ' ' + additionalcommands
 		
 		
 		#add server to recent servers list
 		fm.addRecent(server)
 		
 		
-        Log.log.info('launching UrT with cmd = ' + cmd)
+        Log.log.info('launching UrT with cmd = ' + os.path.join(path, executable) + ' ' + params)
 		#use shlex.split to turn the command string into a sequence
 		#that works with subprocess.popen
-        args = shlex.split(cmd)   	
+        args = shlex.split(executable + ' ' + params)   	
 		
 		#finally execute the command 
-        self.urt_process = subprocess.Popen(args)
+        self.urt_process = subprocess.Popen(args, executable=os.path.join(path, executable), cwd=os.path.normpath(path))
 		
 	def send_rcon_command(self, server, command, console):
 		"""



#40 User is offline   Sorcerer Icon

  • Account: sorcerer
  • Country:
  • Joined: 25-July 10
  • Posts: 25

Posted 18 August 2010 - 03:24 PM

Thx. Patch is applied.
I reactivated an old Qemu image to test UrTSB under Windows and it seems to work.
But I have some problems to get py2exe work. It creates a .exe file but when executing it, it doesn't find the cairo module (although the dll for cairo was found and included in the dist dir).
Maybe someone with experience with py2exe and PyGTK can give me a hint.

  • (9 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • This topic is locked

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

bullet_disabledSponsored link
https://www.urbanterror.info/members/donate/


Copyright © 1999-2019 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