UnityLobby

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

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

UnityLobby

Post by hollowsoul »

UnityLobby [Name subject to change]

Old Download links
Spring-GUI-3.12a
Readme-Spring-GUI-3.12

Now hosted by keithjr

Spring-GUI
Version == svn

Latest work for spring-gui is on taspring svn server now.
Make sure u read the following files when u grab spring-gui off svn
  • README
    README-Lobby
These will normally be more update than this post & more detailed with current issues to work out etc
  • Battle == almost complete, just need to add missing options. Limit it so u cant join a battle more than once. Tie Battle & Lobby Code together. Enforce Ally Teams ???

    Options == need to update for latest options in svn. Add support for windows registry

    Lobby == nearly everything. Atm u can connect / dissconnect. Read Server MOTD, join channels, & talk. Its mainly only gui code to add for lobby.
Requirements
pygtk-2.4
python-2.4
python image library (PIL) --> Hopefully will rewrite code later & lose this dependency

Anyway here are current screenshots for peep u havent tested out svn yet.

Image Image Image Image

Image Image
Note for users who havent tested it out. It will save sizes for Battle / Options / Lobby to your profile & resize for u. Map & Mod is cached to files (need to add code for updated them atm)
Last edited by hollowsoul on 09 Sep 2006, 17:20, edited 124 times in total.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Looking pretty flipping cool man!
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Nice work! Then we finally have a 'settings.exe' on Linux :D , (even tho AFs lobby is possibly going to offer this functionality too, not sure..)

Maybe I find time to do a new grep through the source for config variables and extract defaults and maybe even lower and upper bounds too. In that case, I'll post result here.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Well the more competition the beeter and to be honest, i would rather use something like this than a java app, would run faster and better :)
HAARP
Posts: 182
Joined: 06 Apr 2006, 07:18

Post by HAARP »

Very nice indeed!

Maybe use tooltips to explain every option in detail?
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

Very nice indeed! let us know when you're ready for a release and we'll all help you test it :)
User avatar
AF
AI Developer
Posts: 20678
Joined: 14 Sep 2004, 11:32

Post by AF »

So shall i drop AFLobby then?
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

I wouldn't drop it as he may fail in his attempts at Omni, and you are already way ahead.

At the moment all this will do is enables linux players a GUI version of what FBO has made for linux, only a bit different.

I would say keep at it AF.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@ AF
Blah drop AFlobby u crazy ?
Besides pygtk app works under linux only.
While yours is java & be well easier to run under multiple operating systems i.e linux windows mac(when spring is working) other bsd's (if/when spring works for them)

At best will be small competition in terms of features & this will be gpl once i get a test release version out today. Its only a python script :P

Not to mention i started coding this about 2 days ago.
Since i lost the tidbits i had collected so pretty far back in terms of features atm.

@ Everyone else
Building computer for friend atm so prob have something together tonight.

Min Max Default Values would be nice if anyone got spare time to find
them out & update wiki page for linux config. Or make a post here plz.

As for tooltips will do them in next release version but need someone to find out what those config values really mean :P
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

hollowsoul wrote:@ AF
Min Max Default Values would be nice if anyone got spare time to find
them out & update wiki page for linux config. Or make a post here plz.

As for tooltips will do them in next release version but need someone to find out what those config values really mean :P
I spent my lunchbreak searching through the doxygen docs for some of these, but all I could turn up was the Grass Detail default, which I believe is 3. I don't know for sure, as there aren't comments.

http://taspring.clan-sy.com/doxygen/df/ ... tml#l00035

It is called by the GetInt method, which has two parameters, name and def. I'm assuming the below definition of GetInt means that def is the default value if the name can't be found..

http://taspring.clan-sy.com/doxygen/d6/ ... tml#l00040

Can somebody verify? This would make filling in the rest of the defaults very easy. Not sure about max/mins.

crap, break's over, back to work...
Last edited by keithjr on 07 Jul 2006, 18:35, edited 1 time in total.
User avatar
AF
AI Developer
Posts: 20678
Joined: 14 Sep 2004, 11:32

Post by AF »

You have it much easier though, all your unitsync bindings are in place, and you have a python lobby to draw code from.

Whatever help I've ahd has coemf rom tournesol, and tournesol doesnt knwo anythign abotu JNI and admits he doesnt know much about GUI. I also seem to ahve people telling em in forums todo things that i dont know howto do. For example look at the problem with minimaps I had. I had 2 solutions given to me both of which are plain baffling. The java method is based on information i have no knowledge of at all, and the other one saying to loads tsuf fusing the libjpeg/devil library is just as confusing to me.

