Page 1 of 3

UnityLobby

Posted: 19 Mar 2007, 12:41
by hollowsoul
Websvn http://unity.the-unknown.org/websvn/lis ... h=%2F&sc=0

Latest developmental version
Latest Tagged Release


Requirements are
Python 2.4 (or higher)
Python Twisted
Python Imaging Library (PIL)

Backends for storing map / mod cache (need 1 of these)
Python Element Tree ( is packaged with python-2.5 for 2.4 = seperate package)

Frontends (need 1 of these)
GTK-2.10 + PYGTK-2.10


Spring
Unitysync compiled with python bindings (scons unitsync)
Copy unitsync.so to Unity/Unitsync/ directory


To run just type
/path/to/Unity/Unity.py

For more info go to
Unity Lobby Forums

Posted: 20 Mar 2007, 00:33
by 10053r
Bug report (on Rev 72):

Host launches battle first time = all good.
Host launches battle second time = no go.

Tabs at bottom don't work in 1024x768. They get covered up by other elements.

"Host a game" menu item does nothing, and isn't available from the menu bar when I first logged in.

Experienced very broken alliances. In a 3v3, I could start anywhere, and see 5 commanders. Not sure how duplicable this is, but I don't want to try since it ruins games for others. Got sync errors immediately, but those might have been related to the broken alliances.

Keep up the good work!!! My overall first impression is that it is very clean, and looks MUCH better than the old version.

Posted: 20 Mar 2007, 20:16
by FoeOfTheBee
moderator commands don't seem to work.
Things I start with / just appear in the lobby like normal chat.

Lookin' good though.

Posted: 20 Mar 2007, 20:19
by FoeOfTheBee
Auto scrolling seems to stop arbitrarily.
It would be nice if tabs flashed when new text appeared.

Posted: 20 Mar 2007, 20:21
by BrainDamage
not to sound harsh, but hollowsoul repeated few times he prefers to get bugreports in his own forum:

http://www.thebestforumintheworld.com/i ... owforum=24

Posted: 20 Mar 2007, 20:43
by 10053r
I'd prefer not to sign up for a separate forum just for unitylobby. I'm helping his development by giving him bug reports. If he doesn't want them, I'm ok with that. But since he wants his own forum, I say the burden falls on him to check both (or he can let people post anonymously to the other forum).

Posted: 20 Mar 2007, 22:37
by iamacup
10053r wrote:I'd prefer not to sign up for a separate forum just for unitylobby. I'm helping his development by giving him bug reports. If he doesn't want them, I'm ok with that. But since he wants his own forum, I say the burden falls on him to check both (or he can let people post anonymously to the other forum).
spambotbbqpwn

Posted: 20 Mar 2007, 23:12
by hollowsoul
Maybe cause i dont want all posts to be condensed into 1 thread.
i.e follow up on bug(s) in a thread
Features requests in a seperate thread.
That wont happen here, and if i request a seperate section for UnityLobby that will unlease a whole can of worms

Mainly it makes my life a hell of alot easier,
Not to much to ask when taking rather spend more time to coding UnityLobby.
Note i may fix bugs ( i see & remember to fix later on) that are reported here, but havent replied to them.

edit AutoScrolling
If u click with cursor or select text. It will hold there on the text u selected
To get auto-scrolling to work again scroll to bottom and click at end of text or under the text last entered.
Will eventually add support for when u scroll to bottom for it to detect it and auto-scroll. But got bigger fish to fry first atm

Posted: 23 Mar 2007, 00:00
by Rudirogdt
how to download websvn stuff ?

Posted: 30 Mar 2007, 21:44
by hollowsoul
Small screenshot of new version about to commit & add to tagged checkout.
Showing off displaying custom map starting positions.
Image

Posted: 30 Mar 2007, 22:45
by smoth
this runs in windoze as well?

Posted: 30 Mar 2007, 23:34
by hollowsoul
Not atm, and no plans for anytime soon.

It could with some easy python coding.
Basicly need to ready registry to find out where spring is installed.
Need a unitsync.so compiled with bindings for python 2.4 & 2.5
So can detect python version installed & load the correct unitsync.so
Add os platform detection & change where to store UnityLobby files if os = windows,

Except for getting unitsync.so compiled with python bindings it wouldnt be to hard.

But to make easier for windows users, converting the python scripts into a exe would be best.
I barely got time to work on this atm, so only concretating on Linux / Mac OSX atm.

Although any python coders feel like coding above ?
Someone compile the 2 versions of unitsync.dll with python bindings ?
Anyone feel like porting GTK-2.10 -> GTK-2.6 only need to code gtk.Dialogs atm ?

Posted: 01 Apr 2007, 21:58
by Kaot
Hi Hollowsoul,

i just checked out your rewritten UnityLobby and it worked instantly after i installed the elementtree and Python Twisted ;)

Great Work it was the first Time i could see other People online. ;)
The sad Thing is, that i played two Games and got out of Sync in both Games after a Minute or so.

