Page 33 of 41

Posted: 26 Jan 2007, 14:26
by own3d
Brain Damage wrote:thanks for the reply, i'm currently using a binary build of gtk, i'll try to download from sources, look for the compile flags and possibly try to fix the problem without for you to change the file format; i can understand the reasons why you want to keep the svg format.

thanks again, i'll let you informed about the results of my tries, they might take few days.
Something just occurred to me for gtk to support SVG you need cairo

So get the following libaries:


libcairo
libcairo-dev

and probably these too

python-cairo
python-cairo-dev

Posted: 26 Jan 2007, 20:04
by hollowsoul
Juhe nice patch...

And never though of peep without a taskbar, but been thinking and since i moved back to mouse popups to change player values in Battle Screen.

And if u forget about gtk.StatusIcon & the gtk.Assistant i believe the code code work on pygtk-2.6 and plus.

Unless u get to it before , thinking next week of adding pygtk version check & if 2-10 + use wizard / status icon.
elif 2-6+ use your solution / and some window with setup (non-wizard).


Ok other news UnityLobby, been through slight overhaul to get compatibale with TASClient... anyways it works now
I just need to fix Unit Restrictions & Starting Positions (slightly broken)

Posted: 26 Jan 2007, 20:29
by hollowsoul
Ok all fixed 8)

Posted: 26 Jan 2007, 20:35
by Relative
Wait a second, does this mean windows v linux is now complete?

Posted: 26 Jan 2007, 20:37
by hollowsoul
U cant see unit restrictions or starting positions i start working on that next weekend. Its supportted in creating script.txt, just u wont be aware of it :/

But yes its complete

edit:- also remember u need to restart UnityLobby when u add new maps / mods to spring. Got a plan to solve this, just not coded yet. Be Sunday or Next Weekend till support for it is added

Posted: 26 Jan 2007, 20:40
by Relative
Hollowsoul you are freaking god!

Edit: Also, where the hell is the readme.

Posted: 26 Jan 2007, 21:11
by own3d
hollowsoul wrote:U cant see unit restrictions or starting positions i start working on that next weekend. Its supportted in creating script.txt, just u wont be aware of it :/

But yes its complete

edit:- also remember u need to restart UnityLobby when u add new maps / mods to spring. Got a plan to solve this, just not coded yet. Be Sunday or Next Weekend till support for it is added
Can we host a game and play against TASclient people or can we only join theirs?

Edit: trying to launch a game when you are a player and the game has a spectator with TASclient host seems to crash I will try to replicate.
The error output: http://pastebin.ca/329505
I managed to get this repeated.

Edit2: removing or changing start boxes by the host causes the client to crash, i cant be sure which.
The error output: http://pastebin.ca/329520

Posted: 26 Jan 2007, 21:35
by BrainDamage
after trying more than 20 libs i found the correct 1 :-); it's name is:

librsvg

to provide svg support for python/gtk in mandriva

thanks to own3d & hollowsoul for the help & congratulations to hollowsoul for the great work!

i'll be finally be able to play spring on my linux box :mrgreen:

Posted: 26 Jan 2007, 21:54
by imbaczek
Duels work with me with unity hosting. That's enough to keep me VERY happy :D well done.

Posted: 26 Jan 2007, 22:10
by architeuthis
I have a strange error with Unitylobby: whenever I launch "python Unity.py" in the appropriate directory I get this error:

Code: Select all

  Traceback (most recent call last):
  File "/home/myhomedirectory/spring/springsvn/trunk/UnityLobby/client/main.py", line 235, in ?
    status_icon = status_icon(options.profile)
  File "/home/myhomedirectory/spring/springsvn/trunk/UnityLobby/client/main.py", line 86, in __init__
    self.unitsync_wrapper = unitsync_wrapper(self.ini.get(self.profile, 'SPRING_DATADIR', None))
  File "/home/myhomedirectory/spring/springsvn/trunk/UnityLobby/client/unitsync_wrapper.py", line 42, in __init__
    os.chdir(datadir)
