UnityLobby - Page 17

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

User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

hollowsoul wrote:...
& with imment new release on its way i got more important things to sort out.

...
I believe the next release will still be Windows only.
Looking forward to my first real game. :-D
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Still next tagged release should be possible for linux V linux using different compilers i believe.

Not to mention dont have to debate on which svn version to agree to use.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Need peep to test latest svn version plz.
before u test do the following plz

Code: Select all

rm -rv ~/.spring-gui
rm ~/.springrc
Damn silent changes to unitsync in creating an empty file ~/.springrc :|

Have added an if statement to check if filesize == 0L
This might not work depending on different filesystems.

So plz test it out

It should work for ext3 filesystems
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Trying another method to detect empty .springrc
Love all of the (1) reports on what the previous filesystem previous method worked for....

Anyway Offical Lobby logins wont work atm, due to adding agreements to lobby server. While easy todo, dont know yet how to use richtext in gtk.TextBuffer / gtk.TextView.
Until i find out, wont be able to log onto offical lobby server :(

Also i removed all debuggin output as fed up with people under assumation of unclean exiting of program.

Someone hates me i think atm, hmm wonder what next will be added / changed that be an absolute pain to get fixed.
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

google search threw these up:

http://www.pygtk.org/pygtk2reference/cl ... uffer.html
google high lighted
http://66.249.93.104/search?q=cache:3_E ... nt=firefox


A splash screen i have made:
http://www.ashu39.dsl.pipex.com/unity.png

I will work on getting a better background but thats what ive done so far.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Yes google for reference == easy.

Point me to a example of code been used instead.
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

Well i can't say i frequently review app's source code, but i found something else in pygtk which might help
http://www.pygtk.org/pygtk2reference/cl ... ndata.html

I searched through several source code search engines all i found was this:

Code: Select all

 class RichEntry(gtk.TextView):
def __init__(self):
self.buffer = gtk.TextBuffer()
gtk.TextView.__init__(self, self.buffer)
 
This is from rich_entry.py in anoncvs.gnome.org under gnome-blog

The pastebin of the whole thing: http://pastebin.ca/155454

I found this by typing: " rich text gtk.TextBuffer " on http://www.krugle.com
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Cheers own3d that is what i was looking for.
Gonna be take awhile to code though :(
Vivien
Posts: 43
Joined: 03 Feb 2006, 17:58

Post by Vivien »

Hi,

I tried to launch spring-gui using svn but once i fill all the paths in the setup profile and select my new profile i get this error in the terminal:

Code: Select all

File "/home/vivien/Jeux/taspring_0.72b1/spring-gui/main.py", line 375, in ?
    main_window.main()
  File "/home/vivien/Jeux/taspring_0.72b1/spring-gui/main.py", line 292, in main    self.setup(progressbar)
  File "/home/vivien/Jeux/taspring_0.72b1/spring-gui/main.py", line 149, in setup
    datadirs = unitsync.GetDataDirectories(False)
AttributeError: 'module' object has no attribute 'GetDataDirectories'
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Are you sure to have the latest (lastest svn revision ) unitsync.so ?(if no, you must compile it with "scons unitsync", and copy it from the omni directory to the spring-gui one.
Vivien
Posts: 43
Joined: 03 Feb 2006, 17:58

Post by Vivien »

I have the "tagged" svn revision (0.72b1) and i used the unitsync.so i found in the omni directory and i only downloaded the spring-gui from the revision 2052 (trunk/spring-gui). i will try with the last library (or the entire omni directory ?). thank you.

EDIT: I downloaded and compiled the omni directory found in the last revision but i get the same error:
I made that: (in taspring folder)

Code: Select all

svn checkout https://taspring.clan-sy.com/svn/spring/trunk/omni
svn checkout https://taspring.clan-sy.com/svn/spring/trunk/spring-gui

scons configure && scons omni && scons unitsync
copy and paste the unitsync.so from omni into the spring-gui folder,

Code: Select all

cd spring-gui

chmod a+x main.py

./main.py

Am i wrong ?
Vivien
Posts: 43
Joined: 03 Feb 2006, 17:58

Post by Vivien »

that's work with the latest revision (0.73b)
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

Well ill try this later with svn CURRENT and we'll see if that error is there.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Svn spring-gui wont work with tagged release 72b1.

Due to changes to unitsync & multi-datadir.
Need to be using a pretty recent svn version of spring & unitsync.so
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Any news ?
Are you still waiting on Betalord for this Richtext thingy ?

Or have you already attacked the battle part of the lobby ?
( Can you easly make it with the solo part, or you must rewrite everythings?)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

RL = a pain atm.
So not much time to spend on coding.

Anyway atm what i got done is
  • Removed need for entering where Unity Lobby is installed for profile setup. Script can detect that itself now.

    Added Lobby Registration & Registration Denied support
Restructured file layout.
  • To support loading Unity Lobby if installed in ~/.unity-lobby.
    So Unity Lobby can received updated version from
    Offical Lobby Server & install latest version automaticly into ~/.unity-lobby.
    As cant assume user has write access to where unity lobby is installed.

    Done :- Divided everything into its sperate classes to make it easier to code new features.
    Changed file layout to be something more organised.
    Also added launcher script to detect if Unity-Lobby is installed in ~/.unity-lobby & run it if it is.
    Otherwise it will run original Unity Lobby install.

    Left Todo :- Add Code to request if update is available
    Add Code to uncompress & install new version into ~/.unity-lobby & startup new version & stop running old one

    Should be simply enough todo

Not uploaded to svn yet as want to finish off windows code, so the name change to UnityLobby fits.

Also should be a small improvement to loading / saving ~/.springrc & setup files for Unity Lobby.
But doubtfully that anyone will notice difference.

@ Torrasque Whole point of this overhaul, was to make it easier to add support for Lobby Battle Code :)
And yes, the plan is to use same section for Single Player & Lobby Battle.

Updated
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

New version commited to svn.

Name changed to Unity Lobby.
Some minor gui changes / added Lobby Registation Support.
Removed Need for telly UnityLobby where it is installed, for profile setup.

Note unitsync needs to be copyied into client directory.

Infastructure for more features (that are next on todo list), still to be coded
i.e
auto-updating via lobby server,
automatic profile setup (i.e copy a template to profile/setup.ini & have it automaticly setup profiles, if profile count == 0)
lobby PM /me

Note, options button for lobby == placeholder. Kinda snuck onto svn.
Also if new version is running ok for u. U can removed older version setup i.e

Code: Select all

rm -rv ~/.spring-gui
As new version stores it in ~/.unity-lobby


Plz report any bugs etc. Since after doing overhaul. Bound to be something i missed & is broken.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Err
Noone try latest one in svn atm plz.
Looks like i borked the code that createsmod / map cache. Fixing it atm, will update this post when done.

Update:- Damn i messed up the code abit. Getting late will have it fix tomorrow. Srry about this
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

I have forgotten to pay Internet and the cut it down :(
I hope to be able to test it tomorrow ..
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Setup is fixed now. Not much added for User.
This change is mainly code overhaul
Locked

Return to “Linux”