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"

Use game instance, game state, or game mode for single player RPG data?

Should I use game instance, game state, or game mode for single player RPG data?

I was just using game instance and resetting it at the start menu. Some things were not working correctly in my packaged standalone project so I was thinking it was because of the nature of a game instance. So now I moved all my calculate functions to game state and have the same data in game instance as in game state but just use game instance to load my game and then once in the main level place the data into game state which is where the data gets updated from actions of the player. My game still doesn't work correctly when not played in the editor and I was thinking I should put all the calculations and data in the game mode. Is my implementation fine and a completely different problem like the sequence of events and data/actors/uobjects not being initialized/constructed or deconstructed/destroyed correctly?

Product Version: UE 4.17
Tags:
more ▼

asked Sep 23 '17 at 08:18 PM in Using UE4

avatar image

CureDespair
6 3 3 5

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

1 answer: sort voted first

I checked the Robo Recall mod. The Robo Recall team didn't put and data or logic into game state at all, they only put it into game mode. There was hardly anything in game instance but for my case since I want to pass a bunch of data from one level (world level) to another (battle scene level) I would think I would be passing data from game instance to game mode to another kind of game mode. I should look more into passing data from level to level and working with data in Unreal some more.

more ▼

answered Sep 26 '17 at 03:13 AM

avatar image

CureDespair
6 3 3 5

(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