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"

Change culture in a shipping build does not work

Hello,

In order to change the culture during the game, I use the console command "culture=en" in a blueprint node and it works perfectly in PIE as well as in a development packaged build but in a shipping build the command does nothing.

Since there is no console nor log on shipping builds it's impossible to know what's the problem.

Is it a bug or do I need to use something else to change culture in a shipping build?

Thanks!

Product Version: UE 4.12
Tags:
more ▼

asked Sep 12 '16 at 12:33 PM in Bug Reports

avatar image

VRMD
11 5 8 8

avatar image VRMD Sep 13 '16 at 05:05 PM

I found 2 others observations, maybe useful to track down the problem: The default culture does not work in a packaged build, it's always the native one that is used.

I also tried to add the command as a parameter to the executable and it works! It proves that the localization data are correctly exported with the build so the only problem is the command to switch it.

Does someone from Epic has some information about this?

Thanks a lot.

avatar image Samantha Sutton ♦♦ STAFF Sep 13 '16 at 08:52 PM

VRMD,

  • Is this happening in only a Blueprint, C++ or both projects?

  • Does this work in 4.13?

  • Could you please upload screenshots, or a sample project of what you've tried in order for us to verify reproduction?

Thank you!

avatar image VRMD Sep 15 '16 at 07:17 AM

Hello Samantha,

It's happening in a blueprint only project.

I tested it in a clean project and I get the same results both in 4.12 and 4.13.

  1. create a new blank project

  2. add a text render actor in front of the player start

  3. enter any text in english in the text value of the text render actor

  4. configure the project localization to have english and french

  5. use the localization dashboard to translate the text in french

  6. in the level blueprint, add a keyboard event for the "E" input plugged to an execute console command node with the value "culutre=en" and an event for "F" plugged to the command "culture=fr"

When you play and you press E or F you will see the text switching between the english text and the french text.

It works in PIE and in a development build in 4.12 and 4.13 but it doesn't work in a shipping build for both editor versions.

avatar image VRMD Sep 19 '16 at 08:47 AM

Hi, have you been able to look at this problem?

Thank you!

avatar image Samantha Sutton ♦♦ STAFF Sep 19 '16 at 03:27 PM

This issue is being looked into, thank you for your patience and we'll update as soon as we have more information.

Thanks! :)

avatar image Samantha Sutton ♦♦ STAFF Sep 26 '16 at 07:55 PM

I heard back from one of our Engineers and what it's sounding like is since you're packaging in shipping, the console command is not going to work. This is because console commands aren't included in shipping builds. Have you tried using the SetCurrentCulture from your blueprints?

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

1 answer: sort voted first

I tried using the C++ SetCurrentCulture function and it works indeed!

I think this function should be exposed to blueprints since it seems to be the only way to change culture at runtime in a shipping build.

Thanks for your help.

more ▼

answered Sep 28 '16 at 01:13 PM

avatar image

VRMD
11 5 8 8

avatar image Beregron Nov 25 '16 at 11:37 PM

How did you do this? I have tryed all what i've read in the Forum. Nothing worked for me.

I used the C++ (SetCurrentCulture) but it dont work. Only if i start the game with the commandline, then it uses the culture that i want.

How can i find out whats the Problem is?

(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