Skip to content

Suggestion for reducing the save state size: shorten Beer Factory build queue history entries #86

Description

@2ndK16

Every save state contains a full Beer Factory Build Queue history; mine now contains 698 entries and in each entry, a full description of the build is stored, for instance "Build an Academy" oder "Equip Openers with diastatic enzyme".

I suggest shortening these descriptions and outsourcing the full titles into languages/en.json to reduce the save state size.

So, instead of

169: {label: "Upgrade Builder's Yard", ts: "2019-08-01T21:30:40.158Z"}
170: {label: "Construct slot for Beer Cloners", ts: "2019-08-01T09:02:00.800Z"}
171: {label: "Equip Beer Cloners with Amylase", ts: "2019-08-01T09:02:00.797Z"}
172: {label: "Equip Beer Cloners with Carbonation", ts: "2019-08-01T08:03:48.526Z"}
173: {label: "Build a Storage Place", ts: "2019-07-31T23:27:38.526Z"}

store

169: {label: "uby", ts: "2019-08-01T21:30:40.158Z"}
170: {label: "sbc", ts: "2019-08-01T09:02:00.800Z"}
171: {label: "ebcam", ts: "2019-08-01T09:02:00.797Z"}
172: {label: "ebcca", ts: "2019-08-01T08:03:48.526Z"}
173: {label: "bsp", ts: "2019-07-31T23:27:38.526Z"}

in the save state and retrieve the full titles from en.json:

"beerFactory.savestate.blj": "Build a Lumberjack",
"beerFactory.savestate.bsp": "Build a Storage Place",
"beerFactory.savestate.bts": "Build a Transport System",
"beerFactory.savestate.bqa": "Build a Quarry",
"beerFactory.savestate.bim": "Build an Iron Mine",
...
"beerFactory.savestate.ulj": "Upgrade Lumberjack",
"beerFactory.savestate.usp": "Upgrade Storage Place",
"beerFactory.savestate.uts": "Upgrade Transport System",
"beerFactory.savestate.uqa": "Upgrade Quarry",
"beerFactory.savestate.uim": "Upgrade Iron Mine",
...
"beerFactory.savestate.sop": "Construct slot for Openers",
"beerFactory.savestate.sdi": "Construct slot for Dispensers",
"beerFactory.savestate.ssa": "Construct slot for Seervice Assistants",
"beerFactory.savestate.sab": "Construct slot for Automated Bars",
"beerFactory.savestate.sdt": "Construct slot for Delivery Trucks",
...
"beerFactory.savestate.edihy": "Equip Dispensers with Hydrolysis",
...
"beerFactory.savestate.eabfe": "Equip Automated Bars with Fermentation",
...
"beerFactory.savestate.ebpde": "Equip Beer Pipelines with Degradation",
...
"beerFactory.savestate.ecbde": "Equip Cellar Breweries with Diastatic Enzyme",
...

and so on, you get the gist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TechnicalTechnical improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions