Saving structures data?

I’m working on a sandbox with the ability to build stuff base on blueprints.

Basically you chose a blueprint, It spawn semi transparent meshes and you need to build them one by one.
Kinda like The Forest style of building, Now how should I make the thing to save the building status?

Unlike The Forest you can build stuff not in order so I can’t save it base on materials…
Also how do you even save this thing? Via array of structs?

Also when you chose a blueprint(In the game, Not UE4 BP) it spawn the structure blueprint(UE4 BP) inside the first structure blueprint(UE4 BP)

I would try the following:

  • create the actor with 1 static mesh for each wood log, rock, stick, …
  • when you start building set the collision disabled and set the material of each mesh to a semi transparent one and disable all logic that the actor can do when he’s finished.
  • whenener one more part is built, you switch the material of that part to its original one.
  • when all parts are built, enable the collision and the logic of this actor.

I don’t understand what you’re trying to say with your last sentence but beside that I don’t see a reason why this wouldn’t work.

I know how to make it work I just not sure how to make the game save all of those things

You have to use UE4’s SaveGame system (or a Database for online games) to make your game save/load changes in your game level.

I might be mistaken but I think maybe rama has a save function written and exposed to blueprints.

Ya thats what I was thinking, Thanks