x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Save a procedurally generated level

I build a system for procedural level generation and would like to know how to save all the actors and their tranformation to a file. could anyone please tell me how I could do something like this? (sorry if my english isn't the best. It's not my mother tongue)

Product Version: UE 4.13
Tags:
more ▼

asked Feb 13 '17 at 04:08 PM in Blueprint Scripting

avatar image

Kay Jersch
16 8 13 14

avatar image Axebeard Nov 23 '17 at 05:29 AM

Did you ever figure this out? I'm having the same issue. I have a level made of procedural buildings that are made of procedural parts. There are tons of procedural things going on. I'm using level streaming to load and unload instances of my map over and over, but they're different every time, and obviously I want them to be consistent.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

If you are using blueprints, check out the SaveGame system which will allow you to write data to a file:

https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/index.html

If you are using C++, you could try something like this:

https://wiki.unrealengine.com/Save_System,_Read_%26_Write_Any_Data_to_Compressed_Binary_Files

I either case you are just going to loop through the actors and write their transformations to a file. I am assuming you want to use them later to reload a procedural level.

more ▼

answered Feb 14 '17 at 06:14 AM

avatar image

Dartanlla
2.6k 63 28 281

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question