PDA

View Full Version : New Wiki Feature "Magelo Imports": Beta Test Help Requested


loramin
06-25-2020, 03:56 PM
If anyone has a wiki Magelo for their character (or wants to start one), I could use some help in beta testing a new feature.

The basic idea is that Magelos are fun, but it's annoying to have to enter every item's name by hand. Luckily, the command /outputfile generates a file with those item names. What I added was a way to copy/paste what's in that file, and generate code that you can use to update your Magelo.

https://wiki.project1999.com/Magelo_Import has all the details. To verify that it worked correctly, please use "Show Changes" (instead of "Show Preview") after you edit your Magelo, to double-check that nothing was left out.

If you run into any problems, please post back with your output file text (or at least the relevant part with your non-bank items) and which browser you were using.

Hopefully this will make it easier for everyone to keep their Magelos up to date! :)

Baler
06-25-2020, 04:32 PM
Whoa is this a huge QOL update for the P99 Wiki Magelo!
Great work!

Everyone should take notice of this!

https://i.imgur.com/3Nzo1Vk.gif

Edit: Be careful not to overwrite your character stats,name,race,etc when you copy/paste the output. :)

loramin
06-26-2020, 06:52 PM
Glad you liked it Baler!

Bumping to get attention over the weekend: if I can just get a few more "beta testers" to confirm that it works, I can remove the big red "Beta" text from the page :)

Knuckle
06-26-2020, 07:09 PM
Whoa is this a huge QOL update for the P99 Wiki Magelo!
Great work!

Everyone should take notice of this!

https://i.imgur.com/3Nzo1Vk.gif

Edit: Be careful not to overwrite your character stats,name,race,etc when you copy/paste the output. :)

Taking note of this, testing inc.

Changed my mind. the instructions are easy, getting to actually login to the wiki with my account, in order to create my magelo page, is tilting me off of this earth. I do not have cookies turned off you retarded website.

