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 Game - what User Index is for?

Hello,

I'm working on a save game system based on BP and one thing makes me wonder - is User Index in "Save Game to Slot" node an array index of some sort? I mean, is it possible to store data of different levels/players in one file, but using different User Index values? I was searching for more info on the matter, but I can't find any specifics - what User Index is really for?

Product Version: UE 4.7
Tags:
more ▼

asked May 26 '15 at 03:30 PM in Blueprint Scripting

avatar image

Nox_A15
309 19 138 194

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

2 answers: sort voted first

This documentation page says:

UserIndex For some platforms, master user index to identify the user doing the saving.

So it's probably like how on Xbox 360 each user has a separate account and separate save files. Sometimes only the "primary" user could save (and all actions in the game applied to them).

I have no idea how you'd determine which user index to use (it seems you require a KeyEvent, but neither InputAction events nor raw input events provide them). Maybe you need to get it from an UI-specific system that I haven't learned about yet.

I mean, is it possible to store data of different levels/players in one file, but using different User Index values?

I'm not certain, but I'd assume each user index saves to a different location on disk. (Imagine one user saved to a memory card and another to the cloud.)

more ▼

answered Sep 25 '15 at 01:13 AM

avatar image

idbrii
542 5 15 44

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

So far I've used it as easy way to create save games.

In my prototype I check via an "Does savegame exist" for each index how many exist and display some basic data which I also keep in the savegame object. For example username, time played or whatever.

When a user picks one file I use that index from then on to load all content from different savegame objects which always have the same name but a different user index.

more ▼

answered Sep 25 '15 at 02:39 AM

avatar image

Erasio
5.9k 291 86 293

(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