Issue - Saving an Entire Tycoon

Hello, i’m currently having issues with saving an entire Tycoon to a DataStore when a player leaves the game. Would i have to save each part individually or could i make a “main” script that would cover the entire tycoon and save it directly for the Player to gain it back when he joins back the game? Thanks.

Ideally what you would want to do is compress that data down as small as possible, so the DataStore you’re saving to doesn’t reach the file size limit. This depends on the type of tycoon you’re making, though.

If it’s a ‘classic’ tycoon (the type where you gain money and click on buttons to build predetermined things), then ideally you’d only need to save a table full of each unlocked purchase, and then load that when the player rejoins. A more complicated sandbox tycoon would benefit more from an ID system, where each unique item has a single ID to refer to it, and then you would save any other needed data such as position or color alongside it.

1 Like

When you mean a “SandBox Tycoon” you mean a game such as “Theme Park Tycoon” (if you know) ?

Yes, a sandbox tycoon is any game where you have more freedom over the placement of items.

If it is a button tycoon, where you step on buttons and buy objects, then i suggest you watch B Ricey’s youtube tutorial on this.

But if it is a Sandbox tycoon where you place the objects where you want, then it is a more complex system where you save the position and properties of an item.

If you’re looking for a sandbox tycoon save method, then I would suggest Egomoose’s Placement Save System using Datastores (linked below)

Edit: This will need to be modified to fit your own code but it should help give a starting point

1 Like