I am working on a sandbox placement system game and I want to have the functionability where
users can upload models to a sort of marketplace (in-game ofc) where other players can buy them.
The problem I have is not how I would serialize it but how I would encode it to a string.
I tried using JSONEncode to encode the serialized table into a string then using Base64 to encode to a code. The problem is that the string is too long and thus does not look good to the eye for sharing with others.
I could solve this with never showing it and people just searching for it by a user but I want players to directly be able to paste in a code and view it.
How would I go about turning a table into a short eye-friendly share code?
Could you have a StringValue as a part of the Model that the person creating the model would have to fill in a string that would be used as a description of the model that could be searched?
You would want to use a part saving system to turn parts into string that can be saved.
Once you have that string you will want to come up with some kind of organisation system for the saved models.
One way would be to create 2 DSS and have 1 store the names and the ID of the model. While the other would store the model itself.
This means you can make a massive model browser with minimal datastore usage. You can make DSS endless by assigning new save slots under a single store, when one slot is full you can make it auto create another. From there you can take it as far as you want and create search bars and naming options for people’s uploaded models.
This sort of system has a lot of potential. Even if you dont use it to its fullest you can use it to give a player a share code for their model so they dont have to share long string.