Gaming
 
[Catcrewser]

Catcrewser 3,488 edits since November 1, 2008

3,488

From the RuneScape Wiki, the wiki for all things RuneScape

Please sign my GuestWikian Book!

Welcome to my talk page. - TehKittyCatTalk Wikian-Book 01:08, October 16, 2009 (UTC)

Contents

[edit] Talk page Stalkers/Archive Watchers

Welcome people wanting to see who can sign this pristine talk page first, please post below in this section. - TehKittyCatTalk Wikian-Book 01:08, October 16, 2009 (UTC)

OOh!! Me, me!! @@@@@@@@@@@@@ Stop scrolling over this, and scroll over CHRISTMAS SPIRIT >:O!!! 18:48, October 18, 2009 (UTC)

[edit] Box of.... DOOM!! Wait... doom?

Ya know, I tried putting in the Shout Doom thing into my monaco.js, and it wouldn't work, and then I purged the page, and it still didn't work. Then I tried removing the widget, and now every time I try to add it back, it doesn't stay =\ Odd. It like, appears on the page after I click the add button, and I can type in the box, but when I press enter it just shows the loading image and it doesn't stop. Then when I go to another page, it's gone. The D00M killed it Frown Stop scrolling over this, and scroll over CHRISTMAS SPIRIT >:O!!!
Lil Diriz 77 Talk
09:49, October 18, 2009 (UTC)
Yes, I tried that, the code is fully removed and I hard-refreshed. =S When I add it back to the page, I can see what recent shouts were made, particularly the ones right now where Dave and whoever are talking about the Spongebob Wiki, but then when I refresh, hard-refresh, or move to another page, it goes away. Stop scrolling over this, and scroll over CHRISTMAS SPIRIT >:O!!! 18:48, October 18, 2009 (UTC)
What browser are you in? - TehKittyCatTalk Wikian-Book 19:16, October 18, 2009 (UTC)
Hmm O o That's odd. I'm using Firefox 3.5.3 btw. Stop scrolling over this, and scroll over CHRISTMAS SPIRIT >:O!!! 21:55, October 18, 2009 (UTC)

[edit] SmackBot

It would be good if someone got SmackBot going again. Assuming the URL change is the main problem, it should be easy to fix if the source can be obtained.

Failing that, I am thinking of writing an update Bot myself. Previous Bots I've written have been in PHP (mainly because they are launched from my personal web pages), but with this one I'm thinking of writing in Java or C++.

I'm thinking of making the Bot that does the following:

  1. Update the price (incl last and dates) on each article in the Exchange namespace
  2. Write a log page of failed updates (where format does not match, etc)
  3. Update a (new) page that lists items that have hit their hard minimum or maximum price limits
  4. Update Template:Natprice (used in the GE Market Watch for profitable high-alch items)

I noticed from you Bot pages that you have written your Bots in PHP. Is that because you run them from within server web pages?

I also noticed (from your user page) that you use a Mac. I was wondering, if I was to write the Bot in Java and made the source available, whether you would also be interested in running a duplicate Bot. If the running of the Bots was done at different times of the day by more than one person, then should one fail to run then the other will still be operative. The advantage of Java over C++ is that it is portable in binary form, and it's easy to get a free Java compiler.

what do you think?  Amaurice talk 09:24, October 30, 2009 (UTC)

I've posted a support on the official forum thread you mentioned. Scraping the web for just over 3k items that currently have entries in the wikia Exchange name, with the pages being almost 20kb in size means about 60mb downloads (and that doesn't include the wiki page access to update them). If the information was available as a single comma delimited download (like the highscore lite), then it would be less than 1mb in size.
Your point about having multiple implementations of the exchange update bots might be a good idea as it reduces the common point of failure. I'm not sure when I will start writing my bot, but it may take 2 or 3 days before I write it. Since both Java and PHP share a common reg exp syntax based on that defined by Perl, we could compare the patterns we use.
I think if my bot detects missing or duplicate properties in an item Exchange page, then I might write to the Bots error log page. If it detects a price change of more than 50%, I might make it update the article but write a warning (as it might have been as a result of a vandalism on the original page so can help catch vandals). It's also possible to detect some cases of vandalism of the high alch and low alch values, so in time I might add some checking of those too.
I'll let you know when I start working on this.  Amaurice talk 19:09, October 30, 2009 (UTC)
The URL change I have fixed, I think there is a format change too. Rich Farmbrough, 17:47 31 October 2009 (GMT).

