Online Admin Shop version 2 progression

Discuss anything you want about Minecraft here including our own servers
User avatar
Pri
Site Admin
Site Admin
Posts: 5433
Joined: Fri Dec 14, 2007 8:59 am

Online Admin Shop version 2 progression

Mon Jun 23, 2014 3:16 pm

Today I reached a milestone in the development of the new online admin shop. The interface in which you purchase items has been completed and the database scheme has been defined.

I think this is probably the largest web project I've done simply due to how much information has to be taken in to account. Just to handle each item in the shop there is around 80 different pieces of information held in the database.

Everything in the shop is defined from a database. Nothing is hardcoded in to the page. This is a completely separate approach to the current shop where everything is hard coded in to the page making it very difficult to add new features. The way discounts were added to the current shop for example was a very dirty hack and one I will not be repeating with the new shop.

To put it simply, the new shop is highly extensible, this means new features can be added very quickly. To give you an example the new shop won't support the buying of items from players but if it were to support that it would take at most 15 minutes to implement that feature. If I were to add that to our current shop it would take days.

So lets take a look at the interface! (View the interface fullscreen here: http://i.imgur.com/OMSJuoU.png)

Image


As you can see everything of importance is held within this pop up interface. So the main page UI can be completely uncluttered. Every item will be listed on the page within a small box, 6 boxes per row with many columns. Very similar to the current shop. But different is each item will have its name written above its icon (a much requested feature) and instead of having a buy button below the icon you'll instead get the current price for a single unit of that item.

In the example case Cobble is selling for R0.27 per unit. Now once you click the icon you'll get the pop up which offers you a slider to select a specific amount of items to buy. On the right there is a button which in real time as you use the slider calculates both the price you'll pay and the quantity you've selected. Simply clicking that button buys it instantly, without reloading the page so you can click the button multiple times.

In the Cobble example I have specified the slider to range from 1 unit to 512 units but each item can have the slider specify its own amount to purchase, it's not hard coded.

There are also some convenient quick buy buttons for popular quantities. These are also defined within the database entry for this item and can also be changed on a per item basis.

Below that you have recent sales, it lists five of the most recent sales of this item including quantity purchased, what that user paid per unit and the total cost.

Then finally you have overall statistics for this item including total sold since shop v2 launched, sales this month, this week and today. It is my hope these statistics will become a valuable piece of research for players who want to compete with the admin shop.

The variable pricing will mean the most popular items in the Admin Shop will increase in price opening up the market for players to undercut. More ways for you to sell your items to other players will be coming and changes to the auction system will make it easier and quicker to list items making it even more worthwhile to sell your goods.

Thanks for reading the first topic on our new admin shop. I'm really interested in hearing your thoughts, I know it's a long post for something I'm sure many of you will find boring :lol: but the fact is the shop is one of the most used features of the server and it's now a year old and definitely needs a new foundation on top of which the server can innovate new features.

You may remember recently I added an in-game command called /setshop which when used added a little teleport button to all your auction listings so other players could teleport straight to your shop in-game from your listings. The new shop I'm writing will leverage the same extensible ideas that made that feature possible for auctions, a feature I wrote in less than an hour and that many of you have made use of.

I don't even know what the future of the admin shop entails, online crafting? card buying/trading? player selling? - But I do know the new shops foundation will get us there :)
User avatar
killer
Master Crafter
Master Crafter
Posts: 110
Joined: Fri Jan 31, 2014 9:53 pm

Re: Online Admin Shop version 2 progression

Mon Jun 23, 2014 5:40 pm

I absolutely love this!
User avatar
Stephanie
Legendary Crafter
Legendary Crafter
CPU: C2E 9300 2.53 @ 3.06
RAM: 4GB @ 1333MHz
Motherboard: NVIDIA 730i
GPU: GTX 280M SLI
Display: 17" 1920x1200
Posts: 1073
Joined: Mon Jul 22, 2013 9:23 pm

Re: Online Admin Shop version 2 progression

Mon Jun 23, 2014 11:51 pm

o.o
Attachments
18960__safe_pinkie-pie_rarity_animated_reaction-image_putting-your-hoof-down_jaw-drop_it-quo-s-beautiful_.gif
18960__safe_pinkie-pie_rarity_animated_reaction-image_putting-your-hoof-down_jaw-drop_it-quo-s-beautiful_.gif (277.2 KiB) Viewed 1194 times
User avatar
Pri
Site Admin
Site Admin
Posts: 5433
Joined: Fri Dec 14, 2007 8:59 am

Re: Online Admin Shop version 2 progression

Wed Jun 25, 2014 4:45 pm

Here is another picture showing the main page. These items won't be grouped together in the actual shop of course I'm just mixing them together for testing reasons.

Image


You can see the prices listed below the item are coloured. Blue means the price is stable and hasn't changed in the past 24 hours. The orange means the price has increased and the green means the price has decreased.
User avatar
Stephanie
Legendary Crafter
Legendary Crafter
CPU: C2E 9300 2.53 @ 3.06
RAM: 4GB @ 1333MHz
Motherboard: NVIDIA 730i
GPU: GTX 280M SLI
Display: 17" 1920x1200
Posts: 1073
Joined: Mon Jul 22, 2013 9:23 pm

Re: Online Admin Shop version 2 progression

Wed Jun 25, 2014 6:29 pm

okay wait I might not yet have had my coffee yet but will the admin shop prices change along with economy in game?
User avatar
Pri
Site Admin
Site Admin
Posts: 5433
Joined: Fri Dec 14, 2007 8:59 am

Re: Online Admin Shop version 2 progression

Wed Jun 25, 2014 6:36 pm

Yes they will. Essentially as players buy goods the prices will rise then if sales fall off the prices will go down. So the admin shop will reflect the health of the economy and adjust its prices on every single item appropriately without me needing to change prices by hand.

I've currently designed it to only increase or decrease prices once per day for all items. So at the end of the day the system will examine the sales that occurred and adjust prices appropriately. Each item has its own scale for how much the price can raise or lower in a 24 hour period so someone who is doing a massive build and buys 10,000 cobble blocks won't be able to affect the price of cobble more than a cent for each individual unit within that 24 hour period and then the next day the price may go down if sales weren't as amazing or stay the same.
User avatar
Stephanie
Legendary Crafter
Legendary Crafter
CPU: C2E 9300 2.53 @ 3.06
RAM: 4GB @ 1333MHz
Motherboard: NVIDIA 730i
GPU: GTX 280M SLI
Display: 17" 1920x1200
Posts: 1073
Joined: Mon Jul 22, 2013 9:23 pm

Re: Online Admin Shop version 2 progression

Wed Jun 25, 2014 6:58 pm

Oh wow!! That's a huge change! Very Cool!
User avatar
Pri
Site Admin
Site Admin
Posts: 5433
Joined: Fri Dec 14, 2007 8:59 am

Re: Online Admin Shop version 2 progression

Mon Jun 30, 2014 5:02 am

Some more updates today.

The backend code for handling item purchases is about 90% finished. This is the sort of interface there will be in-game.

Image

And yes it handles your inventory full situations perfectly.

Image

These screenshots are from actual real running code, not mockups. I think I'm well on track for a release next month no question :)
User avatar
rebelgold
Artist
Artist
Posts: 303
Joined: Thu Nov 28, 2013 2:29 pm

Re: Online Admin Shop version 2 progression

Mon Jun 30, 2014 8:42 am

This is really promising and noob friendly too
Looking forward to it
Image

0% of people who cannot read music will understand this
25-50% of people who can read music will understand this
User avatar
Pri
Site Admin
Site Admin
Posts: 5433
Joined: Fri Dec 14, 2007 8:59 am

Re: Online Admin Shop version 2 progression

Mon Jun 30, 2014 11:47 pm

Shop is about 95% done now.

Image

To go any further I now need to add all the items in. I'm now doing that and it is slow slow going but I will get there eventually :)

Return to “Minecraft General Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests