[website] Added searchable shops micro website
Home › Forums › PirateCraft Website › [website] Added searchable shops micro website
- This topic has 9 replies, 6 voices, and was last updated 7 years, 4 months ago by GodsDead.
-
AuthorPosts
-
March 15, 2017 at 12:04 pm #48347
Created a micro website to search and sort all items for sale on PirateCraft, this will be auto updated once a day at 9am GMT.
This orders items by cheapest first, you can click the map URL to show you where on the map the sign shops located!
Featured shops are added manually, I have no plan for these yet, I guess if you are smart enough to make a pull request to the repo with your shop/placeholder image (in the right place) I’ll add it.
Already we can see all the landlubbers that are undercutting prices by crazy amounts, just look at the people selling diamonds for $5 a pop! Jesus! Someone buy them all out and resell at a higher price!
I used an existing project and adapted it to look better to get this working, so if anyone knows JavaScript then read on, if you don’t know web design/dev then you can stop reading here! Or maybe read on if you are really good with Excel or playing with data.
Technical Information for Dev’s/Excel enthusiasts
This whole project, including the data is open to everyone, the website itself is just static and uses JavaScript to display the JSON dataset, the website is actually hosted on Github pages and the data is hosted on its own Repo that I push to once a day, this means you can pull this data into your own application or program to display the data in a pretty way! Since this Project runs without dependencies its incredibly easy to clone and make changes to it!
The Repo is found here: https://github.com/FrozenBeard/PCSS (PirateCraft SignShop) if you make pull requests to this, If they are accepted then this will update the website live.
RAAAAWWW
If you are more interested in the Raw data, these are the two streams that will be updated daily.
(minified) https://raw.githubusercontent.com/FrozenBeard/PirateCraftData/master/signshop.min.json
(full fat) https://raw.githubusercontent.com/FrozenBeard/PirateCraftData/master/signshop.json
You can import JSON into excel or whatever you want to generate pretty graphs or do some economy things.
This is the first time I’m throwing PirateCraft data & Source open, its partly a test to see if anyone wants to help improve piratecraft, The website is written in Javascript and my Javascript is terrible, Which means I can’t really add any new features without help (plz help) Theres a basic feature list on the PCSS repo if you wanted to take a stab at this or have a play 🙂 go nuts.
Side Effects
If you can think of any side effects of ways people will Ruin this for everyone by abusing the raw data and displaying where shops are on the map, please do tell me, because there will be one asshole that has to ruin it for everyone.
March 15, 2017 at 1:54 pm #48349Wow, this is amazing! What an awesome way to open up the server for more community interaction and cooperation!
Great job!I’ll definitely check out the github pages.
Baz
Proud Member of the Piratecraft history 🙂
https://minecraftskinstealer.com/achievement/3/Achievement+Get%21/PirateCraft+Regular
March 15, 2017 at 3:58 pm #48350That’s awesome!
https://map.piratemc.com/?worldname=PirateCraft_1&mapname=surface&zoom=20&x=-5907&y=67&z=3839
^Cheapest diamonds for sale on the server, at the Commonwealth Freeport 😉
March 16, 2017 at 12:31 pm #48377Fixed my auto updating script, it should actually update now! Another bonus to having the data on Git, you can see a full history of what’s changed in that 24 period! https://github.com/FrozenBeard/PirateCraftData/commits/master
Which means a full history of all shops will be kept!March 17, 2017 at 6:53 am #48437I found a shop selling carrot : 111 carrots for 0.05$!
Needless to say, I went there and bought it all out.
Do not horse
March 26, 2017 at 5:17 pm #48696Is there a link to the sign-shop page from the main website? Maybe I just missed it, but I was unable to find one.
Thanks!
March 26, 2017 at 9:55 pm #48704Is there a link to the sign-shop page from the main website? Maybe I just missed it, but I was unable to find one. Thanks!
Nope, where should I add it, under information?
June 15, 2017 at 4:46 pm #51326I have made a few updates to your website adding support for defining Market regions and then displaying all signs within that Market. I have made it so that you can click on the Featured Market and display that Market’s offerings.
There is an issue with how signs with multiple items for sale, ie. a cannon kit, display but that is more of an html/css issue than javascript.
Take a look at http://piratemc.zapto.org/PCSS/ to see it in action. I tried to push my update to git but got an error, probably no perms to do so.
benthebruce
Prime Minster
British EmpireJune 19, 2017 at 9:57 am #51463@godsdead I have made a few updates to your website adding support for defining Market regions and then displaying all signs within that Market. I have made it so that you can click on the Featured Market and display that Market’s offerings. There is an issue with how signs with multiple items for sale, ie. a cannon kit, display but that is more of an html/css issue than javascript. Take a look at http://piratemc.zapto.org/PCSS/ to see it in action. I tried to push my update to git but got an error, probably no perms to do so.
Oh sweet, make it a pull request then like stated in the main post and we can sync it.It does freeze when I select a region though.
There is actually an update or two to push out for the Shops JSON via SignShop Export, but I haven’t had the time to update this as it’ll break the website displaying it. Someone else re-did the JS to accept the new JSON https://gitlab.com/laken/mcshopdex
SO what needs to happen is:
- Update the plugin to give the new JSON
- Update our JS for reading the JSON to match https://gitlab.com/laken/mcshopdex
- Keep our design as its better than that ones, I think they have taken inspiration.
Make requests to the Repo and then the code will be pushed live.
July 11, 2017 at 1:25 pm #52028Update
I pushed the JS updates from the new fork and updated ours, so its back up and running! you can now search Per player.
@benthebruce I would love to be able to add your per-region system! Have a look at the new code to see if you can get it working, Im terrible with JS! Maybe best you add it to the main fork https://gitlab.com/laken/mcshopdex as mines completely separate.Gits updated.
-
AuthorPosts
The forum ‘PirateCraft Website’ is closed to new topics and replies.
/50 Online
Vote
Get daily vote key rewards for voting! Use your keys at /warp cove