I'm back at it after an extended break. Today I finished up most of the colony side of the Market system and killed a few bugs with it. Next up is the ship side of the Market which will allow a ship to buy and sell items while landed at a colony.
I think for now I'm going to disallow buying and selling if the ship belongs to the same player as the colony. I don't really see a point in it since ships and colonies all operate off the same money pool for the player.
Wednesday, May 22, 2013
Tuesday, January 15, 2013
Year 13 - Day 15
I'm slowly getting there. I try to write at least a few lines of code each day. The colony side of the Market system is almost finished. Then I'll work on the Ship side of it before I get back to working on Combat.
Part of the complication lies in the way I'm handling items. I have "stackable" items like mineral ore, which are basically one item with the quantity field set to > 1. Non-stackable items have a damage rating, which ranges from 1 to the total mass value of the item.
This system works fine until it comes time to sell or buy non-stackable items. The issues are:
1. I'd have to list the current damage rating so the buyer can be sure they're not buying a damaged item.
Solution: Can't sell damaged items on the market screen. They'll have to be "sold" via colony pickups and money transfers. This may actually lead to a little more complexity since I may have to add an escrow system, or I could let a player organization handle this.
2. If I list that I want to buy 20 Jump Engine Modules, it becomes more complex to decide which 20 engines a seller wants to sell out of his inventory, both for the UI and the code behind the scenes.
Solution: Items are "sold" to a colony from the ship's Inventory screen, where non-stackable items are listed individually and will have a price next to them if the colony is willing to buy that particular item.
3. Listing multiple non-stackable items for sale will add a lot of clutter to the market screen.
Solution: Not really sure on this one yet. I guess I'll have to add some type of robust filtering system to the market screen. I may have to play around with it a bit to see what works best.
Part of the complication lies in the way I'm handling items. I have "stackable" items like mineral ore, which are basically one item with the quantity field set to > 1. Non-stackable items have a damage rating, which ranges from 1 to the total mass value of the item.
This system works fine until it comes time to sell or buy non-stackable items. The issues are:
1. I'd have to list the current damage rating so the buyer can be sure they're not buying a damaged item.
Solution: Can't sell damaged items on the market screen. They'll have to be "sold" via colony pickups and money transfers. This may actually lead to a little more complexity since I may have to add an escrow system, or I could let a player organization handle this.
2. If I list that I want to buy 20 Jump Engine Modules, it becomes more complex to decide which 20 engines a seller wants to sell out of his inventory, both for the UI and the code behind the scenes.
Solution: Items are "sold" to a colony from the ship's Inventory screen, where non-stackable items are listed individually and will have a price next to them if the colony is willing to buy that particular item.
3. Listing multiple non-stackable items for sale will add a lot of clutter to the market screen.
Solution: Not really sure on this one yet. I guess I'll have to add some type of robust filtering system to the market screen. I may have to play around with it a bit to see what works best.
Sunday, January 6, 2013
Year 13 - Day 6
I just finished off 95% of the colony Pickup Orders functionality. I'm sure I missed something and I still have to test it out a lot, but right now a colony can issue an order to allow another player to pickup items at the colony. A message is sent to the other player letting them know this, and he can send any ship he owns to the colony to pick the stuff up.
I still need to work on the UI of the colony end a bit, and item transfer itself still has a good chunk of work to be done, since right now transferring items takes no time to complete. Eventually it will take an amount of time to transfer an item based on it's mass, with the Cargo skill helping to speed this up some.
I still need to work on the UI of the colony end a bit, and item transfer itself still has a good chunk of work to be done, since right now transferring items takes no time to complete. Eventually it will take an amount of time to transfer an item based on it's mass, with the Cargo skill helping to speed this up some.
Wednesday, January 2, 2013
Year 13 - Day 2
Happy New Year!
I'm almost finished with colony pickup orders. It's all working except for stackable items, so I should finish it up very soon. After that I'll probably stay on the same lines for a few days and finish up the Market system since a lot of the work I've been doing recently will help finish that also.
Then I'm back onto the combat system until I get it finished up with basic beam lasers.
I'm almost finished with colony pickup orders. It's all working except for stackable items, so I should finish it up very soon. After that I'll probably stay on the same lines for a few days and finish up the Market system since a lot of the work I've been doing recently will help finish that also.
Then I'm back onto the combat system until I get it finished up with basic beam lasers.
Sunday, December 23, 2012
Year 12 - Day 357
I just returned from a 9 day trip out of state including a week in Disney World, so work on the game has been on hiatus for about two weeks. Fortunately, a friend has started doing some play testing for me, so I'm getting a lot of feedback and finding some serious bugs that never would have shown up without multiple people playing at the same time. The fact that someone is actually willing to spend some time playing the game is exciting to me also, since it means it's close to being a real game that people will be interested in playing.
My focus for the next few days will be to get colony pickup orders working, so I can transfer some material to the test accounts. This will let me avoid having to create items directly in the database and transferring them over, which should save some time and also get important functionality up and running at the same time.
Then I'll get back to the combat program. It's progressing nicely so far, and actual damage is being done to ships. Ships aren't quite being destroyed yet, but that should be in soon. I'm hoping to reach a point in the next week or so where I can let combat run past the hard 5 turn limit I have now and end programmatically instead.
My focus for the next few days will be to get colony pickup orders working, so I can transfer some material to the test accounts. This will let me avoid having to create items directly in the database and transferring them over, which should save some time and also get important functionality up and running at the same time.
Then I'll get back to the combat program. It's progressing nicely so far, and actual damage is being done to ships. Ships aren't quite being destroyed yet, but that should be in soon. I'm hoping to reach a point in the next week or so where I can let combat run past the hard 5 turn limit I have now and end programmatically instead.
Tuesday, November 20, 2012
Year 12 - Day 324 - Armor
Work is still progressing on the combat system. Today I finalized some values for armor and ship speed calculation is now taking into account the armor a ship may have. I'm borrowing the names of most of the armor types from one of my favorite 4X space games of all time.
Armor Types
1 = Durasteel 100 hps 2.5 weight per layer
2 = Tritanium 200 hps 2.0 weight per layer
3 = Zortrium 300 hps 1.5 weight per layer
4 = Neutronium 400 hps 1.0 weight per layer
5 = Adamantium 500 hps 0.5 weight per layer
The next big step in the combat code is having the damage actually being applied to ship modules, then I'll work on the consequences of that damage.
Armor Types
1 = Durasteel 100 hps 2.5 weight per layer
2 = Tritanium 200 hps 2.0 weight per layer
3 = Zortrium 300 hps 1.5 weight per layer
4 = Neutronium 400 hps 1.0 weight per layer
5 = Adamantium 500 hps 0.5 weight per layer
The next big step in the combat code is having the damage actually being applied to ship modules, then I'll work on the consequences of that damage.
Friday, November 9, 2012
Year 12 - Day 313
I made more progress on the combat system today. Actually, it involved a lot of code remediation and ripping out whole sections for a rewrite, but I've almost got the friend vs. foe functionality finished and soon there will be multiple ships involved in combat.
Subscribe to:
Posts (Atom)