Oh GCC is also free and you probably need that on your system anyway. Rich Farmbrough, 18:00 31 October 2009 (GMT).


My regexs I'm using for the GE page are (including extra \ for escaping in strings):

  • item_image[^>]* alt=\"([^\"]+)\" - group 1 is used to get item name for validation of correct page
  • Market price:\\D*((\\d|,)+\\.?\\d*)([km]?) - group 1 is used to market price, and group 3 to extract multiplier (k or m)
  • Minimum price:\\D*((\\d|,)+\\.?\\d*)([km]?) - group 1 is used to minumum price, and group 3 to extract multiplier (k or m)
  • Maximum price:\\D*((\\d|,)+\\.?\\d*)([km]?) - group 1 is used to maximum price, and group 3 to extract multiplier (k or m)

My regexs I'm using for the extraction and replacement in the Exchange: pages (including extra \ for escaping in strings):

  • \\|\\s*ItemId\\s*=\\s*(\\d+)[^|\\n]* - group 1 is used for getting the item id
  • \\|\\s*Price\\s*=\\s*((\\d|,)+)[^|\\n]* - group 1 is used to get the current value of price
  • \\|\\s*Last\\s*=\\s*((\\d|,)+)[^|\\n]* - group 1 is used to get the current value of last
  • \\|\\s*Date\\s*=\\s*([^|\\n]*) - group 1 is used to get the current value of date
  • \\|\\s*LastDate\\s*=\\s*([^|\\n]*) - group 1 is used to get the current value of last date

In the case of extracted numbers, I have a number parser that strips any extra commas, then multiplies by 1000 or 1000000 if the "k" or "m" muliplier is present.

I hope that helps.  Amaurice talk 23:53, November 4, 2009 (UTC)

Just to let you know, the source code for AmauriceBot is now available at User:AmauriceBot/Source code.  Amaurice talk 09:55, November 5, 2009 (UTC)

[edit] Please don't make such changes

Changing Image to File is a waste of edits, clogs the recent changes history, cloggs watchlists, cloggs "related changes" , does nothing but perhaps remove some information. If you wan tot do it just for OGGs, and other non-image files fine. Rich Farmbrough, 17:45 31 October 2009 (GMT).

[edit] Navigation popup

On your userpage, I think the Navigation popups link should link here instead of here. --Iiii I I ITalk 21:48, November 4, 2009 (UTC)

[edit] =

{{=}}? What will this be used for? It seems rather... superfluous... kitty.pngPsycho RobotTalkSilver 01:35, November 8, 2009 (UTC)

Uh huh... *glazed look in eyes* kitty.pngPsycho RobotTalkSilver 04:33, November 8, 2009 (UTC)

[edit] Is this you?

Considering you're an editor and you like cats...

WikiCat.jpg

Click here! A very merry Christmas... Oli4burggraa Talk...and a happy new year! Click here! 08:59, November 11, 2009 (UTC)

How many dwarf planets are there? If you're that cat, you'll know... Wink Click here! A very merry Christmas... Oli4burggraa Talk...and a happy new year! Click here! 16:21, November 11, 2009 (UTC)
You know it?! You're that cat! Wow! Please don't eat me. Click here! A very merry Christmas... Oli4burggraa Talk...and a happy new year! Click here! 16:30, November 11, 2009 (UTC)

[edit] Fancy Dang-fangled new calculators

I am wondering if you know what happened to the flash calculators that were agreed apon in a YG thread and if they are any closer to being added to mainspace for all to use?? The last that I heard was that they were going to go live in November sometime. Image:Groundunicornhorn.PNG Evil Yanks talk 10:04, December 5, 2009 (UTC)

Thanks! Image:Groundunicornhorn.PNG Evil Yanks talk 02:27, December 6, 2009 (UTC)

[edit] RE: Highscores for Calculators

Excellent news! I've wondered when the extension would go active. I noticed one small problem though; it should try caching the result string so that multiple invocations on the same player do not trip the usage limit. I can workaround it with the mw:Extension:VariablesExtension though it would be nice to have it built-in. Regardless, I'll work on getting some working calculator examples that use this and then proceed with getting calculators live on the wiki. Thanks for making the extension! --Quarenon  T | C | S 00:03, December 8, 2009 (UTC)

