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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Problems With Savegame

Hello, I want to Save Some Actors with the Savegame Bluprint but there are some Problems.

After the restart of the game the informations about the actors are wrong or deleted and I dont know why

For this Test I made a PrintString for

ActorName -->deleted after Restart

ArrayIndex -->Is saved

CharacterName-->are only like the first Spawned Character

Location -->dont know how to describe this ^^

alt text

Hope one of you can help me to understand my mistake

Thanks

Product Version: UE 4.10
Tags:
bluprints.png (1.2 MB)
result.png (142.8 kB)
more ▼

asked Mar 12 '16 at 05:29 PM in Using UE4

avatar image

Mathrim
7 6 8 6

avatar image CKong Mar 14 '16 at 05:46 AM

Well, frankly, i think you got a bad case of messy code, i spot at least 2 array list variable used to store your character, and after adding your newly spawn character, those variable didn't get reference again, which leading me to question why did you put them inside the SaveGame function? Based on the rule of thumb, complex code result in complex problem and kill tons of innocent neuron, and multi-task function is one of the main reason for complex code.

Also, can you show us how did you set up your save game blueprint?

avatar image Mathrim Mar 16 '16 at 02:41 PM

I wanted to save all the changes in the game

the the character was just a test because I have no possibility found to" save all changes "

I had originally only the character array because all setings for the Character are saved in the CharacterBluprint

but that did not work So I wanted to write about the structArray the information again to the respective character

in savegame bluprint nothing. still 4 Variables character / character array struct / structarray

I hope that helps a little bit to understand the problem

sorry for my bad English

avatar image CKong Mar 21 '16 at 10:47 AM

If i remember correctly, you can't store actor/ character in a save game, so i suggest you remove the character list from your struct either add variable to current struct/ create new struct to store your actor data. If you still got the problem, try to follow the tutorial, you may spot error in your code.

avatar image Mathrim Mar 24 '16 at 03:04 PM

I wrote the blueprint over again . This time only the Actor class is saved .

But the problem is the same

when loading neither the actor nor the class is displayed

I didnt understnad the last of your comment

you could graphically represent this alt text?

savegametest2.png (319.8 kB)
result2.png (200.4 kB)
avatar image Mathrim Mar 24 '16 at 03:23 PM

I just observed something interesting

I ahbe the .sav file geköscht and started the game

spawned a few characters

then I have the closed program

the .sav was ca 700byte large

then I have the game started again

again spawned a character

then exits again

and the .sav was only 200byte large

all seems to be anything overwritten .sav in the restart of the game

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

1 answer: sort voted first

OK I think I got it

Not the way i want but the Result

ThisTutorial was realy helpfull

more ▼

answered Mar 30 '16 at 03:55 PM

avatar image

Mathrim
7 6 8 6

avatar image Mathrim Mar 30 '16 at 05:56 PM

I forgot after the "spawnActorFromClass" node in the "Spwnactormacro" you have to add an "spawnDefaultController" node target is the return of the "spawnactor"node

(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