UnityLobby - Page 18

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

pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

Excellent work, my loading times improved 1000% at non virgin launches. Also the in game maps selector is faster due to propper caching or faster searching.

I updated the generic SVN mini howto to reflect the new situation.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Tim Blokdijk wrote: Maybe the build tools can be changed to build unitsync.so and put it in the Unity dir to.
Just did that this morning :P

E: errr.. why did the forum put this here? :shock:
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

After running "python Unity.py" and setting up a profile I get the following:

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
Maybe the build tools can be changed to build unitsync.so and put it in the Unity dir to.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@ Tim Blokdijk

Code: Select all

cd ..../UnityLobby/client
python
If u have datadir predefined somewhere

Code: Select all

import unitsync
unitsync.Init(True,1)
unitsync.GetMapCount()
Or if u dont have datadir defined, u need to do the following instead.
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()
Press Ctrl+D to exit outof python

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
plz
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

yes that looks like an error with wrong paths somewhere,
delete your old ~/.springrc and ~/.spring-gui and ~/.unity-lobby stuff,
and start clean from the start.
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

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

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
map-index.ini

Code: Select all

[INDEX]
MAP_COUNT=0
Thanks for the help :-)
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

I removed ~/.springrc also and ran Python Unity.py from trunk/UnityLobby/
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())
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Assuming
u dont have /etc/spring/datadir
of spring datadir defined in ~/.springrc


Anyway this is your problem
SPRING_DATADIR = /home/tim/Documenten/Games/Spring/Source/SVN/spring/mods/xectvsmynn/trunk/Xect-vs-Mynn.sdd
Change that to where u got spring installed. i.e example of what inside a datadir looks like

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
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 :)
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

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:

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]
And have everything ready to play.

[EDIT] Ehh, and have everything ready to develop of course. :-)
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

FYI you filled out the wrong datadir in UnityLobby
I have unity lobby working here just fine.

If you want to use svn mods, just symlink them into your datadir/mods/ after deleting your old copy.
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

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:
TypeError: preferences() takes exactly 1 argument (2 given)
It is worth mentioning i have created two profiles, but signed in on only one.

EDIT no2: i deleted the second profile - checked .unity-lobby/profiles/ there is no profile remaining, yet the error persists
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@ 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
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

I have the lobby working again.

Only Xect vs. Mynn is not functioning with SVN head... it needs some serious love. :-(
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

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.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

New commit
Basic Lobby Support for pming people
SAYPRIVATE SAIDPRIVATE protocols

Just double left click on thier name in channel to pm them.

Still todo for pming is just want to add the player to the list on the right in PM, i.e same as normal channel. And notice when they quit / join the server.
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

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?
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Intentional
Type python /path/to/Unity.py -s to get it to turn up again.

Basicly it skips profile screen by default if numbers of profiles == 1.
So if u got 0 or >2 number of profiles it will turn up.
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

so single-datadir setups need not require selection... that's damn clever.

you should note that as well in the readme, if for no other reason than to brag about how clever it is. :)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

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.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

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 :)
Locked

Return to “Linux”