I meant to declare a global variable like $wgRSHiscoreCache and stash the result of Http:get() in there so that it can be used if the parser hook appears later on in the page with the same player. Something like this perhaps:
# Cache of hiscore fetches
$wgRSHiscoreCache = array();

# Function for the parser function
function wfHighscores_Render(&$parser, $player = '') {
    global $wgRSTimes,$wgRSLimit,$wgRSHiscoreCache;
    if ( array_key_exists($player, $wgRSHiscoreCache) ) {
        return($wgRSHiscoreCache[$player]);
    } else if($wgRSTimes<$wgRSLimit || $wgRSLimit==0) {
        $wgRSTimes++;
        if($player!='') {
            $data = Http::get('http://services.runescape.com/m=hiscore/index_lite.ws?player='.urlencode($player));
            if($data==false) {
                return(1);
            } else {
                $wgRSHiscoreCache[$player] = $data;
                return($data);
            }
        } else {
            return(1);
        }
    } else {
        return(0);
    }
}

Also, {{ParseHiscoreData}} doesn't like the newlines coming in from the extension. It only seems to work when the rows are delimited by spaces instead...the template should probably work with either case. I've got a workaround for that too though, and you can see a basic use case at User:Quarenon/CalcGuide#Player_Hiscores with code at User:Quarenon/CalcGuide/Hiscores. --Quarenon  T | C | S 00:33, December 8, 2009 (UTC)

Looks good! Thumbs Up --Quarenon  T | C | S 05:01, December 8, 2009 (UTC)

[edit] Christmas!


Merreh Christmas Catcrewser!


Once again, it's that time of year, may you have a merry Ruudmas Christmas and a happy new year.

File:Present.pngFile:Santa hat.PNGFile:Red party hat.PNG

Ruudvan10000 Talk 07:34, December 8, 2009 (UTC)

[edit] Wikia Bot

I recently Learn how to use a wikia bot , i ask some of the users in the wikia clan they said to ask you if i can have permission to use the bot on site, so may i? --File:Guthix logo.svg Parsonsda Talk | Sign Here File:Guthix logo.svg 16:15, December 8, 2009 (UTC)

[edit] best bot

i got a bot called "Autowiki4600" and i was wondering if you know any better bot this one works well it just a bit more complex, also i need to ask other staff can your recommend some other rs wikia administrators --File:Guthix logo.svg Parsonsda Talk | Sign Here File:Guthix logo.svg 21:43, December 8, 2009 (UTC)

[edit] Merry Christmas!


 Merry Christmas! tLUL Talk - Contribs  01:27, December 10, 2009 (UTC) Merry Christmas! 

[edit] MERRY CHRISTMAS FROM YOUDEAD00

Hello, and since you say that you've been good, you deserve this:

Enjoy! Click on the present to see what YOU got this year!

Youdead00 Chat 21:41, December 10, 2009 (UTC)

[edit] Calc

Your calc still isn't loading for me. I can still get my smithing calc working though, so I don't think it's a problem with the script =/  Merry Christmas! tLUL Talk - Contribs  18:00, December 12, 2009 (UTC) Merry Christmas! 


It's working for me... but.... it's putting 1711 as my defence level... I wish lol. File:Quest-cape-inv.pngTalk Newbie856 edit count File:Music icon.PNG 21:03, December 12, 2009 (UTC)

Lol, will go check it right away. File:Quest-cape-inv.pngTalk Newbie856 edit count File:Music icon.PNG 21:42, December 12, 2009 (UTC)

Works, would there be a way to add a checkbox to enable cookies, so the wiki remembers us for say... 2/4 weeks?. File:Quest-cape-inv.pngTalk Newbie856 edit count File:Music icon.PNG 21:44, December 12, 2009 (UTC)

[edit] Merry Christmas!


Merry Christmas to you, Catcrewser ^_^!


A time for cookies, love, snow, trees, and all the rest.

 File:Santa head.png
Your fellow Wikian, Stop scrolling over this, and scroll over CHRISTMAS SPIRIT >:O!!!
 File:Snow imp.png

20:54, December 16, 2009 (UTC)

[edit] Header Template

Thanks, everything looks great! The only problems is that the rswp just discontinued having issues and are now just making it one continuous issue (I think so, I will check with jack). I am going to move the template on the fifth page of your litter box into its own template for use by other wikians. Stelercus 12:57, December 23, 2009 (UTC)