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"

How to configure ini file value for a Blueprint Config Variable?

I was hoping to get some assistance in setting up my .ini file to accept custom values for a variable marked for config that I have defined in one of my Blueprints.

At present I define a Blueprint Actor with the name "TestActor" and define a String variable called "ActorString" with the Config Variable checkbox marked. Where I am having trouble is that I cannot seem to find any reference to how I should set up my DefaultGame.ini file both in terms of the section and key/value pair. My current attempt is as follows:

 [/Script/TestProject.TestActor]
 ActorString="TestValue"

This format I have used because in the past I set up working config variables using the C++ based approach following this reference page: https://docs.unrealengine.com/latest/INT/Programming/Basics/ConfigurationFiles/index.html

There does not seem to be an equivalent for the case of Blueprint Config Variables that I can locate so I was hoping to see if someone could give me some assistance in how I should format my ini file so that the string is set to the TestValue.

Thanks in advance for anyone who can provide me assistance.

Product Version: Not Selected
Tags:
more ▼

asked Mar 25 '15 at 03:46 AM in Blueprint Scripting

avatar image

GerardD
46 4 7 8

avatar image fireapache Apr 01 '15 at 12:00 AM

I'm having the same problem! Config variables through blueprints seem not to be working!

avatar image MADHOUSE Jun 06 '15 at 07:10 AM

Hmm currently trying to figure the same problem out... There is no documentation on how to work it from blueprints, but likely the variable catagory and its actor is relevant here.

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

2 answers: sort voted first

Hey, I had the same problem and found the solution!

Hover the "config variable" checkbox with your mouse. There you should see the info, which ini file you have to editit and the name of the section.

In your case I guess your ini-section shoul be:

 [/Game/TestActor.TestActor_C]
 ActorString="TestValue"

if your Blueprint is directly in the content folder. If not, you have to add the folder path between "Game" and the Actor Class

 [/Game/CustomFolder/TestActor.TestActor_C]
 ActorString="TestValue"

Attention!

The values are loaded once you load the Project in the Editor, not when you hit the PlayButton! Therefore you have to reload your Project in order to see it working!

For some reason this only works if the Actor is inherited from Actor. When it was inherited from player controller for example, it didn't work.

Furthermore I was not able to override the values in a packaged build.

more ▼

answered Aug 10 '15 at 04:15 PM

avatar image

Appsite GmbH
92 4 5 21

avatar image wellbye Aug 25 '16 at 01:46 AM

thanks for point out that they are loaded once on opening the project...but it's too inconvienient for adjustingt the value.

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

In the BeginPlay of the Pawn you can use this logicalt text

Here I spawned ConfigActor (class ConfigActor - simple Actor with config variables), and then write variables from it to Pawn variables or you can just use it in the Pawn logic

capture.png (97.4 kB)
more ▼

answered May 30 '17 at 02:24 PM

avatar image

6r0m
424 17 16 26

(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