2 Pages 12>
Server MotD Options
Rikaelus
#1 Posted: : Saturday, May 01, 2010 7:22:42 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
Got bored last night and, noticing the Tempest is still using the default MOTD, thought there might be interest in this:

http://www.gamersyndicate.com/tf2/motd.php

Besides the standard welcome and rules, it queries servers to find their current map and player counts. I have my server on there as an example, since some work would need to be done to get it working with Tempest.

The slant of the image is optional and takes just a tad longer to generate, but creates a less "perfect" feel to its placement on the chalkboard. It can be disabled and the blueprints made straight using:

http://www.gamersyndicate.com/tf2/motd.php?slant=0

The HTML currently has the image fill the available screen, allowing it to fit all resolutions with no scroll bars.

Options to get it working with Tempest:

1. I'd need the rcon password so the server doesn't ban the script due to excess queries
2. I'd need my server's IP address allowed... not sure if there are IP whitelists, though
3. I could provide all the PHP/graphics to be hosted by someone who knows the rcon password
4. I could make the image static, with no server querying; no map info, player counts, etc.

HolyJaw
#2 Posted: : Monday, May 03, 2010 8:12:12 PM
Rank: Fecal Impaction For the Win!

Groups: Ogamer, Registered User

Joined: 5/9/2006
Posts: 1,664
Points: 2,472
Location: La Habra, Orange, CA
That's ridiculously cool.
silverwasp wrote:
Be careful what you wish for... I have 10 younger siblings and I am only 20....

Yes.... Same parents


WarMachine wrote:
meh...maybe if he hadn't been handed a burning house he could have done great things, but right now he has won the Prize for what? Damage Control?
bragr
#3 Posted: : Monday, May 03, 2010 9:30:07 PM
Rank: Administration



Groups: Server Admin, Administration, {pDs} Member, Registered User

Joined: 11/19/2008
Posts: 1,013
Points: 2,764
I rather like that actually, some of the rules could be summarized as "Don't be a dick" and whatever you are using to rotate is god awful, but that can be fixed. You can't have the rcon password, though, and anything that needs hosting for the server will be hosted on my servers. 3 reasons:
1. I don't know you
2. I don't really trust anyone on the internet
3. If something breaks, I am always around, I know the password to the servers, and I can access support for my host and the game host.
If you want to send me the code and graphics, I'd look into it.
Rikaelus
#4 Posted: : Monday, May 03, 2010 10:58:57 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
Hmm, actually an alternative just occured to me.

I can put together a script that access the server and dumps the server stats to a web-viewable file- just the same stuff; current map, current/max players, etc. That file can then be read by the MOTD-generator with the generator not needing to know rcon. Then you can run that script on whatever frequency you'd want via cron or other scheduler.

I'll see what I can get together... it's a good separation of logic even if we end up not using it cross-server.

TripleBam
#5 Posted: : Monday, May 03, 2010 11:38:31 PM
Rank: Fecal Impaction For the Win!



Groups: {pDs} Member, Registered User, Server Admin

Joined: 1/1/2008
Posts: 1,640
Points: 2,534
Location: Bainbridge Island, WA
quick fyi for "newer" members.

rikaelus is a long-standing member with nothing but good graces here. he's simply been out for a while.

welcome back.
Safety + Peace
Rikaelus
#6 Posted: : Monday, May 03, 2010 11:55:15 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
TripleBam wrote:
quick fyi for "newer" members.

rikaelus is a long-standing member with nothing but good graces here. he's simply been out for a while.

welcome back.


Thanks, Trip. Good to be back, and glad to see you're still around.

I certainly understand Bragr's position. It's too bad the server software doesn't allow queries without RCON, or with a second password. It's a tough requirement to work around, but I can be sneaky. ;P

bragr
#7 Posted: : Tuesday, May 04, 2010 2:39:02 PM
Rank: Administration



Groups: Server Admin, Administration, {pDs} Member, Registered User

Joined: 11/19/2008
Posts: 1,013
Points: 2,764
TripleBam wrote:
rikaelus is a long-standing member with nothing but good graces here. he's simply been out for a while.

Even if Jesus asks for the rcon password, he couldn't have it, because he doesn't exist. Unless he does, in which case, I'm sorry for saying that he didn't exist, but he still can't have it.
Rikaelus
#8 Posted: : Wednesday, May 05, 2010 4:52:52 AM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
Some good news and some... good news.

I've gone through and revamped the MotD code into a bona fide little web application.

Some of the features in dweebspeak:
- Support for multiple games (currently TF2 & L4D2)
- Support for multiple skins per game
- Server stat querying w/ placement in web-accessible location for external accessibility
- Ability to collect stats from a list of web-accessible locations
- Server weighing- factoring in game, player counts, status, etc., to determine how to sort the servers
- Image caching configurable on a skin-basis
- Quick & Easy to add new games, skins, and alter configurations

Yeah... I should market this thing...

The other bit of good news is that The Tempest doesn't seem to ban my IP so long as I don't spam-query it for stats. Right now I have all the servers polled every 20 seconds, so that whole "needing rcon" problem has gone away.

Examples of what's there:

