06-03-2009, 10:33 AM
I know it looks like not much changed or was added to the MGE/GEC the past several days, but there was still a lot of work done to lay the ground work for some big new features and changes. And this week I devoted significant time to adjusting how and when the GEC obtains its price updates. So things are getting done and moving forward. They just are obvious yet.
Right now I have kind of stumbled upon something simular to writer's block. It's not that I don't have any ideas. I have a lot. The problem is how to proceed to impliment one of my ideas. And I need to impliment this idea now, because it may be impossible later. So I figured maybe writing out the issue here might help me focus my thoughts better, and who knows, maybe one of you has an idea that may help.
Anyway, the project that I have been working on right now is making bank spots stackable. So if you buy 100 Gnome Scarves on Monday and another 50 on Tuesday (would love to have that kind of money) the bank will only have one space taken up with 150 scarves.
Believe it or not, but this feature is a pain in the arse to work on. I want to provide MGE members with as much information as possible about their transactions. If you made 75,000 profit I want you to know it. And it is easy on single item transactions. You bought at X and sold at Y and the difference is your profit. But when these things stack in the bank there might be a few different Xs and Ys. It means that of the 14 spots in your bank, each spot needs to have its own infinate history, which is something I want to avoid. And sadly, I can't tap into the transaction history database because it is finite (currently 30 days) but these items may stay banked for months.
So the problem is telling you how much of a profit you made. You may have bought 10 hammers at 1gp one day and another 5 hammers at 2gp the next day. Today hammers may be selling for 3gp. But what's the profit? The MGE would need to know you bought 10x1 and 5x2. That means maintaining a history and like I said, transaction history won't work. Thus each item in your bank needs its own history. But I want to avoid that because it will create its own set of problems. If you sold 11x3, then that 10x1 you bought is not needed. So should that 10x1 be removed from the item history? Argggg!!! My brain is going to explode.
The only solution to this that I can think of is to basically provide you with the total purchase price vs total current price and total sold price (if you sold any portion of your inventory). So your total purchase price would be 20gp. Your total sold price would be 33gp. Your total current inventory of 4 hammers is valued at 12gp. But even that is confusing.
If you are confused, then welcome to my world. Its been a confusing road I have traveled on during this stacking project. And there have been many times I was going to axe the whole stacking concept. That is an alternative I may very well do also. We could treat item purchases like stocks in the real world. Each time you buy a stock you get a certificate. Maybe we should just view each bank spot as a certificate of purchase. I don't know. I am still debating what to do. Anyone have any ideas (that is making the assumption that anyone even understands this post).
Right now I have kind of stumbled upon something simular to writer's block. It's not that I don't have any ideas. I have a lot. The problem is how to proceed to impliment one of my ideas. And I need to impliment this idea now, because it may be impossible later. So I figured maybe writing out the issue here might help me focus my thoughts better, and who knows, maybe one of you has an idea that may help.
Anyway, the project that I have been working on right now is making bank spots stackable. So if you buy 100 Gnome Scarves on Monday and another 50 on Tuesday (would love to have that kind of money) the bank will only have one space taken up with 150 scarves.
Believe it or not, but this feature is a pain in the arse to work on. I want to provide MGE members with as much information as possible about their transactions. If you made 75,000 profit I want you to know it. And it is easy on single item transactions. You bought at X and sold at Y and the difference is your profit. But when these things stack in the bank there might be a few different Xs and Ys. It means that of the 14 spots in your bank, each spot needs to have its own infinate history, which is something I want to avoid. And sadly, I can't tap into the transaction history database because it is finite (currently 30 days) but these items may stay banked for months.
So the problem is telling you how much of a profit you made. You may have bought 10 hammers at 1gp one day and another 5 hammers at 2gp the next day. Today hammers may be selling for 3gp. But what's the profit? The MGE would need to know you bought 10x1 and 5x2. That means maintaining a history and like I said, transaction history won't work. Thus each item in your bank needs its own history. But I want to avoid that because it will create its own set of problems. If you sold 11x3, then that 10x1 you bought is not needed. So should that 10x1 be removed from the item history? Argggg!!! My brain is going to explode.
The only solution to this that I can think of is to basically provide you with the total purchase price vs total current price and total sold price (if you sold any portion of your inventory). So your total purchase price would be 20gp. Your total sold price would be 33gp. Your total current inventory of 4 hammers is valued at 12gp. But even that is confusing.
If you are confused, then welcome to my world. Its been a confusing road I have traveled on during this stacking project. And there have been many times I was going to axe the whole stacking concept. That is an alternative I may very well do also. We could treat item purchases like stocks in the real world. Each time you buy a stock you get a certificate. Maybe we should just view each bank spot as a certificate of purchase. I don't know. I am still debating what to do. Anyone have any ideas (that is making the assumption that anyone even understands this post).
![[Image: 10h3zm8.png]](http://i42.tinypic.com/10h3zm8.png)