Posts

DevLog #55 - IndustrySystem refactored and FINALLY DONE !!!! Big milestone! Biggest system finished!!

Image
 ****** IndustrySystem finished! ****** I will go deep into how it works and how it differs from other systems we had.******  This is it!!! The system I have been building since the start of this game development, now its done!  Of course there were amny issues, sturcture wise, constant refactoring, optimising, and trying to solve the whole puzzle in my mind before i do it in code. Lets get started! : ) First, reminder why it is if not the most complex system in game:   For industry, we have few different databases(scriptable objects ) that interact with each other. For example, officeSystem has a single database of officeTierDatabase , which contains differnt sizes of offices, which , uponupgrade it takes all the other data , like max workers , upgrade cost, efficiency per worker etc.. ( feels like i have talked about this haha), anyhow, the industrySystem   has one industryTierDatabase,  plus it has another database which is industryTypeDatabase, ...

Devlog #54 - TruckSystem refactoring, bug fixing, Global Market- further dev, and connecting to the existing structure/ truckSystem, StoreSystem - new mechanic - also fixing storeSystem bugs, order amount,

 ***** TruckSystem refactoring, bug fixing (industries order) , GlobalMarket futher dev ,also connecting import to the truckSystem, StoreSystem new mechanic for overfilling warehouse, and bug fixes with orders.****** TruckSystem : First, refactoring code, separating methods, but first it was the usage of 2 confusing and different varialbes, that were causing bugs, because I mixed them up few times while writing the code hah     public int currentCargo ; // used only to remember the value over turn     public int truckCargo ;     if ( sourceIndustry . warehouseStock > 0 )                 {                     int amountToTake = Mathf . Min ( truck . orderAmount , ( int ) sourceIndustry . warehouseStock , maxByCapacity );                     sourceIndustry . warehouseStock -= amountToTake ;   ...

Devlog #53 - BIG UPDATE - Refactoring Industry, introducing new Products - UI ICONS ! replacement with real icons from online store. Summary Turn Added -new system, And Bug fixes...

Image
 ****** BIG UPDATE **** - Added new products for futher dev, after the initial 6, UI ICONS replaced by real icons, and not using windows/mac icons anylonger. turnSummary System added, bug fixes******** UI ICONS - Instead of original windows/mac icons that were placeholers actually, i replaced them from the website flaticons. So now, each product can have destinct icon but more importantly, it would be the same on mac and windows. As well as it is way more beautiful , same goes for  Sidebar icons, mail icon, and will later do money icons. But for now, the products and those most visible icons are changed. For example :  Before and after:  Before and After Much better!?  Also, the macbook icons were much nicer tbh, then windows ones, but this, its universal,also less generic. Thing is, I might still adjust this, but just an idea!  Technical side :  First approach : It was naming them within the code, and then wrigint  the exact name/location etc....

Devlog #52 - InboxSystem - new system , StoreSystem sell-store, FIXED, code refactoring, bug fixes, Market algorhythm balance , Global Market development.

Image
 ***** InboxSystem - totally new system but the idea was there, StoreSystem sellstore fixed - MarketSystem algorhythm more balanaced and refined, and GlobalMarket still in development**** InboxSystem -  New system that I have had in mind since long time ago, but now its finally here! So the strucutre that I used for this fits perfectly in the already existing structure. Same as we had for snapshots, (who read the older devlogs hah) ,now i thought ok, we need a simple way of sending 'notifications' to a list, that is then presented as inbox . Essentialy, like the financialHistory, where each addMOney, and removeMoney , is just being added to the ledger ( which is a list on a worldManager), now we did the same. Its quite simple! But still i loved to think and improve it.  lets get into it! -Structure - first i created a list among all other lists that represent snapshots for chart values, assets and other. only this time, we call it inbox,    public List < Inb...