Project 1999

Go Back   Project 1999 > Blue Community > Blue Server Chat

Closed Thread
 
Thread Tools Display Modes
  #11  
Old 08-26-2017, 04:54 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 9,340
Default

Quote:
Originally Posted by Rygar [You must be logged in to view images. Log in or Register.]
I recommend sending Ravihn a PM
Good call.

Quote:
Originally Posted by Rygar [You must be logged in to view images. Log in or Register.]
My plan was to try and see if I can break a list to figure out the problem, but I believe the list only refreshes weekly.
Yeah, the caching is yet another factor that makes this whole thing difficult to debug. But I think the rest of what you said lines up with what I'm seeing (I even fixed a {{:something}} that shouldn't have been there, but it didn't help).
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details.
  #12  
Old 08-26-2017, 06:57 PM
Ravhin Ravhin is offline
Sarnak

Ravhin's Avatar

Join Date: Jul 2010
Posts: 307
Default

Hi,

Thanks for the investigations - I looked again at this, but it seems still a mystery, i.e. not reproducible behavior. Some failure of the wiki I don't understand.

Anyways, I fixed it in the most hacky way possible, in keeping with the spirit of things!

Code:
  if( time() - $cacheTime < $fCreated ) { // show file from cache if still valid
    $output = file_get_contents($cacheFileName);

    // check for corrupt cache, if so, discard and remake now
    if (strpos($output, '"zoneTopTable"') === false)
      {
        $wgOut->addHTML( $output );
        return;
      }
  }
If anyone can now see a page which is still broken, let me know.
__________________
Ravhin - 56 Gnome Necro (Project 1999, Retired) <Divinity>
Contributor: Project 1999 Wiki
Ravhin incedo'Marduk - 60 Human Paladin (Live on E'ci, 1999-2001) <Destinati Conquerers>
  #13  
Old 08-26-2017, 07:30 PM
Swish Swish is offline
Planar Protector

Swish's Avatar

Join Date: Nov 2010
Posts: 19,275
Default

Lor-admin <3
  #14  
Old 08-26-2017, 07:35 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 9,340
Default

Quote:
Originally Posted by Ravhin [You must be logged in to view images. Log in or Register.]
Hi,

Thanks for the investigations - I looked again at this, but it seems still a mystery, i.e. not reproducible behavior. Some failure of the wiki I don't understand.

Anyways, I fixed it in the most hacky way possible, in keeping with the spirit of things!

Code:
  if( time() - $cacheTime < $fCreated ) { // show file from cache if still valid
    $output = file_get_contents($cacheFileName);

    // check for corrupt cache, if so, discard and remake now
    if (strpos($output, '"zoneTopTable"') === false)
      {
        $wgOut->addHTML( $output );
        return;
      }
  }
If anyone can now see a page which is still broken, let me know.
Woot! All hail Ravhin, master of the wiki and the accursed language known as PHP!

Seriously though, thanks a ton for taking the time to fix that: I'm sure I'm not the only who will really appreciate having those tables back.

However, I'm not giving up my quixotic quest for wiki admin access. Or even just ... let me send you a SQL file. With just a one-time batch of UPDATES I could add fashion categories to every (visible) item in the wiki. I have the entire (Lucy-powered) script written and working, I just don't have a way for it to input the results ... but if I did I could let people find items that have a particular look (ie. FashionQuest), which is impossible currently.

Or even if I could just somehow get access to edit a single Javascript file that's exposed on the wiki, I could add class-based filtering to the hunting guides, weighted and multiple stat-based sorting to item lists (eg. "show me helms with the most Str, HP, and Mana, but Mana is only half as important"), or make similar UI-only improvements.

I guess what I'm saying is, the wiki is awesome, but it could be even more awesome: put me in coach!
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details.
  #15  
Old 08-26-2017, 07:35 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 9,340
Default

Quote:
Originally Posted by Swish [You must be logged in to view images. Log in or Register.]
Lor-admin <3
[You must be logged in to view images. Log in or Register.]
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details.
  #16  
Old 08-27-2017, 04:32 AM
Ravhin Ravhin is offline
Sarnak

Ravhin's Avatar

Join Date: Jul 2010
Posts: 307
Default

Hi Loramin you're already an admin, and for some time now [You must be logged in to view images. Log in or Register.] Please feel free to make any JS type changes, reading:

* https://www.mediawiki.org/wiki/Manua...ace/JavaScript
* https://www.mediawiki.org/wiki/Addin..._to_wiki_pages

For bulk updates/edits the best possibility is:

* https://www.mediawiki.org/wiki/API:Main_page

See "wikiDoBulkEdit()" in "Scraper Source" for a working client and examples. Direct DB modifications are not a good idea in Mediawiki, too complex and easy to corrupt.
__________________
Ravhin - 56 Gnome Necro (Project 1999, Retired) <Divinity>
Contributor: Project 1999 Wiki
Ravhin incedo'Marduk - 60 Human Paladin (Live on E'ci, 1999-2001) <Destinati Conquerers>
  #17  
Old 08-27-2017, 11:37 AM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 9,340
Default

Quote:
Originally Posted by Ravhin [You must be logged in to view images. Log in or Register.]
Hi Loramin you're already an admin, and for some time now [You must be logged in to view images. Log in or Register.] Please feel free to make any JS type changes, reading:

* https://www.mediawiki.org/wiki/Manua...ace/JavaScript
* https://www.mediawiki.org/wiki/Addin..._to_wiki_pages

For bulk updates/edits the best possibility is:

* https://www.mediawiki.org/wiki/API:Main_page

See "wikiDoBulkEdit()" in "Scraper Source" for a working client and examples. Direct DB modifications are not a good idea in Mediawiki, too complex and easy to corrupt.
Someone needs to tell me these things! [You must be logged in to view images. Log in or Register.]

[You must be logged in to view images. Log in or Register.]

[You must be logged in to view images. Log in or Register.]

[You must be logged in to view images. Log in or Register.]

[You must be logged in to view images. Log in or Register.]

Thank you! Big things inc ...
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details.
  #18  
Old 08-27-2017, 11:48 AM
Lhancelot Lhancelot is offline
Planar Protector

Lhancelot's Avatar

Join Date: Jul 2016
Posts: 3,164
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
Thank you! Big things inc ...
Cool, I love the fashionquest things, so hopefully you are able to add to that area on wiki. [You must be logged in to view images. Log in or Register.]
  #19  
Old 08-28-2017, 03:59 PM
gwideon gwideon is offline
Sarnak

gwideon's Avatar

Join Date: Dec 2012
Location: Ak'Anon
Posts: 202
Default

Gnomish Greetings!

Was edit ability removed from the masses? It says I am not authorized to update a mob description (and yes I am logged in).
__________________
PHENOMENAL COSMIC POWER!
{in an itty bitty living space}
60th Gnomish Wizard LFG!
  #20  
Old 08-28-2017, 04:28 PM
Baler Baler is offline
Planar Protector

Baler's Avatar

Join Date: Mar 2014
Posts: 9,753
Default

Grats Loramin, I may pm you as I come across issues on the wiki. Just a heads up.
ps. Your 'sandbox' project is pretty cool looking. Any plans to take that further?
__________________
P99 Wiki
No longer active, thank you for the years of fun.
No alt account and I do not post on the P99 forums.
Told this to Rogean, Nilbog & Menden.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:01 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.