Page 14 of 41

Posted: 17 Aug 2006, 11:24
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

Posted: 17 Aug 2006, 11:30
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.

Posted: 17 Aug 2006, 11:35
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 :|

Posted: 17 Aug 2006, 12:16
by clericvash
Sounds amazing hollow, good job!

Posted: 17 Aug 2006, 15:23
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.

Posted: 17 Aug 2006, 15:48
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

Posted: 17 Aug 2006, 18:22
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.....

Posted: 17 Aug 2006, 19:53
by clericvash
collaboration is good :)

Posted: 17 Aug 2006, 19:55
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 :)

Posted: 18 Aug 2006, 03:09
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.

Posted: 18 Aug 2006, 04:10
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

Posted: 18 Aug 2006, 10:14
by clericvash
Hollow it comes for or is easily available for any distro, i wouldn't worry too much about it!

Posted: 18 Aug 2006, 19:08
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.

Posted: 18 Aug 2006, 19:15
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.

Posted: 18 Aug 2006, 20:17
by Michilus_nimbus
Well, I don't want colored text either, it was just an example of my little proposition.
Anyway, carry on now :-)

Posted: 18 Aug 2006, 20:43
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.

Posted: 19 Aug 2006, 14:59
by Betalord
[EDIT: removed this post (and some replies) and moved it to PM as requested.]

Posted: 20 Aug 2006, 01:11
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.

Posted: 20 Aug 2006, 13:55
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?

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