UnityLobby - Page 19

UnityLobby

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

Moderator: Moderators

Locked

What would u like to see implentent next (after next release should be tomorrow or day after at most)???

Poll ended at 20 Jul 2006, 01:04

Direct IP Multiplayer Games
7
54%
Chatroom (chat only for the moment)
1
8%
More Options for Configure Section
2
15%
More Options for Skirmish Section i.e colors teams spectators etc
3
23%
 
Total votes: 13

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

Post by hollowsoul »

Can people check there distros if pygtk2.10 is available for it plz...
Theres a nice new feature i like to use if possible i.e allowing user to reorder the tabs for lobby chat.
Will see if i can add this option based on if user has pygtk2.10 or not.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

It's looking like mine has 2.4 :-/
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

imbaczek@imbaczek:~$ python
Python 2.4.3 (#2, Apr 27 2006, 14:43:58)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> gtk.pygtk_version
(2, 8, 6)
>>>

that's ubuntu dapper.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

For gentoo I thik it will pass some time until pygtk2.10 is available - now it is in 'earyly testing' stages (no idea how long it will take... ).

http://packages.gentoo.org/search/?sstring=pygtk
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Actually 2.10 is in gentoo now just need to unmask it.
By default gentoo doesnt unmask anything unless its been a stable a month i.e look @ which is latest stable driver for nvidia binary drivers.

There are exceptions to that rule, depending on maintainer / package


Theres just some really nice additions though :/
  • User beening able to reordering tabs

    System tray icon *drools*, have some very nice ideas for that down the road.

    More control over cell rendering in gtk.TreeView i.e use it for lobby player list / player list in Battle / map list / mod list. Can also add spin buttons into player list i.e be nicer to select army / ally / bonus. And possible might not need PIL anymore

    And a much nicer way to code text completation i.e auto complete for nicknames in lobby chat.

    And a url link widget. i.e could use it in lobby code, so when u click on url will start it up in your default webbrowser.
Damn slow distros not packaging 2.10
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

Don't worry, most will catch up in the next 3-4 months... That's not really a lot, and as an added bonus you'll get the next (as in the one after the upcoming one) spring release with Linux vs Windows support :)

Just keep up the good work.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

Yes, I know about unmasking, but it is not available 'by default' in the distro... - this is how I interpreted your question, anyway anyone can build it from source if they really want it.

(and about maked packages in gentoo I tried unmasking gnome 2.16 and it wasn't a very smooth process...)

But I think you should use the pygtk (nice features you listed). People who use linux generally know how to obtain what they want ;) (in this case a working pygtk2.10 for their distribution) and in a few months it will be available...
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Yeah looks like i going use pygtk 2.10 & gtk2.10
Srry to other people that will wait till its in stable packages for there distros.
But to many nice additions to pass up.
Besides new gnome stable release is out. So distros should be updating soon enough to new gtk


Anyway current plans = the following been brain storming since got pygtk-2.10 & gtk+-2.10 installed

Some of these need 2.10 some dont. But these are current plans to get done over weekend
  • Remove needing Python Imaging Library

    System tray icon with menu / blinking (thinking for nick highlighting / ringing )

    There some sort of helper widget still got to try out. wonder if its like clippy for windows i.e might use for profile setup

    User will be able to reorder tabs for lobby chat.

    Got example for new widget that will let me allign widgets properbly. instead of current scenario where in options screen widgets arent aligned.

    Also got example for dynamicly resizing the widgets when window is resized. i.e Battle Screen, Map Preview resizing with window resizing :)

    Should also be able to put spinbuttons for Army / Side / Bonus picking. Not sure what todo yet fors sides yet (arm/core). Also might be able to add if u click on color on battle screen & it pops up color selector for picking the player / ai color.

    Also add url widget which will open a webbrowser when user clicks on a link
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Anyone know of a decent linux screenshot program.
So damn annoying cant take screenshot with popup menus / tooltips

Anyway current WIP
  • Splash Screen = Gone

    New Dock App (top right in screenshot == taspring logo) = Popup menu to pick battle / lobby / options.

    Battle / Lobby / Options = In there own windows (only able to open 1 of each)

    When updating Map / Mod Cache Files. Popup menu for dock app is disabled & if u hover over it there is a tooltip showing current progress in text. It will also flash when its done till u click on it.

    Lobby Server settings moved to Lobby Perfernces, nearly done Lobby perfernces screen

    Also when click on X to close window its hidden. i.e u right click on dock app for battle / lobby / options & its back again. Should be nice to save desktop room & for people that like sitting in lobby chat.

    Moved all unitsync calls into there own class. Should make it easier to add a worker thread just for unitsync down the road *hopes*
