Page 13 of 41
Posted: 11 Aug 2006, 10:12
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
Posted: 11 Aug 2006, 15:15
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.
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.
Posted: 12 Aug 2006, 02:12
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.
Posted: 12 Aug 2006, 02:20
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
Posted: 12 Aug 2006, 14:12
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)?
Posted: 12 Aug 2006, 14:22
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
Posted: 12 Aug 2006, 14:46
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.
Posted: 12 Aug 2006, 15:08
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
Posted: 12 Aug 2006, 20:53
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.
Posted: 15 Aug 2006, 01:54
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
Posted: 15 Aug 2006, 11:05
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.
Posted: 16 Aug 2006, 00:21
by Word
It's the same window clericvash haven't you noticed the non-functional lobby tab?

Posted: 16 Aug 2006, 00:54
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.
Posted: 16 Aug 2006, 10:06
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

Posted: 16 Aug 2006, 18:49
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.
Posted: 16 Aug 2006, 21:32
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.
and for options
Note already fixed the nick been repeated twice.
Posted: 16 Aug 2006, 21:38
by AF
w00t supernoob advertising NTai...
Posted: 16 Aug 2006, 22:33
by clericvash
Hmm looking at the screen shots it seems peoples names appear twice before showing what they say

Posted: 16 Aug 2006, 22:42
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 :/
Posted: 17 Aug 2006, 10:16
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.