I’m currently planning to make a way for users to create custom maps for an FPS game I’m working on.
My FPS game is very similar to CS:GO, so this map editor should be able to:
- Support the ability to adjust position, size, color, material, etc. of any BaseParts (obviously)
- Support custom classes/objects: I want players to be able to easily create bombsite regions, parts that indicate where water generates, etc. I will refer to these parts as “special parts”. They can’t create their own custom classes
- Support custom properties: Players should be able to adjust whether an object should unload from a set distance, unload/load at a specific graphics setting, etc. They also can’t create their own custom properties.
- Groups (optional) : Be able to group parts together.
- Support undo and redo: This doesn’t need to be saved to the datastore.
Right now, I have an idea how I might pull this off. I can make separate folders, where the groups, parts, and special parts are located, and then I can create a custom script that converts that all into one string, but I don’t know whether such method can work.
Are there any limits to this method? Like, is there a max length on how long a string can get? Should I use a different method altogether or is it possible to save objects as they are?
If you know anything, please let me know.
Edit:
also im not asking for any code and instead for ideas/suggestions, but you can of-course write some if you have the time and effort. Who knows, maybe it will be useful?
I will also leave this thread open for other suggestions until I finish my map editor.
Edit 2: I decided to close this post and to make the post that is the most important for me as the solution, but this doesn’t mean that everything else is useless. Thanks to xGOA7x and Hazania for the help!