[WIP] Midway step in refactoring trade

Thinking about improving the Artwork in Vega Strike, or making your own Mod? Submit your question and ideas in this forum.

Moderator: pyramid

Re: Midway step in refactoring trade

Postby chuck starchaser » Mon Sep 17, 2012 12:57 pm

Bundles sound good.
So, each planet type maps to a bundle type?
As far as matrixing, the other solution is to NOT matrix it...
Just doing a search of nearby systems by following the jumps a couple of levels deep, or until a base of each given type is found.
Just like the flyweight pattern trades speed for memory.

EDIT:
Never mind; I thought this was for local use, where the player is... This is about simulation of global trade, right?
If so, sounds like there's a problem.
Hmmm....
Well, maybe the nearness of other planet types could be computed on first run, like map generation, and stored in the planet files; then economics simulation could simulate one single system per 11 Hz sim frame; and to avoid aliasing perhaps the system at each sim frame could be picked at random.
chuck starchaser == chuck_starchaser
had to create new id because the wiki would not see the underscore... Programmers...
chuck starchaser
Star Pilot
Star Pilot
 
Posts: 4
Topics: 1
Joined: Wed Sep 14, 2005 3:20 pm

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: Midway step in refactoring trade

Postby klauss » Mon Sep 17, 2012 1:24 pm

chuck starchaser wrote:Never mind; I thought this was for local use, where the player is... This is about simulation of global trade, right?
If so, sounds like there's a problem.
Hmmm....
Well, maybe the nearness of other planet types could be computed on first run, like map generation, and stored in the planet files; then economics simulation could simulate one single system per 11 Hz sim frame; and to avoid aliasing perhaps the system at each sim frame could be picked at random.


Yep, global trade. I was planning to use coroutines for that.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Midway step in refactoring trade

Postby travists » Mon Sep 17, 2012 3:29 pm

chuck starchaser wrote:Well, maybe the nearness of other planet types could be computed on first run, like map generation, and stored in the planet files
This is my thought as well.

chuck starchaser wrote:then economics simulation could simulate one single system per 11 Hz sim frame; and to avoid aliasing perhaps the system at each sim frame could be picked at random.
Are you thinking recalculating the system the player is in 11 times each second or at a 11hz tick recalculate a new/random system?

The way I had it envisioned was to do a per planet check only once a "day" like the end of day commodity price reports.
User avatar
travists
Expert Mercenary
Expert Mercenary
 
Posts: 893
Topics: 33
Joined: Thu Jul 08, 2010 4:43 pm
Location: Sol III North American Continent

Previous

Return to Content Vetting

Who is online

Users browsing this forum: No registered users and 1 guest

cron