UnityLobby
Moderator: Moderators
- Tim Blokdijk
- Posts: 1242
- Joined: 29 May 2005, 11:18
After running "python Unity.py" and setting up a profile I get the following:
Maybe the build tools can be changed to build unitsync.so and put it in the Unity dir to.
Code: Select all
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/client/main.py", line 345, in ?
main_window.main()
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/client/main.py", line 328, in main
self.setup(progressbar)
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/client/main.py", line 217, in setup
self.battle.create(self.battle_notebook)
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/client/Battle.py", line 440, in create
map_treeselection.select_iter(self.map_liststore.get_iter_first())
TypeError: iter should be a GtkTreeIter
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
@ Tim Blokdijk
If u have datadir predefined somewhere
Or if u dont have datadir defined, u need to do the following instead.
change /usr/share/games/taspring-linux-svn to your datadir
Press Ctrl+D to exit outof python
What number did u get after typing unitsync.GetMapCount() ?
Also can u pastebin or PM me your
Code: Select all
cd ..../UnityLobby/client
python
Code: Select all
import unitsync
unitsync.Init(True,1)
unitsync.GetMapCount()
change /usr/share/games/taspring-linux-svn to your datadir
Code: Select all
import os
import unitsync
os.chdir('/usr/share/games/taspring-linux-svn')
unitsync.Init(True,1)
unitsync.GetMapCount()
What number did u get after typing unitsync.GetMapCount() ?
Also can u pastebin or PM me your
- ~/.unity-lobby/profiles/setup.ini
~/.unity-lobby/profiles/<insert profile name>/map-index.ini
- Tim Blokdijk
- Posts: 1242
- Joined: 29 May 2005, 11:18
It's a clean checkout, builded "scons unitsync" from trunk and the Spring engine moved unitsync from omni to trunk/UnityLobby/client/ that is about it.
The datadir I gave with profile setup is probably incorret but I don't know how I can tell Unity to use Xect vs. Mynn from SVN.
>>> unitsync.Init(True,1)
1
>>> unitsync.GetMapCount()
0
setup.ini
map-index.ini
Thanks for the help 
The datadir I gave with profile setup is probably incorret but I don't know how I can tell Unity to use Xect vs. Mynn from SVN.
>>> unitsync.Init(True,1)
1
>>> unitsync.GetMapCount()
0
setup.ini
Code: Select all
[Tim Blokdijk]
OPTIONS_WINDOW_HEIGHT = 254
SPRING_DATADIR = /home/tim/Documenten/Games/Spring/Source/SVN/spring/mods/xectvsmynn/trunk/Xect-vs-Mynn.sdd
MAP_INDEX = /home/tim/.unity-lobby/profiles/Tim Blokdijk/map-index.ini
LOBBY_WINDOW_WIDTH = 977
UNITY_INSTALL_DIR = /home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby
LOBBY_CONF = /home/tim/.unity-lobby/profiles/lobby.ini
SPRING_CONF_TEMP = /home/tim/.unity-lobby/profiles/Tim Blokdijk/springrc-temp
SPRING_SCRIPT = /home/tim/.unity-lobby/profiles/Tim Blokdijk/script.txt
BATTLE_WINDOW_WIDTH = 977
STARTUP = 1
GDB_SCRIPT_TEMP = /home/tim/.unity-lobby/profiles/Tim Blokdijk/gdb_script.txt
BATTLE_WINDOW_HEIGHT = 553
SPRING_CONF = /home/tim/.springrc
VERSION = 1.00
MOD_INDEX = /home/tim/.unity-lobby/profiles/Tim Blokdijk/mod-index.ini
BACKGROUND = /home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/resources/splash.png
SPRING_MAP_PREVIEW = /home/tim/.unity-lobby/profiles/Tim Blokdijk/map-preview.jpeg
SPRING_BINARY = /home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/game/spring
LOBBY_WINDOW_HEIGHT = 553
OPTIONS_WINDOW_WIDTH = 359
Code: Select all
[INDEX]
MAP_COUNT=0

