Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Timestamping chat when alt-tabbed, is it possible?

 
Post new topic   Reply to topic Printable version
 View previous topic  Win32 newer Post :: Post *Thor  View next topic  
Author Message
Jason
Novice


Age:39
Gender:Gender:Male
Joined: Feb 05 2004
Posts: 57
Offline

PostPosted: Thu Feb 05, 2004 2:00 am    Post subject: Timestamping chat when alt-tabbed, is it possible? Reply to topic Reply with quote

First of all, let me start off by saying that I have limited programming experience/knowledge. I took a year of CS courses and they were all taught in Java, so I have a solid understanding of concepts, but I don't know jack when it comes to the syntax/capabilities/etc of C or C++.

That being said, I was wondering if it would be possible to add a timestamp to each line of chat in the chat window when I'm alt-tabbed. I spend most of my time in SS these days alt-tabbed, chatting with friends whilst doing other work. I often forget to look at the chat window and end up scrolling back through old lines of chat. It would be nice to know what time stuff was said.

I haven't the foggiest where to begin were I to try to do this. I'm assuming there's some way to take a look at the chat window and catch each new line of chat, then almost literally "stamp" a time over the window (I doubt it's possible to write to the window itself.) perhaps in another window. Maybe even output all chat into another window with the timestamp included.

Anyway, enough babbling. Please advise if you think this is possible, and if so, where should I begin? Or if it's something that's going to be over my head, maybe someone would like to try their hand at it?
Back to top
View users profile Send private message Add User to Ignore List Send email
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Thu Feb 05, 2004 2:45 am    Post subject: Reply to topic Reply with quote

You picked a strange forum to post this question in, but I'll try to help anyway.

It would be really easy to do this if it were just written into the client itself, instead of attempting to hack it on top of it with some external program (which would be nearly impossible). Unfortunately, there's not much development happening on the client these days. Your best bet is to post this request on the game development forum here:

http://www.ssforum.net/index.php?showforum=4

And hope that Mr. Ekted sees it. He wrote the code for the chat window, and can add it to his sources. It won't make it into a new client, though, until PriitK decides to release a new version.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Jason
Novice


Age:39
Gender:Gender:Male
Joined: Feb 05 2004
Posts: 57
Offline

PostPosted: Thu Feb 05, 2004 3:55 am    Post subject: Reply to topic Reply with quote

I apologize for posting here. I wasn't sure where else to put it. I considered posting at SSForum.net but figured these forums were frequented by more true (and intelligent) developers who could be the most helpful. So much for timestamping then!

Thank you for responding, Grelminar. By the way, despite my lack of programming experience/prowess, I'm all sorts of impressed with asss. It's pure sweetness. :]
Back to top
View users profile Send private message Add User to Ignore List Send email
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Feb 05, 2004 9:58 am    Post subject: Reply to topic Reply with quote

The 2nd possibility is to write yourself a chatnet client with timestamps in it. You could even write it in Java if you feel comfortable with its GUI.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Jason
Novice


Age:39
Gender:Gender:Male
Joined: Feb 05 2004
Posts: 57
Offline

PostPosted: Thu Feb 05, 2004 2:03 pm    Post subject: Reply to topic Reply with quote

Pardon my ignorance, but where can I find more detailed information about the chatnet protocol? I read over the sticky in the "Chatnet Protocol" forum, but it left me feeling uncertain as to how one would implement the protocol.
Back to top
View users profile Send private message Add User to Ignore List Send email
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Thu Feb 05, 2004 5:13 pm    Post subject: Reply to topic Reply with quote

Those are the packets that would be sent back and forth. A year of CS class probably wouldnt have immersed you enough to teach about sockets and exactly how data is sent over the internet via a program.

You may not need to do all the detailed annoying crap yourself. Smong has a chatnet client out there somewhere, get his software and add the timestamp. It uses TCP protocol, therefore such clients cannot connect to SubGame zones. So, if you need to use the timestamps, you wont be able to see public or team chat in your zone. That is of course, unless you use ASSS in your zone.
_________________
There are no stupid question, but there are many inquisitive idiots.
Loot

Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:36
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Feb 05, 2004 6:00 pm    Post subject: Reply to topic Reply with quote

If you wanted to do it in C (just to let you know), you would use ctime(time()), which returns a char array that would contain the timestamp. That would include the year and all though, so it would be a little odd. You would probably want to write a new function that takes a time_t value (which time() gives you) and turns it into just a time, not a date.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dustpuppy
Server Help Squatter


Age:39
Gender:Gender:Male
Joined: Jan 23 2003
Posts: 215
Location: England
Offline

PostPosted: Fri Feb 06, 2004 1:30 pm    Post subject: Reply to topic Reply with quote

Really, if you mainly chat and don't play, you don't need to be using Continuum. So you could edit Smong's chatnet client to add timestamps, or whine at Kirk till he restarts work on SubChat
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Jason
Novice


Age:39
Gender:Gender:Male
Joined: Feb 05 2004
Posts: 57
Offline

PostPosted: Fri Feb 06, 2004 5:17 pm    Post subject: Reply to topic Reply with quote

The only problem with not using Continuum is, as Explody mentioned, all zones using SubGame don't allow chatnet clients, so I'd be restricted to my ; chats. That's not too big of a deal, but still I wish I could use pub and team chats as well in zones like HZ and what have you.
Back to top
View users profile Send private message Add User to Ignore List Send email
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Fri Feb 06, 2004 5:24 pm    Post subject: Reply to topic Reply with quote

Someday theyll move over to as3. Its not that they dont allow it, its that they dont even support the at all.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 684 page(s) served in previous 5 minutes.

phpBB Created this page in 0.423900 seconds : 35 queries executed (92.6%): GZIP compression disabled