Page 17 of 41

Posted: 29 Aug 2006, 23:47
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

Posted: 29 Aug 2006, 23:52
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.

Posted: 30 Aug 2006, 02:58
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

Posted: 31 Aug 2006, 02:42
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.

Posted: 31 Aug 2006, 03:14
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.

Posted: 31 Aug 2006, 03:18
by hollowsoul
Yes google for reference == easy.

Point me to a example of code been used instead.

Posted: 31 Aug 2006, 04:16
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

Posted: 31 Aug 2006, 14:30
by hollowsoul
Cheers own3d that is what i was looking for.
Gonna be take awhile to code though :(

Posted: 03 Sep 2006, 15:29
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'

Posted: 03 Sep 2006, 16:29
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.

Posted: 03 Sep 2006, 16:57
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 ?

Posted: 03 Sep 2006, 19:14
by Vivien
that's work with the latest revision (0.73b)

Posted: 03 Sep 2006, 19:28
by own3d
Well ill try this later with svn CURRENT and we'll see if that error is there.

Posted: 03 Sep 2006, 21:09
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

Posted: 06 Sep 2006, 23:22
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?)

Posted: 07 Sep 2006, 00:56
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

Posted: 08 Sep 2006, 04:06
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.

Posted: 08 Sep 2006, 04:50
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

Posted: 08 Sep 2006, 13:04
by Torrasque
I have forgotten to pay Internet and the cut it down :(
I hope to be able to test it tomorrow ..

Posted: 08 Sep 2006, 16:36
by hollowsoul
Setup is fixed now. Not much added for User.
This change is mainly code overhaul