because of all these issues work on AFLobby has fallen dramatically from hundreds of hours per week to absolutely no work at all. The last time I had netbeans open was nearly a week ago.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Well why not opensource it and put it on sourceforge or somewhere and make a sticky in the forums here to see if anyone wants to pick it up?
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

If my previous idea is correct, it can be followed for these values from other points in code

00015 viewRadius=regHandler.GetInt("GroundDetail",40);

00021 decalLevel=regHandler.GetInt("GroundDecals",1);


00042 maxParticles=regHandler.GetInt("MaxParticles",4000);

I'll find more later

All were found with this list of references.

http://taspring.clan-sy.com/doxygen/d6/ ... 016af7c57f
HAARP
Posts: 182
Joined: 06 Apr 2006, 07:18

Post by HAARP »

Defaults:

Code: Select all

"TreeRadius"=dword:00000580
"GroundDetail"=dword:0000003c
"UnitLodDist"=dword:000000c8
"GrassDetail"=dword:00000003
"MaxParticles"=dword:00000fa0
"ShadowMapSize"=dword:00000800
"MaxSounds"=dword:00000010
"GroundDecals"=dword:00000000
"VerboseLevel"=dword:00000000
"SoundVolume"=dword:0000003c
"UnitReplySoundVolume"=dword:00000050
"XResolution"=dword:00000280
"YResolution"=dword:000001e0
"3DTrees"=dword:00000001
"AdvSky"=dword:00000001
"DynamicSky"=dword:00000000
"Fullscreen"=dword:00000001
"ColorElev"=dword:00000001
"InvertMouse"=dword:00000001
"Shadows"=dword:00000000
"SimpleMiniMapColors"=dword:00000000
"CatchAIExceptions"=dword:00000001
"AdvUnitShading"=dword:00000000
"VSync"=dword:00000000
"DepthBufferBits"=dword:00000020
"FSAA"=dword:00000000
"ReflectiveWater"=dword:00000000
"name"="no name"
Min:

Code: Select all

"TreeRadius"=dword:00000258
"GroundDetail"=dword:00000014
"UnitLodDist"=dword:00000064
"GrassDetail"=dword:00000000
"MaxParticles"=dword:00004e20
"ShadowMapSize"=dword:00000800
"MaxSounds"=dword:00000080
"GroundDecals"=dword:00000005
"VerboseLevel"=dword:00000000
"SoundVolume"=dword:00000000
"UnitReplySoundVolume"=dword:00000000
"XResolution"=dword:00000280
"YResolution"=dword:000001e0
"3DTrees"=dword:00000000
"AdvSky"=dword:00000000
"DynamicSky"=dword:00000000
"Fullscreen"=dword:00000000
"ColorElev"=dword:00000000
"InvertMouse"=dword:00000000
"Shadows"=dword:00000000
"SimpleMiniMapColors"=dword:00000000
"CatchAIExceptions"=dword:00000000
"AdvUnitShading"=dword:00000000
"VSync"=dword:00000000
"DepthBufferBits"=dword:00000010
"FSAA"=dword:00000000
"ReflectiveWater"=dword:00000000
"name"="no name"
"FSAALevel"=dword:00000008
Max:

Code: Select all

"TreeRadius"=dword:00000bb8
"GroundDetail"=dword:00000078
"UnitLodDist"=dword:00000258
"GrassDetail"=dword:0000000a
"MaxParticles"=dword:00004e20
"ShadowMapSize"=dword:00000800
"MaxSounds"=dword:00000080
"GroundDecals"=dword:00000005
"VerboseLevel"=dword:0000000a
"SoundVolume"=dword:00000064
"UnitReplySoundVolume"=dword:00000064
"XResolution"=dword:00000500
"YResolution"=dword:00000400
"3DTrees"=dword:00000001
"AdvSky"=dword:00000001
"DynamicSky"=dword:00000001
"Fullscreen"=dword:00000001
"ColorElev"=dword:00000001
"InvertMouse"=dword:00000001
"Shadows"=dword:00000001
"SimpleMiniMapColors"=dword:00000001
"CatchAIExceptions"=dword:00000001
"AdvUnitShading"=dword:00000001
"VSync"=dword:00000001
"DepthBufferBits"=dword:00000020
"FSAA"=dword:00000001
"ReflectiveWater"=dword:00000002
"name"="no name"
"FSAALevel"=dword:00000008
All values are in hex! Taken from registry of Windows settings-screen
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

Ahh, very good, the linux springrc is not fully stocked with this information.

