View Single Post
  #15  
Old 03-27-2023, 12:20 PM
Bleyld Bleyld is offline
Skeleton


Join Date: Aug 2014
Posts: 17
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
Well, to do it in JS you'd just ... do it in JS [You must be logged in to view images. Log in or Register.]
...
Yeah I guess more... how? Lol - my knowledge of JS is limited, but idk that we'd be able to incorporate that in the wiki here, so it would still have a similar hosting conundrum elsewhere?

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
...
I could easily see a page with two drop-down menus ("select elements") to let you pick the to/from zones, and a button. See https://wiki.project1999.com/Per-Level_Hunting_Guide for a general idea of wiki pages with custom forms.

When someone clicks the button, some code would grab the two zone names, plug it into the algorithm, and then that algorithm would return an array of zones. The code would then add a bunch of properly-ordered links to the zones on the page, describing the path from A to B.
...
As for using an extension, I'm not a PHP dev, but you can see how the existing custom extensions (for stuff like the auction tracker or the dynamic zone lists work) by downloading the source code here: https://wiki.project1999.com/utils/wikiUtils.php ("Custom Extensions Source").
I think this is the more direct route, but goes back to the PHP which we both lack. The link is helpful though, and I may do some exploration there when I have the chance.

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
...
If you can get the algorithm part working I'd be happy to help with the form, connecting it to the algorithm, and the display of the results ... I'm just not willing to sign up to write the algorithm itself.
...
At this point, I just don't want any wasted effort. I could have a quick turnaround for the algorithm in python, but if it's just in a `.py` that's my limitation of knowing where to go with it. For example, can some PHP/JS magic be used to utilize a `.py` script? I've only setup public/private APIs in the past to communicate between the two.

tl;dr the algorithm is the easy part for my experience, but idk what form for it to take, that is going to be the best bet for the end deliverable.
Reply With Quote