Re: [hlds] TF2: Web Control used during MOTD
If you have psychostats you can just pull the info via IP lookup on your PS database whitout any extra databases or plugins. Simply have your MOTD page redirect to a php (or asp or whatever the crap you use) script and have it lookup the SteamID from the Psychostats database using the IP of the user connection then load whatever associated info you would need. If HLStatsX supports IP searching then the same thing could be done by using a server side script to add the IP into the search query for HlStatsX and display the page that turns up. If you have played on the Lotus Clan servers lately this page will show your most used game name and steam id: http://stats.lotusclan.com/ Sourceop has a similar thing going whitout the use of psychostats (using his own plugin probably): http://www.sourceop.com/modules.php?name=SOPDonate My friend pulled ranking stats on his CSS server's MOTD page but I can't find the url, he's probably dead now anyway. On Tue, Oct 28, 2008 at 9:15 PM, "[ЯтR] The-/ wrote: > Does it have to be only that person? you could just put an iframe in > your motd to a page with the server's current player statistics from > hlstatsx. > > If the user doesnt look for their own name then its their fault... > > >> You wouldn't need the IP in the URL and thus wouldn't need custom URLs > for > >> each player. The server is already aware of the user's IP and can be > access > >> in php with a variable. > >> > >> -Original Message- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk > >> Sent: Tuesday, October 28, 2008 11:05 AM > >> To: Half-Life dedicated Win32 server mailing list > >> Subject: Re: [hlds] TF2: Web Control used during MOTD > >> > >> On client auth, have their steamid and ip shoved into a sql table. Then > >> have the motd redirect to another page with user browsing's ip in the > >> url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of > >> grabbing the row from the sql table using their IP to get their steamid > >> and then their stats/whatever you want. > >> > >> Karl Weckstrom wrote: > >> > >> > >>> Have a snippet of code as an example? Which connect event? Where can > the > >>> > >>> > >> web control grab it? > >> > >> > >>> -Original Message- > >>> From: [EMAIL PROTECTED] > >>> > >>> > >> [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal > >> > >> > >>> Sent: Tuesday, October 28, 2008 11:05 AM > >>> To: Half-Life dedicated Win32 server mailing list > >>> Subject: Re: [hlds] TF2: Web Control used during MOTD > >>> > >>> You grab their SteamID from the connect event, and then you force > another > >>> window open in the place of the MOTD. On the client's end, it just > looks > >>> like another MOTD, but it's actually customized based on their SteamID. > >>> > >>> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> > >>> > >>> > >> wrote: > >> > >> > >>> > >>> > >>> > >>>> It may - but it's a whole chicken/egg scenario. If you've connected > and > >>>> > >>>> > >> are > >> > >> > >>>> staring at the MOTD, where do you pull the user's Steam ID from? There > >>>> > >>>> > >> would > >> > >> > >>>> have to be some way to get it programmatically via js/vbs or what > not... > >>>> > >>>> -Original Message- > >>>> From: [EMAIL PROTECTED] [mailto: > >>>> [EMAIL PROTECTED] On Behalf Of Olly > >>>> Sent: Tuesday, October 28, 2008 10:58 AM > >>>> To: Half-Life dedicated Win32 server mailing list > >>>> Subject: Re: [hlds] TF2: Web Control used during MOTD > >>>> > >>>> Doesnt hlstatsx (or maybe psychostats) already do this? > >>>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> > >>>> > >>>> > >>>> > >>>> > >>>>> You could use the player connect event to grab their SteamID, then > use > >>>>> their > >>>>> SteamID as an argument to grab their stats. > >>>>> > >>>>> It would probably require that you force a browser wi
Re: [hlds] TF2: Web Control used during MOTD
Does it have to be only that person? you could just put an iframe in your motd to a page with the server's current player statistics from hlstatsx. If the user doesnt look for their own name then its their fault... bl4nk wrote: > Hah, yeah, you're right. I have no idea why I thought you would need to > redirect, seeing as how you already have the IP address. > > Tony Paloma wrote: > >> You wouldn't need the IP in the URL and thus wouldn't need custom URLs for >> each player. The server is already aware of the user's IP and can be access >> in php with a variable. >> >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> On client auth, have their steamid and ip shoved into a sql table. Then >> have the motd redirect to another page with user browsing's ip in the >> url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of >> grabbing the row from the sql table using their IP to get their steamid >> and then their stats/whatever you want. >> >> Karl Weckstrom wrote: >> >> >>> Have a snippet of code as an example? Which connect event? Where can the >>> >>> >> web control grab it? >> >> >>> -Original Message- >>> From: [EMAIL PROTECTED] >>> >>> >> [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal >> >> >>> Sent: Tuesday, October 28, 2008 11:05 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> You grab their SteamID from the connect event, and then you force another >>> window open in the place of the MOTD. On the client's end, it just looks >>> like another MOTD, but it's actually customized based on their SteamID. >>> >>> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>> >>> >> wrote: >> >> >>> >>> >>> >>>> It may - but it's a whole chicken/egg scenario. If you've connected and >>>> >>>> >> are >> >> >>>> staring at the MOTD, where do you pull the user's Steam ID from? There >>>> >>>> >> would >> >> >>>> have to be some way to get it programmatically via js/vbs or what not... >>>> >>>> -Original Message- >>>> From: [EMAIL PROTECTED] [mailto: >>>> [EMAIL PROTECTED] On Behalf Of Olly >>>> Sent: Tuesday, October 28, 2008 10:58 AM >>>> To: Half-Life dedicated Win32 server mailing list >>>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>>> >>>> Doesnt hlstatsx (or maybe psychostats) already do this? >>>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>>> >>>> >>>> >>>> >>>>> You could use the player connect event to grab their SteamID, then use >>>>> their >>>>> SteamID as an argument to grab their stats. >>>>> >>>>> It would probably require that you force a browser window open on them >>>>> >>>>> >> as >> >> >>>>> soon as they get in game to override the default motd. >>>>> >>>>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>>>> wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Here's an interesting question. >>>>>> >>>>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in and of >>>>>> itself isn't interesting, but I was thinking - is there a way to "read" >>>>>> >>>>>> >>>>>> >>>>> the >>>>> >>>>> >>>>> >>>>>> current steam ID of the person who's connected and reading the MOTD? >>>>>
Re: [hlds] TF2: Web Control used during MOTD
Hah, yeah, you're right. I have no idea why I thought you would need to redirect, seeing as how you already have the IP address. Tony Paloma wrote: > You wouldn't need the IP in the URL and thus wouldn't need custom URLs for > each player. The server is already aware of the user's IP and can be access > in php with a variable. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk > Sent: Tuesday, October 28, 2008 11:05 AM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > On client auth, have their steamid and ip shoved into a sql table. Then > have the motd redirect to another page with user browsing's ip in the > url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of > grabbing the row from the sql table using their IP to get their steamid > and then their stats/whatever you want. > > Karl Weckstrom wrote: > >> Have a snippet of code as an example? Which connect event? Where can the >> > web control grab it? > >> -Original Message- >> From: [EMAIL PROTECTED] >> > [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal > >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> You grab their SteamID from the connect event, and then you force another >> window open in the place of the MOTD. On the client's end, it just looks >> like another MOTD, but it's actually customized based on their SteamID. >> >> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> >> > wrote: > >> >> >>> It may - but it's a whole chicken/egg scenario. If you've connected and >>> > are > >>> staring at the MOTD, where do you pull the user's Steam ID from? There >>> > would > >>> have to be some way to get it programmatically via js/vbs or what not... >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] On Behalf Of Olly >>> Sent: Tuesday, October 28, 2008 10:58 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> Doesnt hlstatsx (or maybe psychostats) already do this? >>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>> >>> >>> >>>> You could use the player connect event to grab their SteamID, then use >>>> their >>>> SteamID as an argument to grab their stats. >>>> >>>> It would probably require that you force a browser window open on them >>>> > as > >>>> soon as they get in game to override the default motd. >>>> >>>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>>> wrote: >>>> >>>> >>>> >>>>> Here's an interesting question. >>>>> >>>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in and of >>>>> itself isn't interesting, but I was thinking - is there a way to "read" >>>>> >>>>> >>>> the >>>> >>>> >>>>> current steam ID of the person who's connected and reading the MOTD? >>>>> >>>>> I could write up some dynamic html and/or vbscript that could look up >>>>> >>>>> >>>> their >>>> >>>> >>>>> current ranking in hlstatsx and have the MOTD say something like "You >>>>> >>>>> >>> are >>> >>> >>>>> currently ranked XXX of players"... I'm already putting the top 10 >>>>> there, but adding the player's current ranking sure would be a nice >>>>> >>>>> >>>> touch. >>>> >>>> >>>>> Thanks in advance! >>>>> -karl >>>>> >>>>> www.TrashedGamers.com >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _
Re: [hlds] TF2: Web Control used during MOTD
You wouldn't need the IP in the URL and thus wouldn't need custom URLs for each player. The server is already aware of the user's IP and can be access in php with a variable. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk Sent: Tuesday, October 28, 2008 11:05 AM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD On client auth, have their steamid and ip shoved into a sql table. Then have the motd redirect to another page with user browsing's ip in the url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of grabbing the row from the sql table using their IP to get their steamid and then their stats/whatever you want. Karl Weckstrom wrote: > Have a snippet of code as an example? Which connect event? Where can the web control grab it? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal > Sent: Tuesday, October 28, 2008 11:05 AM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > You grab their SteamID from the connect event, and then you force another > window open in the place of the MOTD. On the client's end, it just looks > like another MOTD, but it's actually customized based on their SteamID. > > On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > > >> It may - but it's a whole chicken/egg scenario. If you've connected and are >> staring at the MOTD, where do you pull the user's Steam ID from? There would >> have to be some way to get it programmatically via js/vbs or what not... >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] On Behalf Of Olly >> Sent: Tuesday, October 28, 2008 10:58 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> Doesnt hlstatsx (or maybe psychostats) already do this? >> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >> >> >>> You could use the player connect event to grab their SteamID, then use >>> their >>> SteamID as an argument to grab their stats. >>> >>> It would probably require that you force a browser window open on them as >>> soon as they get in game to override the default motd. >>> >>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>> wrote: >>> >>> >>>> Here's an interesting question. >>>> >>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in and of >>>> itself isn't interesting, but I was thinking - is there a way to "read" >>>> >>> the >>> >>>> current steam ID of the person who's connected and reading the MOTD? >>>> >>>> I could write up some dynamic html and/or vbscript that could look up >>>> >>> their >>> >>>> current ranking in hlstatsx and have the MOTD say something like "You >>>> >> are >> >>>> currently ranked XXX of players"... I'm already putting the top 10 >>>> there, but adding the player's current ranking sure would be a nice >>>> >>> touch. >>> >>>> Thanks in advance! >>>> -karl >>>> >>>> www.TrashedGamers.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> ___ >>>> To unsubscribe, edit your list preferences, or view the list archives, >>>> please visit: >>>> http://list.valvesoftware.com/mailman/listinfo/hlds >>>> >>>> >>> ___ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlds >>> >>> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds >> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds >> >> > ___ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > ___ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
Your MOTD page script is hosted somewhere on Web server (provided you are not using static motd.txt file) and your Web server can distinguish clients only by IP address. Your game server on other hand know both IP address and STEAMID so the only trick here is to pass this information to your MOTD script, this is where SM plugin comes into picture. Plugin inserts IP-STEAMID pair into database so your MOTD script can find client's STEAMID using his IP address which is the only client information you can have on your Web server. On Tue, Oct 28, 2008 at 9:44 PM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > Well, it's somewhat roundabout... but it looks like it would work. Is there a > reason I'd have to work with the client IP? I really only care about matching > up a user's steam ID with their record in hlstatsx. > > For that, I don't really need an IP, unless it's something I'm forced to work > with for some reason :) > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Hatsiev > Sent: Tuesday, October 28, 2008 2:35 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > Yes, you need SourceMod plugin for this, rather simple one though. > Here is an idea: > > 1. Upon client connect plugin insert a record into database which > contains IP address of client, his STEAMID and time of connection. > > 2. You MOTD page script looks at client IP address and checks it > against database to find that IP address among connections made within > last minute and bingo - you've got your client's STEAMID! > > There may be a problem in some cases like multiple clients connecting > to your server from behind the NAT which uses the same IP address for > all clients or another client who surfs the Web via proxy server whose > address is different from the one client uses to connect to your > server but in most cases this will be quite reliable solution. > > Also you may need to cleanup outdated records from your database > somehow, MOTD page script can do this prior to every query. > > SM plugin is really simple, I can write it for you in few minutes :) > And if you are not happy with full scale SM installation you can run > it without any plugins except this one so it will not interfere your > existing configuration. > > Regards, > > Roman > > On Tue, Oct 28, 2008 at 9:18 PM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: >> I understand what you're saying - what you're not providing is a mechanism... >> >> Said steam ID exists somewhere as a variable - but how do you read that >> variable? Via what mechanism? >> >> Honestly, if the answer is creating a new plugin for Sourcemod, we can stop >> right here :) I don't feel up to coding anything in sourcemod. >> >> However, if there's a way to access those variables from the web control, I >> could easily write something in vbscript that could parse the data from the >> hlstatsx pages. >> >> So, is there a way? It could be a simple "No", and I would be ok with that. >> >> My knee-jerk reaction is that it isn't possible because those variables >> aren't made available to the embedded browser used for the MOTD - but maybe >> someone knows something I don't. >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk >> Sent: Tuesday, October 28, 2008 2:05 PM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> On client auth, have their steamid and ip shoved into a sql table. Then >> have the motd redirect to another page with user browsing's ip in the >> url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of >> grabbing the row from the sql table using their IP to get their steamid >> and then their stats/whatever you want. >> >> Karl Weckstrom wrote: >>> Have a snippet of code as an example? Which connect event? Where can the >>> web control grab it? >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal >>> Sent: Tuesday, October 28, 2008 11:05 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> You grab their SteamID from the connect event, and then you force another >>> window open in the place of the MOTD. On the client's end, it just looks >>> like another MOTD, but
Re: [hlds] TF2: Web Control used during MOTD
I'll give that a shot. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus Thurlin Sent: Tuesday, October 28, 2008 2:48 PM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD Just do something like print_r($_REQUEST); in your MOTD-page (if you are using php) and you will know instantly if the motd-webclient provides any metadata for the request. I highly doubt it though. > I have, and I don't see any interfaces that MANI provides to do this. > > Again, the question remains - are there any variables readable by the web > control that I can leverage for this? I would hope someone knows... Then it > would be as simple as coding some vbscript or php. > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
Just do something like print_r($_REQUEST); in your MOTD-page (if you are using php) and you will know instantly if the motd-webclient provides any metadata for the request. I highly doubt it though. > I have, and I don't see any interfaces that MANI provides to do this. > > Again, the question remains - are there any variables readable by the web > control that I can leverage for this? I would hope someone knows... Then it > would be as simple as coding some vbscript or php. > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
Well, it's somewhat roundabout... but it looks like it would work. Is there a reason I'd have to work with the client IP? I really only care about matching up a user's steam ID with their record in hlstatsx. For that, I don't really need an IP, unless it's something I'm forced to work with for some reason :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Hatsiev Sent: Tuesday, October 28, 2008 2:35 PM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD Yes, you need SourceMod plugin for this, rather simple one though. Here is an idea: 1. Upon client connect plugin insert a record into database which contains IP address of client, his STEAMID and time of connection. 2. You MOTD page script looks at client IP address and checks it against database to find that IP address among connections made within last minute and bingo - you've got your client's STEAMID! There may be a problem in some cases like multiple clients connecting to your server from behind the NAT which uses the same IP address for all clients or another client who surfs the Web via proxy server whose address is different from the one client uses to connect to your server but in most cases this will be quite reliable solution. Also you may need to cleanup outdated records from your database somehow, MOTD page script can do this prior to every query. SM plugin is really simple, I can write it for you in few minutes :) And if you are not happy with full scale SM installation you can run it without any plugins except this one so it will not interfere your existing configuration. Regards, Roman On Tue, Oct 28, 2008 at 9:18 PM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > I understand what you're saying - what you're not providing is a mechanism... > > Said steam ID exists somewhere as a variable - but how do you read that > variable? Via what mechanism? > > Honestly, if the answer is creating a new plugin for Sourcemod, we can stop > right here :) I don't feel up to coding anything in sourcemod. > > However, if there's a way to access those variables from the web control, I > could easily write something in vbscript that could parse the data from the > hlstatsx pages. > > So, is there a way? It could be a simple "No", and I would be ok with that. > > My knee-jerk reaction is that it isn't possible because those variables > aren't made available to the embedded browser used for the MOTD - but maybe > someone knows something I don't. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk > Sent: Tuesday, October 28, 2008 2:05 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > On client auth, have their steamid and ip shoved into a sql table. Then > have the motd redirect to another page with user browsing's ip in the > url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of > grabbing the row from the sql table using their IP to get their steamid > and then their stats/whatever you want. > > Karl Weckstrom wrote: >> Have a snippet of code as an example? Which connect event? Where can the web >> control grab it? >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> You grab their SteamID from the connect event, and then you force another >> window open in the place of the MOTD. On the client's end, it just looks >> like another MOTD, but it's actually customized based on their SteamID. >> >> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: >> >> >>> It may - but it's a whole chicken/egg scenario. If you've connected and are >>> staring at the MOTD, where do you pull the user's Steam ID from? There would >>> have to be some way to get it programmatically via js/vbs or what not... >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] On Behalf Of Olly >>> Sent: Tuesday, October 28, 2008 10:58 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> Doesnt hlstatsx (or maybe psychostats) already do this? >>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>> >>> >>>> You could use the player conne
Re: [hlds] TF2: Web Control used during MOTD
I have, and I don't see any interfaces that MANI provides to do this. Again, the question remains - are there any variables readable by the web control that I can leverage for this? I would hope someone knows... Then it would be as simple as coding some vbscript or php. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of stutters Sent: Tuesday, October 28, 2008 2:30 PM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD Understandable, but it might be worth looking at Mani to see how it's done. Matt "stutters" Albiniak Gamerscoalition [EMAIL PROTECTED] http://www.gamerscoalition.com On Oct 28, 2008, at 1:25 PM, Karl Weckstrom wrote: > I'm trying to AVOID using more plugins if at all possible. Sourcemod > alone is problematic enough. > > Besides, I don't see how using Mani would make it any better if you > can't read variables from within the control that renders the MOTD - > unless you're using mani to facilitate a page rewrite (something > else I would rather do myself via vbscript or php and not with > plugin bloat). > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > ] On Behalf Of stutters > Sent: Tuesday, October 28, 2008 2:22 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > Apparently my "use mani + hlstatsx" recommendation fell on deaf ears. > > *shrug* > > Matt "stutters" Albiniak > Gamerscoalition > [EMAIL PROTECTED] > http://www.gamerscoalition.com > > On Oct 28, 2008, at 1:18 PM, Karl Weckstrom wrote: > >> I understand what you're saying - what you're not providing is a >> mechanism... >> >> Said steam ID exists somewhere as a variable - but how do you read >> that variable? Via what mechanism? >> >> Honestly, if the answer is creating a new plugin for Sourcemod, we >> can stop right here :) I don't feel up to coding anything in >> sourcemod. >> >> However, if there's a way to access those variables from the web >> control, I could easily write something in vbscript that could parse >> the data from the hlstatsx pages. >> >> So, is there a way? It could be a simple "No", and I would be ok >> with that. >> >> My knee-jerk reaction is that it isn't possible because those >> variables aren't made available to the embedded browser used for the >> MOTD - but maybe someone knows something I don't. >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> ] On Behalf Of bl4nk >> Sent: Tuesday, October 28, 2008 2:05 PM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> On client auth, have their steamid and ip shoved into a sql table. >> Then >> have the motd redirect to another page with user browsing's ip in the >> url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case >> of >> grabbing the row from the sql table using their IP to get their >> steamid >> and then their stats/whatever you want. >> >> Karl Weckstrom wrote: >>> Have a snippet of code as an example? Which connect event? Where >>> can the web control grab it? >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>> ] On Behalf Of P. Bhandal >>> Sent: Tuesday, October 28, 2008 11:05 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> You grab their SteamID from the connect event, and then you force >>> another >>> window open in the place of the MOTD. On the client's end, it just >>> looks >>> like another MOTD, but it's actually customized based on their >>> SteamID. >>> >>> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom >>> <[EMAIL PROTECTED]> wrote: >>> >>> >>>> It may - but it's a whole chicken/egg scenario. If you've >>>> connected and are >>>> staring at the MOTD, where do you pull the user's Steam ID from? >>>> There would >>>> have to be some way to get it programmatically via js/vbs or what >>>> not... >>>> >>>> -Original Message- >>>> From: [EMAIL PROTECTED] [mailto: >>>> [EMAIL PROTECTED] On Behalf Of Olly >>>> Sent:
Re: [hlds] TF2: Web Control used during MOTD
Understandable, but it might be worth looking at Mani to see how it's done. Matt "stutters" Albiniak Gamerscoalition [EMAIL PROTECTED] http://www.gamerscoalition.com On Oct 28, 2008, at 1:25 PM, Karl Weckstrom wrote: > I'm trying to AVOID using more plugins if at all possible. Sourcemod > alone is problematic enough. > > Besides, I don't see how using Mani would make it any better if you > can't read variables from within the control that renders the MOTD - > unless you're using mani to facilitate a page rewrite (something > else I would rather do myself via vbscript or php and not with > plugin bloat). > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > ] On Behalf Of stutters > Sent: Tuesday, October 28, 2008 2:22 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > Apparently my "use mani + hlstatsx" recommendation fell on deaf ears. > > *shrug* > > Matt "stutters" Albiniak > Gamerscoalition > [EMAIL PROTECTED] > http://www.gamerscoalition.com > > On Oct 28, 2008, at 1:18 PM, Karl Weckstrom wrote: > >> I understand what you're saying - what you're not providing is a >> mechanism... >> >> Said steam ID exists somewhere as a variable - but how do you read >> that variable? Via what mechanism? >> >> Honestly, if the answer is creating a new plugin for Sourcemod, we >> can stop right here :) I don't feel up to coding anything in >> sourcemod. >> >> However, if there's a way to access those variables from the web >> control, I could easily write something in vbscript that could parse >> the data from the hlstatsx pages. >> >> So, is there a way? It could be a simple "No", and I would be ok >> with that. >> >> My knee-jerk reaction is that it isn't possible because those >> variables aren't made available to the embedded browser used for the >> MOTD - but maybe someone knows something I don't. >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> ] On Behalf Of bl4nk >> Sent: Tuesday, October 28, 2008 2:05 PM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> On client auth, have their steamid and ip shoved into a sql table. >> Then >> have the motd redirect to another page with user browsing's ip in the >> url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case >> of >> grabbing the row from the sql table using their IP to get their >> steamid >> and then their stats/whatever you want. >> >> Karl Weckstrom wrote: >>> Have a snippet of code as an example? Which connect event? Where >>> can the web control grab it? >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>> ] On Behalf Of P. Bhandal >>> Sent: Tuesday, October 28, 2008 11:05 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> You grab their SteamID from the connect event, and then you force >>> another >>> window open in the place of the MOTD. On the client's end, it just >>> looks >>> like another MOTD, but it's actually customized based on their >>> SteamID. >>> >>> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom >>> <[EMAIL PROTECTED]> wrote: >>> >>> >>>> It may - but it's a whole chicken/egg scenario. If you've >>>> connected and are >>>> staring at the MOTD, where do you pull the user's Steam ID from? >>>> There would >>>> have to be some way to get it programmatically via js/vbs or what >>>> not... >>>> >>>> -Original Message- >>>> From: [EMAIL PROTECTED] [mailto: >>>> [EMAIL PROTECTED] On Behalf Of Olly >>>> Sent: Tuesday, October 28, 2008 10:58 AM >>>> To: Half-Life dedicated Win32 server mailing list >>>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>>> >>>> Doesnt hlstatsx (or maybe psychostats) already do this? >>>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>>> >>>> >>>>> You could use the player connect event to grab their SteamID, >>>>> then use >>>>> their >>>>> Ste
Re: [hlds] TF2: Web Control used during MOTD
30 line script (max) in es. So long as the motd can be dismissed. Hop on the forums and someone can code it for ya. Sent from my BlackBerry® wireless device -Original Message- From: stutters <[EMAIL PROTECTED]> Date: Tue, 28 Oct 2008 13:21:49 To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD Apparently my "use mani + hlstatsx" recommendation fell on deaf ears. *shrug* Matt "stutters" Albiniak Gamerscoalition [EMAIL PROTECTED] http://www.gamerscoalition.com On Oct 28, 2008, at 1:18 PM, Karl Weckstrom wrote: > I understand what you're saying - what you're not providing is a > mechanism... > > Said steam ID exists somewhere as a variable - but how do you read > that variable? Via what mechanism? > > Honestly, if the answer is creating a new plugin for Sourcemod, we > can stop right here :) I don't feel up to coding anything in > sourcemod. > > However, if there's a way to access those variables from the web > control, I could easily write something in vbscript that could parse > the data from the hlstatsx pages. > > So, is there a way? It could be a simple "No", and I would be ok > with that. > > My knee-jerk reaction is that it isn't possible because those > variables aren't made available to the embedded browser used for the > MOTD - but maybe someone knows something I don't. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > ] On Behalf Of bl4nk > Sent: Tuesday, October 28, 2008 2:05 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > On client auth, have their steamid and ip shoved into a sql table. > Then > have the motd redirect to another page with user browsing's ip in the > url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case > of > grabbing the row from the sql table using their IP to get their > steamid > and then their stats/whatever you want. > > Karl Weckstrom wrote: >> Have a snippet of code as an example? Which connect event? Where >> can the web control grab it? >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> ] On Behalf Of P. Bhandal >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> You grab their SteamID from the connect event, and then you force >> another >> window open in the place of the MOTD. On the client's end, it just >> looks >> like another MOTD, but it's actually customized based on their >> SteamID. >> >> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom >> <[EMAIL PROTECTED]> wrote: >> >> >>> It may - but it's a whole chicken/egg scenario. If you've >>> connected and are >>> staring at the MOTD, where do you pull the user's Steam ID from? >>> There would >>> have to be some way to get it programmatically via js/vbs or what >>> not... >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] On Behalf Of Olly >>> Sent: Tuesday, October 28, 2008 10:58 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> Doesnt hlstatsx (or maybe psychostats) already do this? >>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>> >>> >>>> You could use the player connect event to grab their SteamID, >>>> then use >>>> their >>>> SteamID as an argument to grab their stats. >>>> >>>> It would probably require that you force a browser window open on >>>> them as >>>> soon as they get in game to override the default motd. >>>> >>>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED] >>>> > >>>> wrote: >>>> >>>> >>>>> Here's an interesting question. >>>>> >>>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in >>>>> and of >>>>> itself isn't interesting, but I was thinking - is there a way to >>>>> "read" >>>>> >>>> the >>>> >>>>> current steam ID of the person who's connected and reading the >>>>> MOTD? >>>&
Re: [hlds] TF2: Web Control used during MOTD
Yes, you need SourceMod plugin for this, rather simple one though. Here is an idea: 1. Upon client connect plugin insert a record into database which contains IP address of client, his STEAMID and time of connection. 2. You MOTD page script looks at client IP address and checks it against database to find that IP address among connections made within last minute and bingo - you've got your client's STEAMID! There may be a problem in some cases like multiple clients connecting to your server from behind the NAT which uses the same IP address for all clients or another client who surfs the Web via proxy server whose address is different from the one client uses to connect to your server but in most cases this will be quite reliable solution. Also you may need to cleanup outdated records from your database somehow, MOTD page script can do this prior to every query. SM plugin is really simple, I can write it for you in few minutes :) And if you are not happy with full scale SM installation you can run it without any plugins except this one so it will not interfere your existing configuration. Regards, Roman On Tue, Oct 28, 2008 at 9:18 PM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > I understand what you're saying - what you're not providing is a mechanism... > > Said steam ID exists somewhere as a variable - but how do you read that > variable? Via what mechanism? > > Honestly, if the answer is creating a new plugin for Sourcemod, we can stop > right here :) I don't feel up to coding anything in sourcemod. > > However, if there's a way to access those variables from the web control, I > could easily write something in vbscript that could parse the data from the > hlstatsx pages. > > So, is there a way? It could be a simple "No", and I would be ok with that. > > My knee-jerk reaction is that it isn't possible because those variables > aren't made available to the embedded browser used for the MOTD - but maybe > someone knows something I don't. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk > Sent: Tuesday, October 28, 2008 2:05 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > On client auth, have their steamid and ip shoved into a sql table. Then > have the motd redirect to another page with user browsing's ip in the > url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of > grabbing the row from the sql table using their IP to get their steamid > and then their stats/whatever you want. > > Karl Weckstrom wrote: >> Have a snippet of code as an example? Which connect event? Where can the web >> control grab it? >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> You grab their SteamID from the connect event, and then you force another >> window open in the place of the MOTD. On the client's end, it just looks >> like another MOTD, but it's actually customized based on their SteamID. >> >> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: >> >> >>> It may - but it's a whole chicken/egg scenario. If you've connected and are >>> staring at the MOTD, where do you pull the user's Steam ID from? There would >>> have to be some way to get it programmatically via js/vbs or what not... >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] On Behalf Of Olly >>> Sent: Tuesday, October 28, 2008 10:58 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> Doesnt hlstatsx (or maybe psychostats) already do this? >>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>> >>> >>>> You could use the player connect event to grab their SteamID, then use >>>> their >>>> SteamID as an argument to grab their stats. >>>> >>>> It would probably require that you force a browser window open on them as >>>> soon as they get in game to override the default motd. >>>> >>>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>>> wrote: >>>> >>>> >>>>> Here's an interesting question. >>>>> >>>>> Over at www.TrashedGamers.co
Re: [hlds] TF2: Web Control used during MOTD
I'm trying to AVOID using more plugins if at all possible. Sourcemod alone is problematic enough. Besides, I don't see how using Mani would make it any better if you can't read variables from within the control that renders the MOTD - unless you're using mani to facilitate a page rewrite (something else I would rather do myself via vbscript or php and not with plugin bloat). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of stutters Sent: Tuesday, October 28, 2008 2:22 PM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD Apparently my "use mani + hlstatsx" recommendation fell on deaf ears. *shrug* Matt "stutters" Albiniak Gamerscoalition [EMAIL PROTECTED] http://www.gamerscoalition.com On Oct 28, 2008, at 1:18 PM, Karl Weckstrom wrote: > I understand what you're saying - what you're not providing is a > mechanism... > > Said steam ID exists somewhere as a variable - but how do you read > that variable? Via what mechanism? > > Honestly, if the answer is creating a new plugin for Sourcemod, we > can stop right here :) I don't feel up to coding anything in > sourcemod. > > However, if there's a way to access those variables from the web > control, I could easily write something in vbscript that could parse > the data from the hlstatsx pages. > > So, is there a way? It could be a simple "No", and I would be ok > with that. > > My knee-jerk reaction is that it isn't possible because those > variables aren't made available to the embedded browser used for the > MOTD - but maybe someone knows something I don't. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > ] On Behalf Of bl4nk > Sent: Tuesday, October 28, 2008 2:05 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > On client auth, have their steamid and ip shoved into a sql table. > Then > have the motd redirect to another page with user browsing's ip in the > url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case > of > grabbing the row from the sql table using their IP to get their > steamid > and then their stats/whatever you want. > > Karl Weckstrom wrote: >> Have a snippet of code as an example? Which connect event? Where >> can the web control grab it? >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> ] On Behalf Of P. Bhandal >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> You grab their SteamID from the connect event, and then you force >> another >> window open in the place of the MOTD. On the client's end, it just >> looks >> like another MOTD, but it's actually customized based on their >> SteamID. >> >> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom >> <[EMAIL PROTECTED]> wrote: >> >> >>> It may - but it's a whole chicken/egg scenario. If you've >>> connected and are >>> staring at the MOTD, where do you pull the user's Steam ID from? >>> There would >>> have to be some way to get it programmatically via js/vbs or what >>> not... >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] On Behalf Of Olly >>> Sent: Tuesday, October 28, 2008 10:58 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> Doesnt hlstatsx (or maybe psychostats) already do this? >>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>> >>> >>>> You could use the player connect event to grab their SteamID, >>>> then use >>>> their >>>> SteamID as an argument to grab their stats. >>>> >>>> It would probably require that you force a browser window open on >>>> them as >>>> soon as they get in game to override the default motd. >>>> >>>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED] >>>> > >>>> wrote: >>>> >>>> >>>>> Here's an interesting question. >>>>> >>>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in >>>>> and of >>>>> itself isn't intere
Re: [hlds] TF2: Web Control used during MOTD
Apparently my "use mani + hlstatsx" recommendation fell on deaf ears. *shrug* Matt "stutters" Albiniak Gamerscoalition [EMAIL PROTECTED] http://www.gamerscoalition.com On Oct 28, 2008, at 1:18 PM, Karl Weckstrom wrote: > I understand what you're saying - what you're not providing is a > mechanism... > > Said steam ID exists somewhere as a variable - but how do you read > that variable? Via what mechanism? > > Honestly, if the answer is creating a new plugin for Sourcemod, we > can stop right here :) I don't feel up to coding anything in > sourcemod. > > However, if there's a way to access those variables from the web > control, I could easily write something in vbscript that could parse > the data from the hlstatsx pages. > > So, is there a way? It could be a simple "No", and I would be ok > with that. > > My knee-jerk reaction is that it isn't possible because those > variables aren't made available to the embedded browser used for the > MOTD - but maybe someone knows something I don't. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > ] On Behalf Of bl4nk > Sent: Tuesday, October 28, 2008 2:05 PM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > On client auth, have their steamid and ip shoved into a sql table. > Then > have the motd redirect to another page with user browsing's ip in the > url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case > of > grabbing the row from the sql table using their IP to get their > steamid > and then their stats/whatever you want. > > Karl Weckstrom wrote: >> Have a snippet of code as an example? Which connect event? Where >> can the web control grab it? >> >> -Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> ] On Behalf Of P. Bhandal >> Sent: Tuesday, October 28, 2008 11:05 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> You grab their SteamID from the connect event, and then you force >> another >> window open in the place of the MOTD. On the client's end, it just >> looks >> like another MOTD, but it's actually customized based on their >> SteamID. >> >> On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom >> <[EMAIL PROTECTED]> wrote: >> >> >>> It may - but it's a whole chicken/egg scenario. If you've >>> connected and are >>> staring at the MOTD, where do you pull the user's Steam ID from? >>> There would >>> have to be some way to get it programmatically via js/vbs or what >>> not... >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] On Behalf Of Olly >>> Sent: Tuesday, October 28, 2008 10:58 AM >>> To: Half-Life dedicated Win32 server mailing list >>> Subject: Re: [hlds] TF2: Web Control used during MOTD >>> >>> Doesnt hlstatsx (or maybe psychostats) already do this? >>> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >>> >>> >>>> You could use the player connect event to grab their SteamID, >>>> then use >>>> their >>>> SteamID as an argument to grab their stats. >>>> >>>> It would probably require that you force a browser window open on >>>> them as >>>> soon as they get in game to override the default motd. >>>> >>>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED] >>>> > >>>> wrote: >>>> >>>> >>>>> Here's an interesting question. >>>>> >>>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in >>>>> and of >>>>> itself isn't interesting, but I was thinking - is there a way to >>>>> "read" >>>>> >>>> the >>>> >>>>> current steam ID of the person who's connected and reading the >>>>> MOTD? >>>>> >>>>> I could write up some dynamic html and/or vbscript that could >>>>> look up >>>>> >>>> their >>>> >>>>> current ranking in hlstatsx and have the MOTD say something like >>>>> "You >>>>> >>> are >>> >>>>>
Re: [hlds] TF2: Web Control used during MOTD
I understand what you're saying - what you're not providing is a mechanism... Said steam ID exists somewhere as a variable - but how do you read that variable? Via what mechanism? Honestly, if the answer is creating a new plugin for Sourcemod, we can stop right here :) I don't feel up to coding anything in sourcemod. However, if there's a way to access those variables from the web control, I could easily write something in vbscript that could parse the data from the hlstatsx pages. So, is there a way? It could be a simple "No", and I would be ok with that. My knee-jerk reaction is that it isn't possible because those variables aren't made available to the embedded browser used for the MOTD - but maybe someone knows something I don't. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bl4nk Sent: Tuesday, October 28, 2008 2:05 PM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD On client auth, have their steamid and ip shoved into a sql table. Then have the motd redirect to another page with user browsing's ip in the url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of grabbing the row from the sql table using their IP to get their steamid and then their stats/whatever you want. Karl Weckstrom wrote: > Have a snippet of code as an example? Which connect event? Where can the web > control grab it? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal > Sent: Tuesday, October 28, 2008 11:05 AM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > You grab their SteamID from the connect event, and then you force another > window open in the place of the MOTD. On the client's end, it just looks > like another MOTD, but it's actually customized based on their SteamID. > > On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > > >> It may - but it's a whole chicken/egg scenario. If you've connected and are >> staring at the MOTD, where do you pull the user's Steam ID from? There would >> have to be some way to get it programmatically via js/vbs or what not... >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] On Behalf Of Olly >> Sent: Tuesday, October 28, 2008 10:58 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> Doesnt hlstatsx (or maybe psychostats) already do this? >> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >> >> >>> You could use the player connect event to grab their SteamID, then use >>> their >>> SteamID as an argument to grab their stats. >>> >>> It would probably require that you force a browser window open on them as >>> soon as they get in game to override the default motd. >>> >>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>> wrote: >>> >>> >>>> Here's an interesting question. >>>> >>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in and of >>>> itself isn't interesting, but I was thinking - is there a way to "read" >>>> >>> the >>> >>>> current steam ID of the person who's connected and reading the MOTD? >>>> >>>> I could write up some dynamic html and/or vbscript that could look up >>>> >>> their >>> >>>> current ranking in hlstatsx and have the MOTD say something like "You >>>> >> are >> >>>> currently ranked XXX of players"... I'm already putting the top 10 >>>> there, but adding the player's current ranking sure would be a nice >>>> >>> touch. >>> >>>> Thanks in advance! >>>> -karl >>>> >>>> www.TrashedGamers.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> ___ >>>> To unsubscribe, edit your list preferences, or view the list archives, >>>> please visit: >>>> http://list.valvesoftware.com/mailman/listinfo/hlds >>>> >>>> >>> ___ >>> To unsubscribe, edit your list preferences, or view the list archives
Re: [hlds] TF2: Web Control used during MOTD
On client auth, have their steamid and ip shoved into a sql table. Then have the motd redirect to another page with user browsing's ip in the url (blah.com/motd?ip=255.255.255.255). Then it's just a simple case of grabbing the row from the sql table using their IP to get their steamid and then their stats/whatever you want. Karl Weckstrom wrote: > Have a snippet of code as an example? Which connect event? Where can the web > control grab it? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal > Sent: Tuesday, October 28, 2008 11:05 AM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > You grab their SteamID from the connect event, and then you force another > window open in the place of the MOTD. On the client's end, it just looks > like another MOTD, but it's actually customized based on their SteamID. > > On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > > >> It may - but it's a whole chicken/egg scenario. If you've connected and are >> staring at the MOTD, where do you pull the user's Steam ID from? There would >> have to be some way to get it programmatically via js/vbs or what not... >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] On Behalf Of Olly >> Sent: Tuesday, October 28, 2008 10:58 AM >> To: Half-Life dedicated Win32 server mailing list >> Subject: Re: [hlds] TF2: Web Control used during MOTD >> >> Doesnt hlstatsx (or maybe psychostats) already do this? >> 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> >> >> >>> You could use the player connect event to grab their SteamID, then use >>> their >>> SteamID as an argument to grab their stats. >>> >>> It would probably require that you force a browser window open on them as >>> soon as they get in game to override the default motd. >>> >>> On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> >>> wrote: >>> >>> >>>> Here's an interesting question. >>>> >>>> Over at www.TrashedGamers.com, we have a custom MOTD. That in and of >>>> itself isn't interesting, but I was thinking - is there a way to "read" >>>> >>> the >>> >>>> current steam ID of the person who's connected and reading the MOTD? >>>> >>>> I could write up some dynamic html and/or vbscript that could look up >>>> >>> their >>> >>>> current ranking in hlstatsx and have the MOTD say something like "You >>>> >> are >> >>>> currently ranked XXX of players"... I'm already putting the top 10 >>>> there, but adding the player's current ranking sure would be a nice >>>> >>> touch. >>> >>>> Thanks in advance! >>>> -karl >>>> >>>> www.TrashedGamers.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> ___ >>>> To unsubscribe, edit your list preferences, or view the list archives, >>>> please visit: >>>> http://list.valvesoftware.com/mailman/listinfo/hlds >>>> >>>> >>> ___ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlds >>> >>> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds >> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds >> >> > ___ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > ___ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
Have a snippet of code as an example? Which connect event? Where can the web control grab it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of P. Bhandal Sent: Tuesday, October 28, 2008 11:05 AM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD You grab their SteamID from the connect event, and then you force another window open in the place of the MOTD. On the client's end, it just looks like another MOTD, but it's actually customized based on their SteamID. On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > It may - but it's a whole chicken/egg scenario. If you've connected and are > staring at the MOTD, where do you pull the user's Steam ID from? There would > have to be some way to get it programmatically via js/vbs or what not... > > -Original Message- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Olly > Sent: Tuesday, October 28, 2008 10:58 AM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > Doesnt hlstatsx (or maybe psychostats) already do this? > 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> > > > You could use the player connect event to grab their SteamID, then use > > their > > SteamID as an argument to grab their stats. > > > > It would probably require that you force a browser window open on them as > > soon as they get in game to override the default motd. > > > > On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> > > wrote: > > > > > Here's an interesting question. > > > > > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > > > itself isn't interesting, but I was thinking - is there a way to "read" > > the > > > current steam ID of the person who's connected and reading the MOTD? > > > > > > I could write up some dynamic html and/or vbscript that could look up > > their > > > current ranking in hlstatsx and have the MOTD say something like "You > are > > > currently ranked XXX of players"... I'm already putting the top 10 > > > there, but adding the player's current ranking sure would be a nice > > touch. > > > > > > Thanks in advance! > > > -karl > > > > > > www.TrashedGamers.com > > > > > > > > > > > > > > > > > > > > > ___ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > ___ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
You grab their SteamID from the connect event, and then you force another window open in the place of the MOTD. On the client's end, it just looks like another MOTD, but it's actually customized based on their SteamID. On Tue, Oct 28, 2008 at 11:02 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > It may - but it's a whole chicken/egg scenario. If you've connected and are > staring at the MOTD, where do you pull the user's Steam ID from? There would > have to be some way to get it programmatically via js/vbs or what not... > > -Original Message- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Olly > Sent: Tuesday, October 28, 2008 10:58 AM > To: Half-Life dedicated Win32 server mailing list > Subject: Re: [hlds] TF2: Web Control used during MOTD > > Doesnt hlstatsx (or maybe psychostats) already do this? > 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> > > > You could use the player connect event to grab their SteamID, then use > > their > > SteamID as an argument to grab their stats. > > > > It would probably require that you force a browser window open on them as > > soon as they get in game to override the default motd. > > > > On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> > > wrote: > > > > > Here's an interesting question. > > > > > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > > > itself isn't interesting, but I was thinking - is there a way to "read" > > the > > > current steam ID of the person who's connected and reading the MOTD? > > > > > > I could write up some dynamic html and/or vbscript that could look up > > their > > > current ranking in hlstatsx and have the MOTD say something like "You > are > > > currently ranked XXX of players"... I'm already putting the top 10 > > > there, but adding the player's current ranking sure would be a nice > > touch. > > > > > > Thanks in advance! > > > -karl > > > > > > www.TrashedGamers.com > > > > > > > > > > > > > > > > > > > > > ___ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > ___ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
It may - but it's a whole chicken/egg scenario. If you've connected and are staring at the MOTD, where do you pull the user's Steam ID from? There would have to be some way to get it programmatically via js/vbs or what not... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olly Sent: Tuesday, October 28, 2008 10:58 AM To: Half-Life dedicated Win32 server mailing list Subject: Re: [hlds] TF2: Web Control used during MOTD Doesnt hlstatsx (or maybe psychostats) already do this? 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> > You could use the player connect event to grab their SteamID, then use > their > SteamID as an argument to grab their stats. > > It would probably require that you force a browser window open on them as > soon as they get in game to override the default motd. > > On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> > wrote: > > > Here's an interesting question. > > > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > > itself isn't interesting, but I was thinking - is there a way to "read" > the > > current steam ID of the person who's connected and reading the MOTD? > > > > I could write up some dynamic html and/or vbscript that could look up > their > > current ranking in hlstatsx and have the MOTD say something like "You are > > currently ranked XXX of players"... I'm already putting the top 10 > > there, but adding the player's current ranking sure would be a nice > touch. > > > > Thanks in advance! > > -karl > > > > www.TrashedGamers.com > > > > > > > > > > > > > > ___ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
It allows you to bring up the particular user's HLStatSX page, but it can't embed their rank into a custom MOTD. On Tue, Oct 28, 2008 at 10:57 AM, Olly <[EMAIL PROTECTED]> wrote: > Doesnt hlstatsx (or maybe psychostats) already do this? > 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> > > > You could use the player connect event to grab their SteamID, then use > > their > > SteamID as an argument to grab their stats. > > > > It would probably require that you force a browser window open on them as > > soon as they get in game to override the default motd. > > > > On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> > > wrote: > > > > > Here's an interesting question. > > > > > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > > > itself isn't interesting, but I was thinking - is there a way to "read" > > the > > > current steam ID of the person who's connected and reading the MOTD? > > > > > > I could write up some dynamic html and/or vbscript that could look up > > their > > > current ranking in hlstatsx and have the MOTD say something like "You > are > > > currently ranked XXX of players"... I'm already putting the top 10 > > > there, but adding the player's current ranking sure would be a nice > > touch. > > > > > > Thanks in advance! > > > -karl > > > > > > www.TrashedGamers.com > > > > > > > > > > > > > > > > > > > > > ___ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > ___ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
Doesn't Hlstatsx via Mani already provide this functionality (look at webshortcutlist.txt in /cfg/mani_admin_plugin). I know it DID, not sure if it still does. Matt "stutters" Albiniak Gamerscoalition [EMAIL PROTECTED] http://www.gamerscoalition.com On Oct 28, 2008, at 9:33 AM, Karl Weckstrom wrote: > Here's an interesting question. > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > itself isn't interesting, but I was thinking - is there a way to > "read" the current steam ID of the person who's connected and > reading the MOTD? > > I could write up some dynamic html and/or vbscript that could look > up their current ranking in hlstatsx and have the MOTD say something > like "You are currently ranked XXX of players"... I'm already > putting the top 10 there, but adding the player's current ranking > sure would be a nice touch. > > Thanks in advance! > -karl > > www.TrashedGamers.com > > > > > > > ___ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
Doesnt hlstatsx (or maybe psychostats) already do this? 2008/10/28 P. Bhandal <[EMAIL PROTECTED]> > You could use the player connect event to grab their SteamID, then use > their > SteamID as an argument to grab their stats. > > It would probably require that you force a browser window open on them as > soon as they get in game to override the default motd. > > On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> > wrote: > > > Here's an interesting question. > > > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > > itself isn't interesting, but I was thinking - is there a way to "read" > the > > current steam ID of the person who's connected and reading the MOTD? > > > > I could write up some dynamic html and/or vbscript that could look up > their > > current ranking in hlstatsx and have the MOTD say something like "You are > > currently ranked XXX of players"... I'm already putting the top 10 > > there, but adding the player's current ranking sure would be a nice > touch. > > > > Thanks in advance! > > -karl > > > > www.TrashedGamers.com > > > > > > > > > > > > > > ___ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] TF2: Web Control used during MOTD
You could use the player connect event to grab their SteamID, then use their SteamID as an argument to grab their stats. It would probably require that you force a browser window open on them as soon as they get in game to override the default motd. On Tue, Oct 28, 2008 at 10:33 AM, Karl Weckstrom <[EMAIL PROTECTED]> wrote: > Here's an interesting question. > > Over at www.TrashedGamers.com, we have a custom MOTD. That in and of > itself isn't interesting, but I was thinking - is there a way to "read" the > current steam ID of the person who's connected and reading the MOTD? > > I could write up some dynamic html and/or vbscript that could look up their > current ranking in hlstatsx and have the MOTD say something like "You are > currently ranked XXX of players"... I'm already putting the top 10 > there, but adding the player's current ranking sure would be a nice touch. > > Thanks in advance! > -karl > > www.TrashedGamers.com > > > > > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
[hlds] TF2: Web Control used during MOTD
Here's an interesting question. Over at www.TrashedGamers.com, we have a custom MOTD. That in and of itself isn't interesting, but I was thinking - is there a way to "read" the current steam ID of the person who's connected and reading the MOTD? I could write up some dynamic html and/or vbscript that could look up their current ranking in hlstatsx and have the MOTD say something like "You are currently ranked XXX of players"... I'm already putting the top 10 there, but adding the player's current ranking sure would be a nice touch. Thanks in advance! -karl www.TrashedGamers.com ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds