UnityLobby
Moderator: Moderators
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
@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
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
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.
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.
again, sorry.

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.
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:
And here is the result of running spring-gui:
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.
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'
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
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
about to get some rest i.e sleep.
But that line & one after should be (in main.py)
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
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)
Anyway will throw together 3.12 tomorrow morning with that fix & add workaround for unitsync unable to get side info from certains AA mods
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
@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
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
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:
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.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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
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
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:
needs to be 3.12
third, otherwise the fixes work fine.
second, there's a bug in 3.12:
Line 250:
Code: Select all
if Config.get_option(ini, 'MAIN', 'VERSION', '0') == '3.10':
third, otherwise the fixes work fine.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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
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
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Yep its all contained in same window.
Left todo for very basic lobby chat
Gonna mess about it & see how it looks once i get basic lobby GUI code done & commited to svn.
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)
Gonna mess about it & see how it looks once i get basic lobby GUI code done & commited to svn.
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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.

and for options

Note already fixed the nick been repeated twice.
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.



and for options

Note already fixed the nick been repeated twice.
Last edited by hollowsoul on 16 Aug 2006, 21:38, edited 1 time in total.
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05