UnityLobby

UnityLobby

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

UnityLobby

Post 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
Last edited by hollowsoul on 24 Apr 2007, 17:56, edited 2 times in total.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post 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.
User avatar
FoeOfTheBee
Posts: 557
Joined: 12 May 2005, 18:26

Post by FoeOfTheBee »

moderator commands don't seem to work.
Things I start with / just appear in the lobby like normal chat.

Lookin' good though.
User avatar
FoeOfTheBee
Posts: 557
Joined: 12 May 2005, 18:26

Post by FoeOfTheBee »

Auto scrolling seems to stop arbitrarily.
It would be nice if tabs flashed when new text appeared.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post 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
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post 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).
User avatar
iamacup
Posts: 987
Joined: 26 Jun 2006, 20:43

Post 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
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post 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
Rudirogdt
Posts: 82
Joined: 18 May 2006, 18:00

Post by Rudirogdt »

how to download websvn stuff ?
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Small screenshot of new version about to commit & add to tagged checkout.
Showing off displaying custom map starting positions.
Image
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

this runs in windoze as well?
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post 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 ?
User avatar
Kaot
Posts: 23
Joined: 10 Mar 2007, 02:11

Post 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!
Rudirogdt
Posts: 82
Joined: 18 May 2006, 18:00

Post by Rudirogdt »

User avatar
Kaot
Posts: 23
Joined: 10 Mar 2007, 02:11

Post 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.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post 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
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Post 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?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post 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/
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post 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.
User avatar
Kaot
Posts: 23
Joined: 10 Mar 2007, 02:11

Post 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
Post Reply

Return to “Linux”