UnityLobby - Page 14

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

Post by hollowsoul »

ehhh
i finally got around to coding lobby code last Saturday.

Can encyrpt passwords.
Join Lobby Server,
Join Channels
Display MOTD
Display SAID
SAY to channel
Ping/Pong Server

3 threads. 1 to send data, 1 to receive data, 1 to process

Ripped most of code from omni & had to rewrite parts of it. While the code atm processes the info twice. Will remove one of them, once i spring-gui processing part done.

As for color i want it in real simple.
Hey alot easier to code Color Chat in, if user is able to choose the color themselves, takes figuring GUI outof my hands.
Which eats up most of time. Only start color yesterday and almost got battle sorted out
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

What's the purpose of a color selector ?
Cause having people speak in 10 different color in the lobby is awefull.
( In the battle room, for the team color, it's good)

Exept that, you're really an effective man :)
Great progress.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Highlighting your Nick
Highlight on other things if u choose

Colored Channel Topics / MOTD messages
Colored Nicks, / maybe just Friends

Either way be up to user to setup the colors.

Now to figure out how to display Team Colorfrom gtk.Color :|
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Sounds amazing hollow, good job!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Colour chatting is impossible in main because there's no support in the protocol, it'd just nerf TASClient users with formatting text.

I've suggested to Betalord and provided code to enable custom protocols in the server but he says he doesnt understand why I'd need to use them and that they're badly coded, despite them simply being mostly his code duplicated with the protocol word renamed, and only involved 5 or so lines.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

I was talking client side. Wouldnt like to see it in lobby protocol, would get abused. And no need for peep able to send color txt IMO.

But no reason u cant have a freinds list client side & change thier color of text if u want to. To help stand out there messages,
either way be an option user can play around with.

And same with highlighting on words / your nick.

Anyway thats the plan since was gonna change MOTD color messages, might as make code generic and cover the above aswell

Anyway back to figure out how to create a pixbuf & rendering it in gtk.TreeView :\ so close... to having rgb team color chooser for Battle Setup
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Highlighting a certain users text in a colour is a nice system. Perhaps I have some stuff to talk with you about hollow.....
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

collaboration is good :)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@ AF *shrugs* i'm lost Anyway normally on irc, if u want to talk about whatever u mean :)

@ Everyone Else
Current Screenshot of Player Section & Color Selector

Image


edit
Nm figured it out atlast :)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Update
Will commit tomorrow morning
Just got to update code to write RGB Colors to script.txt

So far changes are
  • Ctrl+F in Map Screen For Search Box to search via Map Names

    Minor GUI fixes / tweaks

    Color Dialog - Default Colors / Change one player color changes other players color in same team

    Lobby Code will be uploaded aswell (not used yet, still got some GUI Code todo, before i turn it on)
    i.e Connect / Disconnect / Close Channel Tab == Minor Coding
Bad News
Added Dependency is
Python Image Library (PIL) http://www.pythonware.com/products/pil/

Using it to create Team Color Image, tried to use pygtk to create pixbuf of right size, but couldnt figure out how to change the color :/

Will hopefully come up with a pure python / pygtk replacement.
Till then left with Python Image Library, pretty small and should be available in packages for most linux distros.
Is available for Gentoo, Debian, Ubuntu, Redhat/Fedora & Windows == quick check.

If anyone knows how to create a image of certain size & color (just needs to be filled in color defined by rgb), or using pygtk how make a pixbuf of certain size & color.

Give me a shout via PM plz, really want to avoid using any other dependencies if possible.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

For AFLobby I have a textPane instead, and I'm gonna leave it empty and change it's background colour. Surely that can be done in any language with GUI controls
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Hollow it comes for or is easily available for any distro, i wouldn't worry too much about it!
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

About the custom protocol changes/text colouring:
My idea is to expand the adduser command with the "application name and version" in the login command, so it would look like this:

Code: Select all

ADDUSER username country cpu IP {application name and version}
the fifth parameter could be used like a user agent to determine whether a certain user's client supports a specific feature. AFLobby could just check if it's talking to other AFlobby users, and just send a color command along with the say/sayprivate command. It wouldn't be possible in main, of course, but it's the closest thing to an easy implementation I can see.
Also, with some naming convention, it could be used to determine the os/platform of the player, acting as a warning for msvc vs gcc/mingw battles for as long as those aren't synced.
I don't really see any back draws, apart from the slightly increased bandwidth.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

ehh

Think peep jumped the gun :)
I meant client side text highlighting

Dont like idea of peep spamming channels with colored text.
Name one reason someone should be able to use colored text,
now weight it against peep using bright / hideous colors spamming a channel to join there game ?

Was talking about client side options where u can have a friends list & sub groups like clan members.

Have have there nicks or text or both in a different color.
To help stand out there messages.
Also highlighting text support i.e like irc
And also colored topic / server messages

All of this doesnt required protocol changes & is completely client side.
And is just options that user can setup / change / & turn on/off.

At most default for spring-gui will be colored MOTD / Topics / Server Messages.

On another note Color Selector for Team RGB Colors is in svn now.
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

Well, I don't want colored text either, it was just an example of my little proposition.
Anyway, carry on now :-)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I talked with hollow and any formatted text will be in html.

Now I've figured howto handle html without the message boxes flickering in java I'll have support for html messages.


However i wont be adding colours, italics, bold,smileys etc maybe but not colours.

Thus you can recieve colour messages but not send them. Does that sound alright?

I'll allow setting of colours in channel topics/Battlenames etc however.


I would also make a point of asking that the agreement document betalord uses be converted from rich text to html.


Although I am in full support of michilus' addition to ADDUSER. The fact only moderators can see what client a user is using is ridiculous.
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Post by Betalord »

[EDIT: removed this post (and some replies) and moved it to PM as requested.]
Last edited by Betalord on 20 Aug 2006, 12:31, edited 1 time in total.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Commited lobby code to svn & is used now.
Its barely working atm GUI wise.
  • U can connect to server (need an already registered account)
    Read Server MOTD
    Join Channels
    Read / Send Chat
    Thats all atm
But plz read the README-Lobby first !!!

Also updated first post for spring-gui in svn with screenshots. Take a look if u havent tested out the svn version yet & see what u missing :)
2 links @ top for old spring-gui & Readme with previous post for installing it.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Looking real good hollow, but i can't help but start to worry that your lobby work will be useless unless the next version of spring will work for linux players online?
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

ehh now thats pure ramble and completely negative.

Looks like next release will allow proper linux V linux, just not windows V linux yet.

The release afterwards will true windows V linux :)

When lobby code is done, just need someone to setup a lobby server for linux users.

Not to mention u can always setup a lobby server yourself it likes 2 commands in console So u can setup multiplayer games yourself for lan, of over net. Just tell other peep your ip address.
  • 1) To compile it using javac
    2) To start server up
Besides this way dont need to rush code lobby to get it ready in time for release. Can take my time & get it done nicely
Last edited by hollowsoul on 20 Aug 2006, 14:04, edited 1 time in total.
Locked

Return to “Linux”