UnityLobby - Page 13

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 »

@keithjr
Anyway what trunk checkout u get need 1799 or higher / latest svn checkout for spring-gui to work.

Btw nothing stoppping u from using tagged release & old spring-gui. Personnaly dont see just yet a killer feature yet.
If u compile from svn == development i.e dev commits change to it and hope it doesnt break anything else. Its not a stable release & is testing ground, things bound to break.


aka i have == example of my setup.
I was only giving an example of multi-datadir example. Its alot nicer for linux users & multi-user setups
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

eh, I apologize for that remark, I only get about half an hour a day to sit and play spring and it makes me sad when I can't get it to work. Who am I kidding, I could never give this up.


again, sorry. :oops:

I'll try for a little while to get trunk working and if not I'll revert to 0.72b1 tagged with spring-gui 3.11. Once I get the method down, I'll add the findings to my HOWTO since technically it does apply very much to getting tagged 0.72b1 working. Linux spring is nothing without spring-gui.
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

There is a bug in spring-gui-3.11, which I didn't find before because I've never used the 'Svn' setup. Now that I am, it can't find that datadir...

Here is the relevant section of Global.py:

Code: Select all

# INSTALL is show spring-gui knows how u installed spring i.e
# 	INSTALL = 'Debspring' is for debspring i.e fbo package
# 	INSTALL = 'Gentoo'    is for gentoo
#	INSTALL = 'Svn'       is for svn builds
#INSTALL = 'Debspring'
#INSTALL = 'Gentoo'
#INSTALL = 'Svn'
INSTALL = 'Svn'

# Location where spring-gui is installed
SPRING_GUI_INSTALL = '/home/keithjr/.spring/spring-gui-3.11'

# Location for spring binary
# i.e for debspring  /usr/bin/spring.bin
SPRING = '/home/keithjr/.spring/spring'

# Location for spring datadir
#	Note this is used if u are using  >> INSTALL = 'Svn'
#		If u leave blank, script will attempt to use /etc/spring/datadir if its there
SPRING_DATADIR = '/home/keithjr/.spring'
And here is the result of running spring-gui:

Code: Select all

keithjr@helios:~$ spring-gui
Traceback (most recent call last):
  File "/usr/bin/spring-gui", line 230, in ?
    if SPRING_DATADIR != None:
NameError: name 'SPRING_DATADIR' is not defined
I realize you are quite busy so I'm going to go for a crash-course in python and try to debug this myself. I'm just letting you know, as I'm on a bit of a mission to get that tagged svn guide working.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

about to get some rest i.e sleep.

But that line & one after should be (in main.py)

Code: Select all

if GLOBAL.SPRING_DATADIR != None:
           Config.set_option(ini, 'MAIN', 'SPRING_DATADIR', GLOBAL.SPRING_DATADIR)
Note dont copy/paste since think forums messes with tabs.

Anyway will throw together 3.12 tomorrow morning with that fix & add workaround for unitsync unable to get side info from certains AA mods
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

thanks, and good night(?)

I'm just waking up... strange world.

is it safe to say that 3.12 be noob-friendly (ie compatible with 0.72b1)?
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@keithjr Havent test it but should work. Added that fix & workaround for unitsync unable to get side info from certain AA mods.
It will work 72b1 its basicly 3.11 with the 2 fixes above added to it

http://www.fileden.com/files/2006/7/17/ ... 12.tar.bz2
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

sorry but dont know if you found this, I found another little type which occurs if you leave SPRING_DATADIR blank (wherein it tries to get the information from /etc/spring/datadir)

line 235:

Code: Select all

	Config.set_option('ini', 'MAIN', 'SPRING_DATADIR',line)
[code]

You need to remove the quotes from around 'ini.'  I think.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Opps. Yeah exactly right
http://www.fileden.com/files/2006/7/17/ ... 12.tar.bz2

didnt bother to bump revision. Nuke your ~/.spring-gui. Before u test it out
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

hollowsoul, first I would like to say that you are awesome and a wicked fast coder and have inspired me to learn pygtk so I can also, someday, make awesome scripts.

second, there's a bug in 3.12:

Line 250:

Code: Select all

if Config.get_option(ini, 'MAIN', 'VERSION', '0') == '3.10':
needs to be 3.12

third, otherwise the fixes work fine.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

opps forgot to fix that bug for older spring-gui will do tomorrow.


Anyway got side tracked yesterday & today on lobby code.

So far ripped out omni code for lobby & added to spring-gui.
Replaced the wx.timer, so far 3 threads, 1 to send data & 1 to receive data & 1 to update the textbuffers for the chat windows.

This is just a quick simple screenshot for lobby chat. Just to show it.

http://img211.imageshack.us/img211/4126/lobbyei8.jpg

Mainly got all the lobby GUI is left todo :(

edit:- Just noticed forgot to add newlines to the lobby text :)

Note:- When lobby GUI is done will upload to svn. Not there yet
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Good work hollow, but mabye have it more integrated into the main spring-gui window you showed us before?

That looks like a seperate window, would be nice to have this program all in one, mabye in tabs or something.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

It's the same window clericvash haven't you noticed the non-functional lobby tab? :P
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Yep its all contained in same window.

Left todo for very basic lobby chat
  • Add controls / buttons for lobby above the tabs.
    Mouse menu / closing the channel / pm tabs
    Encrypt passwords (easy code to rip out of omni)
And the whole top menu bar might get replaced with more tabs = Demitar idea. Check out svn logs to see Demitar patchs for spring in svn logs :)

Gonna mess about it & see how it looks once i get basic lobby GUI code done & commited to svn.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

From the screenshot it looks as if the lobby part is its own window, i havn't used the svn version and won't use it either, svn and cvs and all that just annoy me really.

I will wait for a proper release of this :P
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

you can go ahead and update the link to the tagged (right word?) version in the front post (3.12). I'll do so as well in my howto.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

I update link in abit, small break first.

Anyway here some screenshots.
Of spring-gui connected to lobby server.

Gonna get started working on GUI next. And make the text look nicer.
And very basic lobby support is done.

Image Image Image

and for options
Image

Note already fixed the nick been repeated twice.
Last edited by hollowsoul on 16 Aug 2006, 21:38, edited 1 time in total.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

w00t supernoob advertising NTai...
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Hmm looking at the screen shots it seems peoples names appear twice before showing what they say :P
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Note already fixed the nick been repeated twice.
Wasnt bothered to update screenshots.
Anyway working on colored text atm. Need to make up a color selector first :/
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

To be honest i would rather have a working lobby chat and battle rooms and such ready for the next spring release and have little features like colour and such later.
Locked

Return to “Linux”