No screenshot of Options still the same atm, and its currenly slightly broken atm :roll:
Still have to add buttons for selecting color text for lobby chat i.e join / leave / motd etc...

Anyway should have it uploaded tomorrow
Note new dependences == pygtk-2.10 gtk+2.10 python 2.4
Anyone care to make a svg of spring logo ?

Image
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

Ksnapshots pretty good
User avatar
Icebird
Posts: 51
Joined: 29 Jun 2006, 20:17

Post by Icebird »

if you're using import you can also do something like
$ sleep 3; import -window root bla.png

and you open your menus during the sleep
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

jep import with max compression and png is a good choice.
took me some tries to find out that the imagemagic compression scale is 0 - ~20 for png

IMAGENAME="$(date +%Y%m%d_%H%M%S).png"
import -quality 99 -window root $IMAGENAME
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Just minor update had very little time to code last few days. Still around
Hopefully get some done over weekend.
  • Got the Single Clicking On gtk.Treeview sorted out i.e Map / Mod List / Profiles.

    Much nicer Lobby Preferences (Lobby Server Options moved into preferences) its basicly a popup window.
    Looks alot like X-Chat Settings -> Preferences Window.

    Also small GUI changes in generally, and a new ready button & ready icons in Battle List. Small change for in preparing for Lobby Battle Code which was needed.

    Still having troubles with new some of the new features for pygtk i.e rendering combobox / spinners in gtk.TreeView. If anyone knows how todo plz give me a PM.

    If anyone interesting in helping me code app, give a pm plz
Hopefully i get source rpm for taspring done on weekend. Yes i did manage to get around to it eventually

Also there is a new gentoo ebuild for latest svn version (well should work, unless svn got changed drasictly in last week)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Still waiting on release to upload to svn.
Dont want to upload till after release. Due to app requiring pygtk 2.10 & gtk 2.10. Which isnt available yet on most distros.

Anyway here is current screenshot.
Look @ the highlighted game in the Game List :-)
Almost there to playing online.


Image

Also added missing Battle Options i.e Limited DGun, Diminishing MM's etc
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

this will make setting up network games soo much easier on linux ;p
good work.
User avatar
BvDorp
Posts: 439
Joined: 14 Oct 2005, 12:09

Post by BvDorp »

Wow, what an amazing job you've pulled here! This will help the linux comm greatly!!

Keep up the great work! Just for support: I keep checking, and have been since it started, this thread everytime I visit the forum. IMO this development is quite essential to Spring, and will contribute greatly!
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Slowly been fixing some bugs.
I hopefully have new version uploaded on weekend. With limited battle code & a test server aswell thx to fnordia & betalord for setting up.


Code End
But if any that knows python got spare time.
Be nice if u could look over UnityLobby/client/Lobby.py

Its pretty much omni code to connect to lobby server. I just changed the functions it calls on below for GUI stuff etc & rewrote the timers so it didnt need wx.Timer.

Anyway noticed problem (not confirmed to late atm & about to get some sleep) is omni doesnt have exception handing for when Lobby Server gets restarted but server ip can still be pinged.

This will ofcourse cause the timer to fault on me & will freeze the GUI. If anyone got some spare time to look @ it plz do. All need is exception handly for it & i will add the remaining GUI code.

As i only roughly understand the code in question & i been busy adding Lobby Battle Code atm.

Graphics End
Need small & basic spring logo in png & transparent for window icon.
Would also be nice to get Lobby rank icons in png & transparent (instead of the white). U can find my rough png's using in svn under UnityLobby
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

How far away are you from windows support right now?
I do know quite a bit of the battle specific protocol and all, so I might look at it some time. It would be my first time working on a gui app though, but I guess that's something I could learn.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

Yeah. How long till we can dump wine? I want a native Ubuntu package! :)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Most of lobby battle code todo is simple enough.
And really is just tying the protocol to GUI.
As for data stores for info. Using gtk datatypes to store battle / user / lobby info etc i.e gtk.ListStore. So when it gets updated, GUI gets updated aswell.

Only really hard thing todo for battle is GUI code for drawing squares / rectangles on map to pick start locations & displaying Map starting locations.

Also will need to add a python thread to lauch spring & wait for it to finish for Battle Chat & updating client status when in/out of a game. But thats not critical to get done yet. Just be nice for advancing ranks.

Basicly most of GUI framework is done for Battle Code.
Just tedious adding in code for each protocol to update Battle Screen. Simply enough todo, just freetime todo work is whats taking so long.
Will upload to svn sometime this weekend.


Really be nice if someone could hunt down the bug in my previous post.

Or if someone knows how to write a python threading class with exception handling.
That will run a (outside of timer class) function @ specific intervals & beening able to stop / run thread. That would serious help me alot in debugging whats going wrong when i add some code.
Locked

Return to “Linux”