Author Topic: Server sound alerts?  (Read 1706 times)

Legacy_Cablefish

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Server sound alerts?
« on: July 27, 2010, 08:44:14 pm »


               I would love a tool for the server that would alert me when players logged on or other things happened.

It could be really simple. Maybe even something that would just pick up on the fact that something is written into the log-files.

That way i could do other stuff and then jump in and DM if players logged onto the server..
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Server sound alerts?
« Reply #1 on: July 27, 2010, 10:17:30 pm »


               Just add to your OnClient Enter a sound when a player logs in. Think the function is as simple as PlaySound.



Do you have it so players log in to a starting point? Then around that starting point paint a trigger that plays a sound. Should be kinda simple.
               
               

               
            

Legacy_Cablefish

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Server sound alerts?
« Reply #2 on: July 27, 2010, 11:06:07 pm »


               No. You see. I want to have another program or app make the sound. I dont want NWN open. See i'm waiting for players to join my server so i can jump in and be a neat DM and entertain them.
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Server sound alerts?
« Reply #3 on: July 28, 2010, 12:05:36 am »


               Ohhhh...yeah have no idea then...lol...might be something to se if the NWNX guys have something for you if you have it. Sorry i could not help.
               
               

               
            

Legacy_Cablefish

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Server sound alerts?
« Reply #4 on: July 28, 2010, 12:37:14 am »


               I've gotten mad at the NWNX bunch since i found out that NWNX didn't work on any XP 64 bit systems...



Besides, the server I'm hosting is utilizing biowares database. I find that so much neater as it saves me from learning how to make my own database.



Thanks anyway. I'll see if i can get some of my non NWN nerd friends to help me here since it doesn't necessarily have to be about NWN.
               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Server sound alerts?
« Reply #5 on: July 29, 2010, 03:50:44 am »


               A simple UDP program can do this.



I made one for querying server status last year, I dont have it on me, but the query string in udp is the following. Fantastic Memory I have.... Lol


\\xFE\\xFD\\x00\\xE9\\x49\\x04\\x05\\x14\\x01\\x0B\\x01\\x05\\x08\\x0A\\x33\\x34\\x35\\x13\\x04\\x36\\x37\\x38\\x39\\x14\\x3A\\x3B\\x3C\\x3D\\x00\\x00



Send this to your server, on the game port, and via UDP, and the response you get, should be all the gamespy info deliminated by \\x00.  Doing a String Explode, will split it up, so you get all the info you need.



If you want, I can try to make a simple wee application that can do what you want.

Ya dont mind if I brand it though? Lol
               
               

               
            

Legacy_Cablefish

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Server sound alerts?
« Reply #6 on: August 05, 2010, 10:55:35 am »


               Sorry i didn't understand that at all. What did those numbers do again?

An app would be nice but could it be noob friendly? And make a sound if players join the server?
               
               

               


                     Modifié par Cablefish, 05 août 2010 - 09:56 .
                     
                  


            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
Server sound alerts?
« Reply #7 on: September 02, 2010, 06:23:33 am »


               i've been looking for this as well, but was told it's a no go. if it can be done, posting a link would be very nice '<img'>
               
               

               
            

Legacy_Lyceq

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Server sound alerts?
« Reply #8 on: September 08, 2010, 02:45:58 pm »


               Thanks for the byte stream Baaleos. What method did you use to obtain it?

I created a simple Windows program to supply the byte stream to a server and display the response. Everyone is welcome to download it from here and test it out. Note that the output is still very raw. The only change is to turn the nulls into new lines.

If the OP is still interested in having it take action (such as a sound) when something in the response changes then I will add it. Anyone is free to ask for additional functionality. If there isn't any interest then I'll just move along.
               
               

               


                     Modifié par Lyceq, 08 septembre 2010 - 01:51 .
                     
                  


            

Legacy_Lyceq

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Server sound alerts?
« Reply #9 on: September 12, 2010, 07:23:17 am »


               A new version is available here. The query tool now parses the data into fields for improved readability. There is also a new tool that will display basic information about multiple servers and can automatically refresh the data at regular intervals.

The next features I'm going to add are retention of data between sessions and some appearance customizability. (Weird how customizability isn't in the dictionary.) After that I'll work on adding events for when server details change between refreshes and then it will do what I want and what the OP wanted.