But the Lobby works already very good for me. ;)

Great Work!

Posted: 02 Apr 2007, 18:59
by Rudirogdt

Posted: 06 Apr 2007, 12:11
by Kaot
Might it be that the rewritten UnityLobby only works with the spring-svn Trunk Version?

I just installed the spring 0.74-r3 Version and started the UnityLobby.
But if i connect to the Official Server the last Messages i get are the following:

[Connecting to taspringmaster.clan-sy.com Port 8200 at Fri Apr 6 11:57:07 2007]
[Connected at Fri Apr 6 11:57:07 2007]

After this nothing more happens, no login Dialog appears where i can type in my Username and Password, although i'm able to ping the Masterserver.

Posted: 06 Apr 2007, 14:04
by FLOZi
Kaot wrote:Might it be that the rewritten UnityLobby only works with the spring-svn Trunk Version?

I just installed the spring 0.74-r3 Version and started the UnityLobby.
But if i connect to the Official Server the last Messages i get are the following:

[Connecting to taspringmaster.clan-sy.com Port 8200 at Fri Apr 6 11:57:07 2007]
[Connected at Fri Apr 6 11:57:07 2007]

After this nothing more happens, no login Dialog appears where i can type in my Username and Password, although i'm able to ping the Masterserver.
Main game server is down atm

Posted: 07 Apr 2007, 21:06
by genblood
my linux skills aren't that great ... :shock:

I just installed the latest spring on my Gentoo box with
the the ebuilds. Is there a ebuild for a lobby or unity?

Posted: 08 Apr 2007, 19:10
by BrainDamage
fisrt make usre you have the following packages:

python
python twisted
python imaging (also called PIL)
pygtk
python element tree (this is needed if your python version is 2.4)

to download, open a console & type:

Code: Select all

svn -co https://unity.the-unknown.org/trunk/Unity
to run it. go in the directory Unity & type

Code: Select all

./Unity.py
that should be it

if it complains that you don't have unitsync.so, you can use mine:

http://www.thebestforumintheworld.com/i ... post&id=34

extract it into Unity/client/

Posted: 09 Apr 2007, 13:21
by hollowsoul
Just a small update.
New commit(s) in svn,

Major overhaul of storing variables (may have broken something if i forgot to change some)

Ability to update map / mod / bot caches. When running UnityLobby.
i.e u can download & cp new map to right folder. Then update cache

Started on single player & hosting code (not finished / working yet)

Begun replacing custom threading class with python twisted. Only got 1 more instance of custom threading class to replace & can nuke it. Less code for me :)

If u got time plz help test thx.

Posted: 09 Apr 2007, 22:21
by Kaot
I want to help testing. ;)

I just have started Unity.py and got the Errors posted below.
Ok i close the Unity.py.
After i removed the whole .unity Directory, located in my Homedirectory, i started Unity.py again an no Error occurs anymore. ;)
My Nickname and Password was gone too, but i still know it;)
It also needed some Time to cache all the Maps again, but that's ok.
I backupped old the .unity Directory, so i can test upcoming Changes of your LobbyClient with this error generating Content, if you like.

Code: Select all

Traceback (most recent call last):
   File "/home/Kaot/Quarantäne/Spiele/Spring/Unity/UnitSync/Unitsync_Update.py", line 125, in ?
      cache.updateBots()
  File "/home/Kaot/Quarantäne/Spiele/Spring/Unity/UnitSync/Unitsync_Update.py", line 101, in updateBots
     self.cache.updateBots(bot)
  File "/home/Kaot/Quarantäne/Spiele/Spring/Unity/UnitSync/Unitsync_Cache.py", line 134, in updateBots
     self.root_element.remove(parent_element)
  File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line 306, in remove
    assert iselement(element)
AssertionError
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/twisted/internet/gtk2reactor.py", line 175, in run
    self.__run()
  File "/usr/lib/python2.4/site-packages/twisted/internet/gtk2reactor.py", line 216, in simulate
    self.runUntilCurrent()
  File "/usr/lib/python2.4/site-packages/twisted/internet/base.py", line 561, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.4/site-packages/twisted/internet/task.py", line 108, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 107, in maybeDeferred
    result = f(*args, **kw)
  File "/home/Kaot/Quarantäne/Spiele/Spring/Unity/Lobby/GTK-2.10/Initialize.py", line 190, in UpdateCache
    self.Classes['Battle'].UpdateBotList()
  File "/home/Kaot/Quarantäne/Spiele/Spring/Unity/Lobby/GTK-2.10/Battle/Battle.py", line 806, in UpdateBotList
    self.bot_list = self.parent.Classes['Cache'].getBots()
  File "/home/Kaot/Quarantäne/Spiele/Spring/Unity/UnitSync/Unitsync_Cache.py", line 145, in getBots
     for node in parent_element:
exceptions.TypeError: iteration over non-sequence