Error with trying to gather text on the Localization Dashboard

I am running into an issue when trying to set up the localization for my game project. I am trying to gather the text, but everytime I do, it runs into an error and stops gathering. Compiling also runs into errors. Furthermore, I can only access the default English language. If I try to load up any other languages, I simply end up with a completely empty translation editor. I made sure to copy the gather and compile logs into txt files. [link text][1][link text][2]

On a sidenote; right now it seems the localization dashboard tries to find every single string, not just the ftext ones. Is this intended? Because it seems rather counter intuitive when even error messages and logging messages are “gathered” by the localization dashboard.

Hello cridia,

What are your Gather Text settings set to? Here is a screenshot of the settings I’m talking about. Please note that this is default and aren’t the ideal settings, it’s just an example to show what I’m referring to.

Here are the settings I used for the gather text thing.

From looking at the logs provided in your original post, this seems to be an issue unrelated to the Localization Dashboard causing the Gather Text operation to fail due to an ensure being triggered. As you can see in the first log file, the following ensure is triggered twice:

Ensure condition failed: AttachmentRules.LocationRule == EAttachmentRule::KeepRelative && AttachmentRules.RotationRule == EAttachmentRule::KeepRelative && AttachmentRules.ScaleRule == EAttachmentRule::KeepRelative [File:E:\Game Development\Unreal4\Source\UnrealEngine 4.15.0\Engine\Source\Runtime\Engine\Private\Components\SceneComponent.cpp] [Line: 1624]
[2017.04.04-08.20.21:925][  0]LogOutputDevice:Error: AttachToComponent when called from a constructor is only setting up attachment and will always be treated as KeepRelative. Consider calling SetupAttachment directly instead.

When an ensure occurs, it doesn’t cause the editor to crash like an assert would but it does cause the entire process to freeze as it handles the ensure to avoid a crash, which is likely causing Gather Text to fail. Can you try fixing this issue and then seen if Gather Text will work correctly?

Fix it how exactly? I haven’t touched the scene component, or any of the source code for that matter and messing with things I have no experience with (ensureMsgf being one of them) is not exactly a recipe for success.

The “AttachToComponent when called from a constructor” message means that somewhere in your project, AttachToComponent is being used in a class’ constructor. It’s possible that if you’re including any third party plugins in your project that it may be caused by this or by your own code.

You would not need to edit source code to fix this issue.

Okay, that does sound like something I would do. I will check it out and get back to you once I have changed it.

So I went back and fixed all the AttachToComponents in the constructors (of which there were actually quite many), replacing them with SetupAttachment instead. Found and fixed another error that had to do with the physicsengine (apparently calling “set mass scale” in the constructor is also a big no), and with that out of the way I was finally able to gather/compile everything successfully.

So yeah, my issue has been solved. Thanks!