[website] Added searchable shops micro website

Home Forums PirateCraft Website [website] Added searchable shops micro website

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #48347
    GodsDead
    Keymaster
    • Topics: 794
    • Replies: 3343
    • Total: 4137
    • ★★★★★★★★

    http://signshop.piratemc.com/

    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.

    #48349
    Bazurka
    Moderator
    • Topics: 39
    • Replies: 414
    • Total: 453
    • ★★★★★

    Wow, 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

    #48350
    Crazy Pirate
    Member
    • Topics: 110
    • Replies: 1997
    • Total: 2107
    • ★★★★★★★

    That’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 😉

    #48377
    GodsDead
    Keymaster
    • Topics: 794
    • Replies: 3343
    • Total: 4137
    • ★★★★★★★★

    Fixed 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!

    #48437
    Saltpigeon
    Blocked
    • Topics: 17
    • Replies: 76
    • Total: 93
    • ★★★

    I found a shop selling carrot : 111 carrots for 0.05$!

    Needless to say, I went there and bought it all out.

    Do not horse

    #48696
    Edori
    Member
    • Topics: 17
    • Replies: 170
    • Total: 187
    • ★★★★

    Is 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!

    #48704
    GodsDead
    Keymaster
    • Topics: 794
    • Replies: 3343
    • Total: 4137
    • ★★★★★★★★

    Is 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?

    #51326
    benthebruce
    Member
    • Topics: 14
    • Replies: 98
    • Total: 112
    • ★★★★

    @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.

    benthebruce
    Prime Minster
    British Empire

    #51463
    GodsDead
    Keymaster
    • Topics: 794
    • Replies: 3343
    • Total: 4137
    • ★★★★★★★★

    @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.

    #52028
    GodsDead
    Keymaster
    • Topics: 794
    • Replies: 3343
    • Total: 4137
    • ★★★★★★★★

    Update

    I pushed the JS updates from the new fork and updated ours, so its back up and running! you can now search Per player.

    http://signshop.piratemc.com


    @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.

Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘PirateCraft Website’ is closed to new topics and replies.

/50 Online

Mobile Page

Join the PirateCraft discord server
Join the PirateCraft Discord server! discord.piratemc.com
Reddit - PirateCraft Subreddit PirateCraft YouTube PirateCraft Twitter PirateCraft Instagram PirateCraft Facebook