Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Today, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, DotBot, Google, Yahoo!, Majestic-12

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » webwho
Forum Rules | Mark all | Recent Posts

webwho
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 18, 2009, 4:05 pm
Go to the top of the page
Go to the bottom of the page

Samsa
Fledgling
GroupMembers
Posts15
JoinedAug 29, 2008

I've looked for a solution to this but can't find any answer.

How can I make SWR to write something in the WEBWHO file? I've read something about a named pipe (REQUESTS) but I can't find the place in the source code where it reads from standard input.

I've also found a reference to a file called requests.c in mud.h, but I can't find this file anywhere.
       
Post is unread #2 Jun 19, 2009, 9:44 am   Last edited Jun 19, 2009, 9:46 am by Samsa
Go to the top of the page
Go to the bottom of the page

Samsa
Fledgling
GroupMembers
Posts15
JoinedAug 29, 2008

Well, problem solved. I simply got requests.c from smaug 1.8, and copied a pair of lines from db.c and handler.c, add -DREQUESTS in the Makefile and created system/REQUESTS with mkfifo.

But, why was requests.c cut off from swr and smaugfuss1.9?
       
Post is unread #3 Jun 19, 2009, 9:49 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

No idea.

I find it to be useless clutter. I"m sure there are better ways to handle things like a Web based who output.
       
Post is unread #4 Jun 19, 2009, 5:01 pm   Last edited Jun 19, 2009, 5:07 pm by Samson
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

The real reason is probably the one(s) cited in [url]http://www.smaugmuds.org/index.php?a=topic&t=275[/url] back in 2003, but it's also mentioned in as a potential crash issue in 2005. Basically it boiled down to there being better ways of handling it and Samson not really understanding the methods that Thoric had originally supplied us with to begin with.
       
Post is unread #5 Jun 19, 2009, 5:18 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The request pipe code is just plain dumb. If you want that kind of live interaction, dig around for the webserver code that used to be in AFKMud or in ResortMUD.

Or better yet, just have the game do a regular dump of a who.html file or something to disk every 15 seconds. Then you won't have any problems with possible security holes from the outside either.
       
Post is unread #6 Jun 29, 2009, 12:06 pm   Last edited Jun 29, 2009, 12:10 pm by paradox24
Go to the top of the page
Go to the bottom of the page

paradox24
Fledgling
GroupMembers
Posts18
JoinedMar 6, 2009

Hey,

I am actually very interested in this type of functionality, as there is one immortal on my team who pretty much won't shutup about it :P

But anyways, I haven't done it yet, but I figured all I needed to do was have a function() called upon every player quit/logon that would basically take all the data in the who list (basically just a giant for loop to get all the players currently online.. and then its filtered for who you can't see.. or shouldn't be able to see I guess I should say) .. and dump it to a plain text file instead of displaying to a CHAR_DATA ..

am I missing something that might save me time in the long run? Or can anyone think of a better way to do it then this? Also one poster mentioned an old AFKmud webserver snippet .. I did a google for it with no luck.. any help?

EDIT: mentioning the 'should be able to see' got me thinking .. I wouldn't want to reveal more information then I had to about invis players .. etc .. especially since I'm cooking up a bounty system etc .. lets say I forced you to login to my website using your characters name .. then I'd have a reference point for who you 'should' be able to see, and who should be hidden .. but now I'm talking about things I dont understand .. because I can't have the website tell the game to call a function can I? then we're back to pipe-like code etc right? .. if there's another solution lemme know but I figure the best way to workaround it would be to just deny ALL sensistive info from being dumped to the plain text file.. that way it couldn't be used in such a fashion .. but then its not nearly as comprehensive as it should be .... lol ... why can't they just logon to the game and type who :P ..
       
Post is unread #7 Jun 29, 2009, 12:36 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006


paradox24 said:

am I missing something that might save me time in the long run? Or can anyone think of a better way to do it then this? Also one poster mentioned an old AFKmud webserver snippet .. I did a google for it with no luck.. any help?


I believe it's something that's actually a part of AFKMud rather than a snippet. It might be worth checking the more recent versions and the older versions as the functionality might have been removed at some point.
       
Post is unread #8 Jun 29, 2009, 4:12 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The live web server code was removed from AFKMud before version 2.0. You'd have to go digging around in the old C bases to find it, 1.8 and earlier. The live code proved to be too much of a magnet for security issues and was susceptible to DoS attacks.
       
Pages:<< prev 1 next >>