I would go ahead and update the wiki with this but something concerns me...

default:
"GroundDecals"=dword:00000000

min
"GroundDecals"=dword:00000005

max:
"GroundDecals"=dword:00000005


...?


Other than that it agrees with what I found, except the default for ground detail is 60 instead of 40... this might just be the outdated docs though (which were generated in 2005)


EDIT:
Also, I notice that AdvancedSky and DynamicSky appear to be booleans, not integers as the wiki suggested. Those should be changed too.
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

Update:

http://taspring.clan-sy.com/wiki/Config

I've changed what I could, except a few entries that weren't in HAARP's post or were, but didn't make sense (like the GroundDecalsl one I mentioned).
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

bah, I hate editing this table in plain html... therefore, here the results of a grep/sed through sourcecode (note that this is slightly different from defaults settings.exe makes - but this are the defaults used by spring itself, ie. used when you leave the variable out of ~/.springrc, so I'd say these are "better"):

Code: Select all

"3DTrees",1
"address",""
"AdvSky",1
"AdvUnitShading", GLEW_ARB_fragment_program ? 1 : 0
buf, ""
"CamMode",1
"CatchAIExceptions", 1
"ColorElev",1
"DepthBufferBits", defaultDepthSize
"DynamicSky",0
"FPSEnabled",1
"FPSMouseScale", DEFAULT_MOUSE_SCALE
"FPSScrollSpeed",10
"FSAA",0
"FSAALevel",2
"Fullscreen",1
"GrassDetail",3
"GroundDecals",1
"GroundDetail",40
"InfoMessageTime",400
"InvertMouse",1
"MaxParticles",4000
"MaxSounds",16
"MetalMapPalette", 0
"name",""
"OverheadEnabled",1
"OverheadScrollSpeed",10
"ReflectiveWater",1
"RotOverheadEnabled",1
"RotOverheadMouseScale", DEFAULT_MOUSE_SCALE
"RotOverheadScrollSpeed",10
"ScrollWheelSpeed",25
"ShadowMapSize",DEFAULT_SHADOWMAPSIZE
"Shadows",0
"ShowClock",1
"ShowPlayerInfo",1
"SimpleMiniMapColors",0
"SoundVolume", 60
"SpringData",""
"TeamNanoSpray", 1
"TreeRadius", (5.5f*256
"TWEnabled",1
"TWScrollSpeed",10
"UnitIconDist",200
"UnitLodDist",200
"UnitReplySoundVolume",80
"VerboseLevel",0
"VSync", 0
"XResolution", 1024
"XResolution",XRES_DEFAULT
"YResolution", 768
"YResolution",YRES_DEFAULT
rts/Game/CameraController.cpp:#define DEFAULT_MOUSE_SCALE "0.003"
rts/Game/CameraController.cpp:#define DEFAULT_MOUSE_SCALE "0.01"
rts/System/Main.cpp:#define XRES_DEFAULT 1024
rts/System/Main.cpp:#define YRES_DEFAULT 768
Generated by:

Code: Select all

find rts -name \*.cpp -o -name \*.c -o -name \*.h -o -name \*.hpp | \
        xargs grep "configHandler.Get" | \
        grep -v "rts/System/Platform/ConfigHandler.h" | \
        sed -r 's/.*configHandler.Get[A-Za-z ]*\(//g; s/\([A-Za-z ]+\)//g; s/\).*//g' | \
        sort | \
        uniq
find rts -name \*.cpp -o -name \*.c -o -name \*.h -o -name \*.hpp | \
        xargs egrep "#define (DEFAULT_MOUSE_SCALE|XRES_DEFAULT|YRES_DEFAULT|DEFAULT_SHADOWMAP_SIZE)" | \
        sort
Sorry I'm really too lazy to add them to the wiki atm..

E: note that second DEFAULT_MOUSE_SCALE is for linux (first is for windows), I've no clue why that is.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Released
config-alpha-1.1.py

Small Goals for next release
Reduce memory footprint.
Clean up code
Fix FSAA in configure options so when it gets turned to 0. It adds FSAA=0 to config & same with loading config values
Change script to use temporary files.
Add command line option i.e -v to give output on version history.

Plus Whatever else i can fit in :P
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

Make it executable rename it to have a . infront of it so you can hide it then
as root -

Code: Select all

ln -s /path/to/file/.config-alpha-1.1.py /usr/bin/springgui

then just type springgui in console to run :D
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

I think i will wait till it is a little more complete to try.

But good work :)
Locked

Return to “Linux”