trophy 1430
Apr 2021 115 posts
Update 25.10.29 : news/update-25-10-29
trophy 1933
Sep 2021 13 posts
first
trophy 1360
Sep 2021 107 posts
📦
trophy 400
Jul 2023 28 posts
🔥🔥🔥
trophy 0
Jul 2024 13 posts
I would suggest you be sure to have Stream-based APIs for Storage so it integrates well with other .NET APIs and third-party libraries .

You should also have async/coroutine/whatever methods for reading/writing storage, since it looks like the ones you shared are synchronous. If they are called on the game loop thread (I assume any game scripts you write run there by default) with large files, you could get frame drops. Adding async variants will make the calls more complex (you start calling on one frame but finish on another) but developers can use this to minimize stutter.
trophy 1290
Apr 2021 348 posts
OpenRead and OpenWrite give you a stream.

https://sbox.game/api/Sandbox.BaseFileSystem
trophy 755
Aug 2022 46 posts
Happy to see Dark Descent getting a shout out.
trophy 0
Nov 2025 1 post
trophy 65
Dec 2022 6 posts
 
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.