Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2011, 02:49 AM
Zothen
Hill Giant
 
Join Date: Apr 2011
Location: Germany
Posts: 163
Exclamation Table 'tellque' missing

Got a world error this morning, when tell-chatting with a buddy of mine. The world window reports "[...] peq.tellque doesnt exist." and it is actually right. There is no such table, but in the source code there are 3 sql commands for it.

Is there an update script for that table or could someone just post the columns so I can add it manually?

Thanks in advance!
Reply With Quote
  #2  
Old 05-06-2011, 04:00 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I haven't ever messed with it, but judging by the source related to it, I would think the table would be something like this:

Code:
CREATE TABLE `tellque` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `date` varchar(65) NOT NULL default '',
  `receiver` varchar(65) NOT NULL default '',
  `sender` varchar(65) NOT NULL default '',
  `message` varchar(256) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
I only looked at the source for it briefly, but as far as I can tell, the tellque doesn't actually get sent to clients automatically after they finish zoning. They would have to run the #viewmessage command.

Though, it seems like messages could be checked and automatically sent during the finishing zoning process.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 05-06-2011 at 09:53 PM..
Reply With Quote
  #3  
Old 05-06-2011, 04:27 AM
Zothen
Hill Giant
 
Join Date: Apr 2011
Location: Germany
Posts: 163
Default

Thanks for the sql, mate!

It must be automatically, cause my buddy does not even know the #viewmessage command, nor do I
Reply With Quote
  #4  
Old 05-06-2011, 04:31 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Well yeah, it gets inserted into the table automatically when someone is zoning and is sent a tell. The command would be for retrieving the message after zoning is completed, as I didn't see any way that automatically sends the messages.

Though, all I did was search Google SVN for "tellque" and got this result:

http://www.google.com/codesearch?q=t...G=Search+Trunk

Searching the SVN often misses entries for whatever reason, so maybe support for sending them automatically is already in.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 05-06-2011, 10:56 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Looks like that table basically works, though the timestamp field doesn't record the timestamp properly.

I was at least able to confirm that it does not automatically send the queued tells after the receiver finishes zoning. It puts them into the table and you have to get them manually using the #viewmessage command. Seems like it might not be all that hard to implement the rest of it and then add the table to the SVN for updates that everyone can get. Though, I would like to know the correct way to set the date field for sure before that.

It would probably also need some sort of cleanup step to empty out the table upon server reset or something.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #6  
Old 05-06-2011, 02:39 PM
dcosper
Fire Beetle
 
Join Date: Apr 2011
Posts: 15
Default

I had a similar time stamp problem, the sql and server wants a UNIX timestamp and i cant find a way in sql to make that, so instead i did a int 11 to hold the UNIX_TIMESTAMP date, seems to work fine, but i am just a novice.
Reply With Quote
  #7  
Old 05-06-2011, 09:46 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, if it is unix timestamp, then int(11) is what it wants. I just thought it was supposed to be a timestamp, since it looks to be using asctime() to make it a string in this snippet from the source:

Code:
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
char *telldate=asctime(timeinfo);
....
if (database.RunQuery(query, MakeAnyLenString(&query, "INSERT INTO tellque (Date,Receiver,Sender,Message) values('%s','%s','%s','%s')",telldate,scm->deliverto,scm->from,scm->message), errbuf, &result))
Looks like it just needs to be varchar, so I updated the SQL I posted previously. Tested it and it worked fine.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 05-06-2011 at 09:54 PM..
Reply With Quote
  #8  
Old 05-06-2011, 09:49 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

would be awesome if this gets finished.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 03:49 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3