OSError: [Errno 2] No such file or directory: '/home/myhomedirectory/spring/spring-linux-data-0.74b2'
I get this error with the latest official release and the latest svn build (I didn't have it with the previous release). Is this a real bug or did I something wrong? The last output seems to indicate it has something to do with my data dirs, but I don't think there's anything wrong with them.

Posted: 26 Jan 2007, 22:18
by imbaczek
misconfigured spring (see ~/.springrc and SpringDataDir) or something else is seriously wrong about your spring/unity setup - but don't take my word for it.

Posted: 26 Jan 2007, 22:40
by architeuthis
Totally reconfiguring .springrc doesn't make it go away (Tried it before and just tried it again, it doesn't seem to change the situation at all).

Posted: 26 Jan 2007, 23:51
by hollowsoul
@ architeuthis
Tar up your ~/.unity-lobby & email it to me (email add is in most of UnitySync files)

Basicly during setup u entered None for Spring Datadir in wizard.
If u tar up file i can double check this

@own3d UnityLobby should be compatable to play any combination of TASClient & UnityLobby. Outstanding a minor bug i missed somewhere

@ Everyone Fixed removing / changing starting positions, committed to svn. Forgot to change a string into integer.

Other bugs seems to be clientstatus scanning Channel Listings & User list of channels user is in... is tad bit odd, have an idea will figure it out tomorrow.

Posted: 27 Jan 2007, 13:00
by own3d
Brain Damage wrote:after trying more than 20 libs i found the correct 1 :-); it's name is:

librsvg

to provide svg support for python/gtk in mandriva

thanks to own3d & hollowsoul for the help & congratulations to hollowsoul for the great work!

i'll be finally be able to play spring on my linux box :mrgreen:
Right so did you just have this installed or did you have cairo etc as well?

Posted: 27 Jan 2007, 14:59
by kujeger
Hmm, I can't get the option to join most of the battles. Are they missing an indicator for locked games?

Posted: 27 Jan 2007, 16:27
by BrainDamage
own3d wrote: Right so did you just have this installed or did you have cairo etc as well?
i already had cairo installed; so that makes the lib requiements list (at least for mandriva) to:

python-gtk
python
python-imaging
libDevIL
librsvg

all other requield libs (like cairo) will be auto-installed as depandancies when the previous gets installed

----------------------------------------------------------

i discovered 2 little bugs:
-unity can't start games if the host is in spectator mode
-if you try to connect and your network is down or you lose connection to the lobby server, unity will freeze

Posted: 27 Jan 2007, 17:12
by hollowsoul
@ kujeger
Go into Lobby Window -> Preferences Button, and change the colors for text. i.e Battle InProgress to something like light gray.

If i get time i get around to coding in default ones later.

Just got me Python In a NutShell O'Reilly Book, so gonna spend some time reading it abit & improving on code abit (i.e optimizing it). Only got through about 30 pages on train & already learnt afew things i can change around

@ Brain Damage, bug regarding losing Network Connection etc, is from me ripping out Omni Connection Code & not having author around to explain it exactly. Plan to rewrite it from scratch so will support NAT Hole Punching aswell, looking into using Python-Twisted but not havent made up my mind yet.

As for cant host game if user == spectator i look into that now in abit. Shouldnt be much

Posted: 27 Jan 2007, 17:38
by own3d
hollowsoul wrote: As for cant host game if user == spectator i look into that now in abit. Shouldnt be much
Well this bug is also found if you try to get into a game where you are a spectator
the output is here:

Code: Select all

clientstatus failure
<type 'instance'>
('list.index(x): x not in list',)
list.index(x): x not in list
Server has timed out

Posted: 27 Jan 2007, 17:47
by hollowsoul
Actually that bug looks like a problem with receiving an updated clientstatus & scanning known channels user is in & channel list client is in.
Has nothing todo with been a spectator...

Or if it does something is seriously wrong :roll:

Posted: 27 Jan 2007, 22:04
by hollowsoul
Another Few Commits
  • Fixed getting kicked from battles

    Added Updating Online Options Values, when joining a game i.e max
    players / password / description (no fading on it yet)
Was also a code style overhaul for Battle Class, so bug me if u hit something. Pretty sure i got everything...