Argh
06-26-2020, 07:41 PM
Looks helpful. I actually made one of these in 2015 (https://magelo.herokuapp.com/) You should consider adding the copy/linking feature to this as it might make it easier to go right from this page to editing the existing character's magelo profile/create new profile. This being on the wiki would make it easier to prompt people to sign in before exposing the Create/Update option.

Just adding the input for the name (and server) would allow for the easy Create/Edit button since the links are just: wiki.project1999.com/index.php?title=Magelo_Blue:name&action=edit

Baler
06-26-2020, 07:53 PM
Looks helpful. I actually made one of these in 2015 (https://magelo.herokuapp.com/) You should consider adding the copy/linking feature to this as it might make it easier to go right from this page to editing the existing character's magelo profile/create new profile. This being on the wiki would make it easier to prompt people to sign in before exposing the Create/Update option.

Just adding the input for the name (and server) would allow for the easy Create/Edit button since the links are just:

I sound like a douche.... Why should a sucessful process bend the knee to your failed web url?

You and I can agree that people creating and sharing their Magelo is a +1 to P99 and even other emu servers.

ps. Direct your rage to the non-active Rogean.

Argh
06-26-2020, 07:55 PM
I sound like a douche.... Why should a sucessful process bend the knee to your failed web url?

You and I can agree that people creating and sharing their Magelo is a +1 to P99 and even other emu servers.

Don't know what this means

Baler
06-26-2020, 07:58 PM
let us please stay on topic. PLEASE, I am very sorry loramin for being my typical hard headed type of posts.
______________
THIS ORIGINAL POST IS A BIG DEAL (https://wiki.project1999.com/Magelo_Import)

Argh
06-26-2020, 08:01 PM
You must have misread what I posted. I was talking about adding a feature to the page Loramin created to replicate something I had on that old site. The linking to the create/edit magelo profile based on a character name & server (red/blue/green) input so that way people could go directly from the wiki page with the /output parser to editing their existing magelo profile on the wiki or creating a new one, since it is the same url (wiki.project1999.com/index.php?title=Magelo_Blue:name&action=edit). And a copy button via js.

loramin
06-26-2020, 08:01 PM
Looks helpful. I actually made one of these in 2015 (https://magelo.herokuapp.com/)

Your app looks great: I wish I had known about it so I could have stolen its code instead of having to write my own :D

You should consider adding the copy/linking feature to this as it might make it easier to go right from this page to editing the existing character's magelo profile/create new profile. This being on the wiki would make it easier to prompt people to sign in before exposing the Create/Update option.

Just adding the input for the name (and server) would allow for the easy Create/Edit button since the links are just:

Absolutely. This is just "phase one", but I think a variety of enhancements are possible ... only I can't promise when I'll have the energy for "phase two".

If you or anyone else wants to see the code involved (which is not documented I just documented, poorly :o) it's at https://wiki.project1999.com/MediaWiki:MageloImport.js. The way it gets added to the page is via the wiki's equivalent of an "index.js" file: https://wiki.project1999.com/MediaWiki:Common.js. Only admins can edit those files, but by using the browser developer tools you can test out the code on your end, and then once it works PM it to me to add.

So if any JS devs want to improve the import (or anything else in the wiki) please let me know!

Argh
06-26-2020, 08:11 PM
Your script for this is much cleaner than my sloppy regx I slapped together for that site lol.

Is there anyway you know of for detecting if the user is logged into the wiki via js?

I imagine if the user was not logged in the button could just be to copy the formatted textarea and a prompt to login, and if they were logged in it could have the name/server field and have the copy & create/edit button.

Baler
06-26-2020, 08:18 PM
Detecting if the user is logged into the wiki via js?

I'm extremely against this idea.
If this becomes a thing I'll do everything to burn this.

Privacy #1


Edit: littreally you think you've seen me shit post or get mad...
Invading users privacy,. i'll flip the fucking earth beneath your feat.

Argh
06-26-2020, 08:26 PM
Lol, how is it an invasion of privacy to detect if you're logged into the site you are currently on? You need to be logged in to create or edit the profile on the wiki. It's easy enough to do in a not-so-clean way by just checking if the utility menu's create account & login buttons are there.

loramin
06-26-2020, 08:28 PM
Your script for this is much cleaner than my sloppy regx I slapped together for that site lol.

Is there anyway you know of for detecting if the user is logged into the wiki via js?

I imagine if the user was not logged in the button could just be to copy the formatted textarea and a prompt to login, and if they were logged in it could have the name/server field and have the copy & create/edit button.

Yes: in the upper right corner of the page it has your name if you are logged in, so the JS can check that.

I'm extremely against this idea.
If this becomes a thing I'll do everything to burn this.

Privacy #1

Slow down and let me explain web tech :) Everytime you visit a page, it runs code (Javascript code) for that page, on your computer. If any page does anything (other than just display text and graphics), it needs to have such code. All the wiki features, eg. the era filters, depend on it.

When you click off the Kunark checkbox on a spells page for instance, you want the code to remove the Kunark spells from the page: it needs control of the page to do that. But none of this is a privacy concern because it's all running on your computer. It just does useful stuff in your browser, like hiding Kunark spells or whatever (or in this case not showing you the import UI unless you're logged in).

Now in theory I could use that code to "stalk you on the wiki". There are browser protections, and I'd likely need to partner with Rahvin to make it work, but without going into all the messy details ... yes technically it could be done. Any site can "spy on you" on that site. But it would be a ton of work, for no benefit whatsoever, because literally all we could know is what you did on the wiki.

Argh
06-26-2020, 09:11 PM
Are you aware javascript is the only thing making most of the wiki function already, including magelo profiles and this parser?

Baler
06-26-2020, 09:14 PM
Are you aware javascript is the only thing making most of the wiki function already, including magelo profiles and this parser?

there is a huge difference between what you proposed earlier in this thread to TRACK USER WHO ARE LOGGED IN and simple actions that happen.

Mind you simple actions can be used to track you,. but what Argh is proposing is an authoritarian tracking of users.

Argh wants to track your actions, and is deflecting to try and throw shade on everyone except himself.

He also derailed this thread and @nilbog should please step in.

loramin
06-26-2020, 09:20 PM
there is a huge difference between what you proposed earlier in this thread to TRACK USER WHO ARE LOGGED IN and simple actions that happen.

Mind you simple actions can be used to track you,. but what Argh is proposing is an authoritarian tracking of users.

Argh wants to track your actions, and is deflecting to try and throw shade on everyone except himself.

He also derailed this thread and @nilbog should please step in.

You're still not understanding: there's no tracking. The idea was "don't show the magelo import UI unless you are already logged into the wiki." The only computer involved in that whole process is your own.

Baler
06-26-2020, 09:21 PM
You're still not understanding: there's no tracking. The idea was "don't show the magelo import UI unless you are already logged into the wiki." The only computer involved in that whole process is your own.

No, I do understand there is no current tracking.

What I'm speking to is Argh direct request for tracking.

Btw i am sorry loamin for this thread turning into this but you can thank the user "Argh" for being an authoritarian and wanting absolute control,.
By suggesting you control/gather information via javascript on users. Which i'll fight tooth and nail against.

also yeah I do know their name, most recent job, etc. but yeah, I got a post count I care about.

Argh
06-26-2020, 09:24 PM
I have to imagine you are jut trying to troll me Baler.

An example would be this:

function isUserLoggedIn () {
var loginState = document.getElementById('pt-logout') ? true : false;
return loginState;
}

The function returns a true/false value depending on if you are logged into the wiki, by checking if the 'logout' button in the header is present.

loramin
06-26-2020, 09:25 PM
I have to imagine you are jut trying to troll me Baler.

An example would be this:

function isUserLoggedIn () {
var loginState = document.getElementById('pt-logout') ? true : false;
return loginState;
}

The function returns a true/false value depending on if you are logged into the wiki, by checking if the 'logout' button in the header is present.

It hurts my soul just a litle to see a ternary used with true/false like that (FYI you could just do !!document.getElementById('pt-logout') if you really want a boolean, or just leave off the !! and it will still be a "tuthy" value in terms of how JS treats non-booleans as booleans) ... but that's still an excellent example :)

But again, the key thing is that we're talking about hiding part of the UI, on your computer, by looking at another part of the UI, again on your computer. No tracking.

Baler
06-26-2020, 09:27 PM
Stepping stone to authoritarian dictatorship

No,. for a fact of the matter,. im not trolling and that's a stupid job argh, but I cant say mines better|
I suppose people would say my job is similar. except I'm privacy minded. Despite the general public willing to give all their details for free every day.

Argh
06-26-2020, 09:37 PM
What's a stupid job?

Baler
06-26-2020, 09:40 PM
What's a stupid job?

Please stop ruining this thread by pressing people to give up their freedom.

----------------
For those concerned,. the wiki is safe at the moment of this post

i'm simply defending peope's freedom from people like Argh who want to track you more freely.

loramin
06-26-2020, 09:43 PM
from people like Argh who want to track you more freely.

But he never wanted to track anyone! He just thought we shouldn't show the import UI to people who aren't logged in, since they can't edit their Magelo.

Baler
06-26-2020, 09:49 PM
Argh needs to step down with his desires to track users on the wiki.
PERIOD

. That's why im upset.

loramin
06-26-2020, 09:55 PM
But he never wanted to track anyone! He just thought we shouldn't show the import UI to people who aren't logged in, since they can't edit their Magelo.

Arvan
06-26-2020, 10:03 PM
I made a magelo but its not giving me the correct HP total... lol real nice

Baler
06-26-2020, 10:03 PM
I promise I never intended to discredit loramin in any of my posts in this thread.

I wanted to defend the P99 wiki for everyone.

loramin
06-26-2020, 10:28 PM
I made a magelo but its not giving me the correct HP total... lol real nice

I didn't create the Magelo functionality (Ravhin did, I believe). It's possible it has an error in the calculation, but I'd also double-check that you put in your starting stats/race correctly.

Arvan
06-26-2020, 10:31 PM
Yeah i checked no bueno

Baler
06-26-2020, 10:32 PM
Arvan your Magelo HP is reporting 3920 , what is your HP with each piece gear on in game?
Please provide above and beyond details to provide even further help improving the wiki :)

Knuckle
07-01-2020, 09:56 AM
Magelo required I make an exception in google chrome for cookies in order to reset my password to login and create an account, i have enable all cookies by default, just FYI.

The import technique worked like a charm once I created my profile with basic info around level and stats.

Certain stats are not updating correctly around AC/ATTK, I clicked off all my buffs and something is off(ATTK too high, AC too low).

Otherwise cant complain, good tool.


https://wiki.project1999.com/Magelo_Green:Estrang

Snortles Chortles
07-01-2020, 09:58 AM
nice non working feature guys