Poll

Shall I finish this project, and fix it up to release it into the ulx community?

Yes
6 (85.7%)
No
1 (14.3%)

Total Members Voted: 7

Author Topic: MySQL Multiserver Chat Idea  (Read 15811 times)

0 Members and 1 Guest are viewing this topic.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
MySQL Multiserver Chat Idea
« on: August 18, 2013, 05:13:29 AM »
Hey, what's up ULX members, so do I have a question for you guys. Please give feedback on the idea:

So, without further ado, time to interest people who have multiple servers. My friend and I have created a MySQL chat system.
It's original purpose was to log chat for a web based thing (long story short: "That will be kept as secret as possible"), anyways it got more complex.

Now, this is my thing about this situation: I want to know if it will be any use the community, because it does has one bug in it, and I wasn't planning to fix it, though if the community finds it useful then I may give in and fix it to give to the entire ulx community.

Not only that, but I was going to keep this thing secret and have it as one of the tens to hundreds (being serious. I have a lot of free time, so these things happen a lot) of archived files of discontinued projects. Though, before I was going to move it there, I realized that I'm not going to make a garry's mod server ever again, and why leave this to sit in a sector in my hard drive forever, when maybe I might be willing to give it to the ulx community.

.. maybe one day when I have more time and care, I'll release more secret archived files..


So my last statement is:
If you think this might be a good idea and you would want it, then vote yes and leave a reply about it. If you have any questions about it, feel free to ask me.
« Last Edit: August 18, 2013, 05:16:32 AM by chaos13125 »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: MySQL Multiserver Chat Idea
« Reply #1 on: August 18, 2013, 04:10:04 PM »
Real-time multiserver chat using MySQL is not really a very good idea, but if it's something you think you can fix up in a few hours time, I know it has been requested on the forums before.
Experiencing God's grace one day at a time.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: MySQL Multiserver Chat Idea
« Reply #2 on: August 18, 2013, 04:42:27 PM »
Real-time multiserver chat using MySQL is not really a very good idea, but if it's something you think you can fix up in a few hours time, I know it has been requested on the forums before.

Yes indeed it has been requested before.
http://forums.ulyssesmod.net/index.php/topic,5516.msg25146.html#msg25146

Yeah, I've been told this before to not use MySQL, instead use sockets or something like that, but there is a reason for what I wanted this to be MySQL

Also, it's not realtime. There's a three second pause, because it can't connect fast enough for real time.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: MySQL Multiserver Chat Idea
« Reply #3 on: August 19, 2013, 03:34:41 AM »
I'm going to give this till next Monday. If not enough response happen for this to happen, then I'll close the thread and place the file in the archive.

End of Trail:
8/26/13
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Organik

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Artifice Gaming Network
Re: MySQL Multiserver Chat Idea
« Reply #4 on: August 21, 2013, 06:13:36 AM »
I suppose I'd be interested in this. Although I agree with Megiddo about MySQL being a bad solution to multi-server chat. I've been doing my best to avoid it and find something like sockets instead for this purpose. But for the ease of use.. I may give it a shot. And for my purpose.. I'd be using it for a server chat box on my community website. So maybe it won't be that bad.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: MySQL Multiserver Chat Idea
« Reply #5 on: August 21, 2013, 06:17:32 AM »
I suppose I'd be interested in this. Although I agree with Megiddo about MySQL being a bad solution to multi-server chat. I've been doing my best to avoid it and find something like sockets instead for this purpose. But for the ease of use.. I may give it a shot. And for my purpose.. I'd be using it for a server chat box on my community website. So maybe it won't be that bad.

I don't like sockets. I haven't had much success with them. What ends up happening is that because it's realtime, it lags it or it expects the next message to fast.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Organik

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Artifice Gaming Network
Re: MySQL Multiserver Chat Idea
« Reply #6 on: August 21, 2013, 06:26:04 AM »
This addon works great: http://facepunch.com/showthread.php?t=1256119

However, it doesn't work for my intended purpose yet. He included a basic PHP class with the addon, but it's limited to just sending messages to the server right now, and I don't have the technical know how on sockets to be able to write a receive PHP function.

But.. does this mean you'll release yours?  :D

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: MySQL Multiserver Chat Idea
« Reply #7 on: August 21, 2013, 06:28:27 AM »
This addon works great: http://facepunch.com/showthread.php?t=1256119

However, it doesn't work for my intended purpose yet. He included a basic PHP class with the addon, but it's limited to just sending messages to the server right now, and I don't have the technical know how on sockets to be able to write a receive PHP function.

But.. does this mean you'll release yours?  :D


I don't know yet. I've been going over the thing again, and it appears that there's a lot wrong with the chat. I'll have to check something again, I just need to fix the last received ID, then it will be working
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Organik

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Artifice Gaming Network
Re: MySQL Multiserver Chat Idea
« Reply #8 on: August 21, 2013, 01:00:26 PM »
Well, take your time. Since you say you have a lot of it anyways. :D

I don't need it anytime soon anyways.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: MySQL Multiserver Chat Idea
« Reply #9 on: August 21, 2013, 07:35:30 PM »
What ends up happening is that because it's realtime, it lags it or it expects the next message to fast.

That's not how sockets work. If programmed properly, it should be waiting on system interrupts for data, which would cause zero lag.
Experiencing God's grace one day at a time.

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: MySQL Multiserver Chat Idea
« Reply #10 on: August 23, 2013, 10:08:58 PM »
if it uses MySQL, it would start filling up a database fast full of text. So how does it handle that?

And how does it handle special characters?
Uhm, whats a signature?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: MySQL Multiserver Chat Idea
« Reply #11 on: August 24, 2013, 06:05:35 AM »
if it uses MySQL, it would start filling up a database fast full of text. So how does it handle that?

And how does it handle special characters?

It was made to delete any message ID that is past 50, and only stores the last 50 messages. Special characters just don't get inserted.

I'll give an example on how it done, off the top of my head. So most likely did it wrong.
Code: [Select]
local tb = {a,A,b,B,c,C,1,2,3}
local checker = string.explode(tb,",")
local abc = string.find(text, checker)
if abc == true then return end
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: MySQL Multiserver Chat Idea
« Reply #12 on: August 25, 2013, 01:40:51 AM »
I see. What sort of transfers are we talking about aswell? Can it like do one way connections, or elaborate setups where certain servers can hear others and some cannot, or is it just "Everyone can hear everyone"? or can that be configured?
Uhm, whats a signature?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: MySQL Multiserver Chat Idea
« Reply #13 on: August 25, 2013, 11:44:07 AM »
I see. What sort of transfers are we talking about aswell? Can it like do one way connections, or elaborate setups where certain servers can hear others and some cannot, or is it just "Everyone can hear everyone"? or can that be configured?

Everyone can hear everyone. There is a little identify variable though when each server talks.
I.E. If Server {A} talks, then when Server {B} is listening to it, it will display "{A} Player Name: text"
« Last Edit: August 25, 2013, 11:47:23 AM by chaos13125 »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: MySQL Multiserver Chat Idea
« Reply #14 on: August 28, 2013, 03:13:33 AM »
Ahh... I see.

Well, I think this is a really good mod for those with large communities (or those who wish to monitor stuff from a test server huehue)



*edit: Please refrain from using swear words.*
« Last Edit: August 28, 2013, 05:35:17 PM by MrPresident »
Uhm, whats a signature?