- Tim Blokdijk
- Posts: 1242
- Joined: 29 May 2005, 11:18
I removed ~/.springrc also and ran Python Unity.py from trunk/UnityLobby/
Looks like it did have an effect, new error.
Looks like it did have an effect, new error.
Code: Select all
Traceback (most recent call last):
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/clien t/main.py", line 345, in ?
main_window.main()
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/clien t/main.py", line 328, in main
self.setup(progressbar)
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/clien t/main.py", line 217, in setup
self.battle.create(self.battle_notebook)
File "/home/tim/Documenten/Games/Spring/Source/SVN/spring/trunk/UnityLobby/clien t/Battle.py", line 440, in create
map_treeselection.select_iter(self.map_liststore.get_iter_first())
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Assuming
u dont have /etc/spring/datadir
of spring datadir defined in ~/.springrc
Anyway this is your problem
Type python /path/to/UnitLobby/Unity.py -s
To startup the profile selector & do it again with a right datadir.
Its crashing on u cause unitsync cant find any maps, since u havent setup datadir right. And UnityLobby assumes u got @ least 1 map & mod installed.
As for setting it up to use Xect vs. Mynn. I use unitsync to report back mod / map info. If UnityLobby sees other mods but not Xect vs. Mynn, more than likey a problem with unitsync.
As for ~/.springrc, its prob another change that breaks UnityLobby
Update:- Tim thats the exact same error :)
u dont have /etc/spring/datadir
of spring datadir defined in ~/.springrc
Anyway this is your problem
Change that to where u got spring installed. i.e example of what inside a datadir looks likeSPRING_DATADIR = /home/tim/Documenten/Games/Spring/Source/SVN/spring/mods/xectvsmynn/trunk/Xect-vs-Mynn.sdd
Code: Select all
AI ArchiveCacheV4.txt Luxi.ttf aidll archivecache.txt base demos docs ext.txt gamedata infolog.txt maps mods omni palette.pal selectkeys.txt shaders startscripts uikeys.txt
To startup the profile selector & do it again with a right datadir.
Its crashing on u cause unitsync cant find any maps, since u havent setup datadir right. And UnityLobby assumes u got @ least 1 map & mod installed.
As for setting it up to use Xect vs. Mynn. I use unitsync to report back mod / map info. If UnityLobby sees other mods but not Xect vs. Mynn, more than likey a problem with unitsync.
As for ~/.springrc, its prob another change that breaks UnityLobby
Update:- Tim thats the exact same error :)
- Tim Blokdijk
- Posts: 1242
- Joined: 29 May 2005, 11:18
Stupid thing is that I had the old spring-gui running fine here.
Anyway, I'm going to fix it again, if I can find the time I'm going to change svn to allow this:
And have everything ready to play.
[EDIT] Ehh, and have everything ready to develop of course.
Anyway, I'm going to fix it again, if I can find the time I'm going to change svn to allow this:
Code: Select all
svn co https://taspring.clan-sy.com/svn/spring/trunk ;
svn co https://taspring.clan-sy.com/svn/spring/mods ;
cd trunk;
scons configure;
scons;
cd UnityLobby;
phython Unity.py;
# [possebly set up a profile]
# [manualy download a map from lobby]
[EDIT] Ehh, and have everything ready to develop of course.

