UnityLobby
Moderator: Moderators
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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
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
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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.
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.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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
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
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Update
Will commit tomorrow morning
Just got to update code to write RGB Colors to script.txt
So far changes are
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.
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
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.
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05
- Michilus_nimbus
- Posts: 634
- Joined: 19 Nov 2004, 20:38
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:
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.
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}
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.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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.
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.
- Michilus_nimbus
- Posts: 634
- Joined: 19 Nov 2004, 20:38
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.
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.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Commited lobby code to svn & is used now.
Its barely working atm GUI wise.
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.
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
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.
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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.
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
Last edited by hollowsoul on 20 Aug 2006, 14:04, edited 1 time in total.