DevLog #6-11 , Industry System, TruckSystem

Summarising, From old github commits


IndustrySystem introduced, which is basically a system that applies to all industry structs and processses them, again, that is the data driven light model that we are still using, but still we have base tick time, whichwas set at 5seconds, with the original idea of making the game faster or slower. Either way, the INdustry sistem struct example:



Many variables added, also industrySize which will be later changed and replaced with the fixed Enum sizes, of different industries, and wont be as simple as unlimited growth and always proportional. It will be more proportional to efficiency size workforce and building size. Essentially mimicking the real life industry.


Industry systemLogic  : after lots of consideration and game desing, the direction was that the industry is split into state owned and player owned. state owned industries function basically as separate entites and they produce goods each turn, if player orders more goods then they could produce, slowly the industry upgrades, thus making and producing more per turn. in the same way, if player is ordering less, then the indstry shrinks. That was the whole base of the game desin as far as industries are concerned. 



TruckSystem one of the most complex systems later, here is how it looked like in the begining, example



Essentially it goes through Hub, goes through each truck , checcks if industry has anything in the warehouse, if it does, then it takes eithe rmaximum what industry has or if it has more then what is ordered then it takes the maxmimum amount of ordered. Very basic. This was the begining of many frustrations and almost quitting moments later.

Basically what was missing here, is cross city, also cross industry/warehouse/store.. also, max amount depending of the size of the truck, then size of each product ( weight)  which means that for each poroduct there is a limit to how much a truck can actually take, more bread then milk or more coffe then bread etc. So that meand adding into MarketState (productstate). variables like weight etc.. 


Comments

Popular posts from this blog

Devlog #47 - TaxSystem/FinanceSystem ,Update-FIx -LoanFixes-- TruckSystem Update - Upgrade/BuyNEwTruck - Costs Prices introduced / OfficeSystem CreateNewOffice, upgrade office - other Fixes

Devlog #46 - HubSystem - CreatNewHub added, HubBuild Ui + INdustrySystem Update - -INdustryTierData to be combined with the IndustryData and IndustryState struct -

Devlog #49-50 - Asset System-NEW system, *Game Design* -construction costs update - LoanSystem- fix-redesign-upgrade,Bug fixes-storeSystem,AutoAdvance Day, Market system, Truck System cost redesign, refactored, Ui bug fixes