When you create a profile and enter the paths it is not updating .springrc
EDIT: the option button on the right of the connect button in the lobby does not seem to work, it gives this error:
EDIT no2: i deleted the second profile - checked .unity-lobby/profiles/ there is no profile remaining, yet the error persists
EDIT: the option button on the right of the connect button in the lobby does not seem to work, it gives this error:
It is worth mentioning i have created two profiles, but signed in on only one.TypeError: preferences() takes exactly 1 argument (2 given)
EDIT no2: i deleted the second profile - checked .unity-lobby/profiles/ there is no profile remaining, yet the error persists
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
@ own3d
Prob cause theres no code done for the options button yet.
Looks like i left the connect singal signal for the button opps
But the error is not serious, just ignore the button & error for now.
Also how u mean not updating .springrc ?
As in saving options for spring ?
Cause setting up profiles, never touchs ~/.springrc
Spring == broken for me atm. I get around to fixing it up later.
Need to fix up gentoo ebuild amt
Prob cause theres no code done for the options button yet.
Looks like i left the connect singal signal for the button opps
But the error is not serious, just ignore the button & error for now.
Also how u mean not updating .springrc ?
As in saving options for spring ?
Cause setting up profiles, never touchs ~/.springrc
Spring == broken for me atm. I get around to fixing it up later.
Need to fix up gentoo ebuild amt
- Tim Blokdijk
- Posts: 1242
- Joined: 29 May 2005, 11:18
okay, I've finally finished moving and such, and am compiling the new SVN at the moment. Just finished catching up with the posts and... DAMN, that's all I have to say. Once again I'm simply astounded at the progress you've made in such a short time.
Once I'm home I will continue testing, poking, proding, and/or bashing Unity to the living ends.
Once I'm home I will continue testing, poking, proding, and/or bashing Unity to the living ends.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
wow, I have to say this is getting better by the second...
I only have two issues to point out. They aren't really issues, actually; just ambiguities. In the readme, you should specify which of the files needs to be used to start unity (so if the user wants to sym link to it, he knows which file it should be). Also, specify WHERE unitsync must be placed (in the clients folder, am I right?) in the readme as well.
point of interest, after I set up the first profile, it stopped going to the profile screen altogether whenever I run Unity. It just goes straight to the actual gui. Is this intentional or have I done something wrong?
I only have two issues to point out. They aren't really issues, actually; just ambiguities. In the readme, you should specify which of the files needs to be used to start unity (so if the user wants to sym link to it, he knows which file it should be). Also, specify WHERE unitsync must be placed (in the clients folder, am I right?) in the readme as well.
point of interest, after I set up the first profile, it stopped going to the profile screen altogether whenever I run Unity. It just goes straight to the actual gui. Is this intentional or have I done something wrong?
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
edit: opps missread :)
Yeah some users pointed that out & changed it to above.
Will update Readme later got afew more lobby chat things to commit later tonight.
What i though u were talking about @ first :)
Also u dont need to define datadir @ setup. If u got datadir defined elsewhere. Or for people with multi spring installs i.e different branches / trunk / tagged release
Its just there for people who dont have datadir setup / defined in ~/.springrc or /etc/spring/datadir or @ compile time.
Yeah some users pointed that out & changed it to above.
Will update Readme later got afew more lobby chat things to commit later tonight.
What i though u were talking about @ first :)
Also u dont need to define datadir @ setup. If u got datadir defined elsewhere. Or for people with multi spring installs i.e different branches / trunk / tagged release
Its just there for people who dont have datadir setup / defined in ~/.springrc or /etc/spring/datadir or @ compile time.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Commited some more minor Lobby chat support for UnityLobby.
Also updated the Readme & added List of UnityLobby supported protocols so far.
Gonna try & code Battle Status / List in later tonight.
Was also thinking of adding GUI option button / mouse menu.
So u can hide battles where the host is not in your current channel / any channels u are in.
And also on todo list later tonight is to add preferences to change color of lobby text.
Also tvo added support so if u type
scons unitsync. It will build & add unitsync.so to the right directory for UnityLobby :)
Also updated the Readme & added List of UnityLobby supported protocols so far.
Gonna try & code Battle Status / List in later tonight.
Was also thinking of adding GUI option button / mouse menu.
So u can hide battles where the host is not in your current channel / any channels u are in.
And also on todo list later tonight is to add preferences to change color of lobby text.
Also tvo added support so if u type
scons unitsync. It will build & add unitsync.so to the right directory for UnityLobby :)