TF2 from The Grinder, no rotation (skin A)
HTML URL: http://www.gamersyndicate.com/wdfnews/motd/html/69.28.133.243:27050
Image URL: http://www.gamersyndicate.com/wdfnews/motd/69.28.133.243:27050


TF2 from unknown source, rotated (skin B)
HTML URL: http://www.gamersyndicate.com/wdfnews/motd/html/TF2/B
Image URL: http://www.gamersyndicate.com/wdfnews/motd/TF2/B


Left4Dead 2 from The Forsaken
HTML URL: http://www.gamersyndicate.com/wdfnews/motd/html/69.28.133.243:27015
Image URL: http://www.gamersyndicate.com/wdfnews/motd/69.28.133.243:27015


btw... these are live, dynamic generations... so what you see above will actually change as people come and go, as servers go up and down, etc.

Darkillumina
#9 Posted: : Wednesday, May 05, 2010 10:53:48 AM
Rank: You're gonna stick that where?



Groups: {pDs} Member, Registered User, Server Admin

Joined: 12/22/2007
Posts: 376
Points: 404
Location: nWo Country
I say we allow porn sprays. I've never had a problem with them and think they are hilarious due to the distraction they cause. That's all I have to contribute here.
I'm the leetest one here

Mrs.Crawdad
#10 Posted: : Wednesday, May 05, 2010 10:58:51 AM
Rank: Fuckstick



Groups: {pDs} Member, Registered User

Joined: 4/7/2008
Posts: 1,092
Points: 1,953
I like the zombie penguin!
Belligerent Pimp wrote:
The Man Society just suspended my man card for a week for getting rickrolled by Mrs. Mary Midwestern Housewife.
Rikaelus
#11 Posted: : Wednesday, May 05, 2010 12:00:58 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
Darkillumina wrote:
I say we allow porn sprays. I've never had a problem with them and think they are hilarious due to the distraction they cause. That's all I have to contribute here.


Hehe.. I don't make the rules, I just repeat them.

Mrs.Crawdad wrote:
I like the zombie penguin!


It's amazing how many various penguin images you can find on Google. That said, no... I can't take credit for it's look. Nor can I for the blueprint penguin, which is based on another Google Images find and photoshopped down to an outline. I'd probably try my hand on it if the drawing pad I'd bought hadn't been DOA.

Razor
#12 Posted: : Wednesday, May 05, 2010 3:18:56 PM
Rank: Fecal Impaction For the Win!


Groups: {pDs} Member, Registered User, Server Admin

Joined: 11/27/2007
Posts: 1,611
Points: 2,025
Location: Birmingham, Alabama
Darkillumina wrote:
I say we allow porn sprays. I've never had a problem with them and think they are hilarious due to the distraction they cause. That's all I have to contribute here.

Yeah, I am not seeing that happen.


Rikaelus
#13 Posted: : Friday, May 07, 2010 1:42:03 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
bragr, you need anything more from this or would you be good to sign off on its use on The Tempest?
Here's the URL you'd want to stick in the server's motd.txt:

http://www.gamersyndicate.com/wdfnews/motd.php?game=TF2&skin=B&ip=216.131.84.5&port=27015

That'll give you the straight blueprints since you didn't like the tilting effect, and The Tempest will be highlighted in green. If you don't want that highlighting then just don't include the ip/port in the URL.

HolyJaw
#14 Posted: : Sunday, May 09, 2010 11:50:13 PM
Rank: Fecal Impaction For the Win!

Groups: Ogamer, Registered User

Joined: 5/9/2006
Posts: 1,664
Points: 2,472
Location: La Habra, Orange, CA
Rikaelus wrote:
Some good news and some... good news.

I've gone through and revamped the MotD code into a bona fide little web application.

Some of the features in dweebspeak:
- Support for multiple games (currently TF2 & L4D2)
- Support for multiple skins per game
- Server stat querying w/ placement in web-accessible location for external accessibility
- Ability to collect stats from a list of web-accessible locations
- Server weighing- factoring in game, player counts, status, etc., to determine how to sort the servers
- Image caching configurable on a skin-basis
- Quick & Easy to add new games, skins, and alter configurations


I'm sorry, what? Just fucking stroll on in here and drop that shit like it's yesterday's pancakes or some shit. One does not simply MAKE an automated image and contain it within a web application. It takes time and patience and lots of swearing damnit! Too many legit programmers in here! My java applet is feeling dated and unnecessary! (Don't worry, tic-tac-toe.java.... I'll always love you.)
silverwasp wrote:
Be careful what you wish for... I have 10 younger siblings and I am only 20....

Yes.... Same parents


WarMachine wrote:
meh...maybe if he hadn't been handed a burning house he could have done great things, but right now he has won the Prize for what? Damage Control?
Rikaelus
#15 Posted: : Monday, May 10, 2010 1:35:19 AM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,702
Points: 3,101
Location: Arizona
Hey, man! Hey! There was TOTALLY swearing!
And no be dissing the Java applets. I took a course last summer and was infuriated by Java's applet stuff. Ain't easy to work in that crap.

Users browsing this topic
Guest
2 Pages 12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.