#Update
I have now attached all the ini files I am using for Solus Localization, enjoy!
Dear Friends at Epic,
I have been trying to figure out how to get -run=GatherText to work and actually dump out the .files I need to pass on to translators!
I run this command:
"C:\Program Files\Unreal Engine\4.3\Engine\Binaries\Win64\UE4Editor.exe" "C:\Users\Rama\Documents\Unreal Projects\Solus\Solus.uproject" -run=GatherText -config="C:\Users\Rama\Documents\Unreal Projects\Solus\Config\Localization\Engine.ini" -log
As you can see I am specifying my project.
I get this log:
[2014.07.29-19.41.04:668][ 0]LogInit: Executing Class /Script/UnrealEd.GatherTextCommandlet
[2014.07.29-19.41.04:669][ 0]LogInit: Initializing Editor Engine...
[2014.07.29-19.41.04:669][ 0]LogEngine: Initializing Engine...
[2014.07.29-19.41.04:676][ 0]LogLinker:Warning: Asset '../../../../../../Users/Rama/Documents/Unreal Projects/Solus/Content/Rama/SolusDataBP.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.
[2014.07.29-19.41.04:689][ 0]LogAIModule: Creating AISystem for world NewWorld
[2014.07.29-19.41.04:700][ 0]LogDerivedDataCache: Saved boot cache 0.01s 15MB C:/Users/Rama/AppData/Local/UnrealEngine/4.3/DerivedDataCache/Boot.ddc.
[2014.07.29-19.41.04:702][ 0]LogInit: Texture streaming: Disabled
[2014.07.29-19.41.04:709][ 0]LogInit: Initializing Editor Engine Completed
[2014.07.29-19.41.04:812][ 0]LogGatherTextCommandlet: Beginning GatherText Commandlet.
[2014.07.29-19.41.04:812][ 0]LogGatherTextCommandlet: Executing GatherTextStep0: GatherTextFromSourceCommandlet
[2014.07.29-19.41.04:813][ 0]LogGatherTextFromSourceCommandlet:Error: No include paths in section GatherTextStep0
[2014.07.29-19.41.04:814][ 0]LogGatherTextCommandlet:Error: GatherTextStep0-GatherTextFromSourceCommandlet reported an error.
14.07.29-19.41.04:832][ 0]LogInit:Display:
[2014.07.29-19.41.04:833][ 0]LogInit:Display: Commandlet->Main return this error code: -1
[2014.07.29-19.41.04:834][ 0]LogInit:Display: With 3 error(s), 44 warning(s)
[2014.07.29-19.41.04:834][ 0]LogInit:Display:
Execution of commandlet took: 0.02 seconds
[2014.07.29-19.41.04:835][ 0]LogExit: Preparing to exit.
[2014.07.29-19.41.05:253][ 0]LogExit: Editor shut down
#No Include Paths
As you can see from the log the primary issue is that no include paths are being found in the Include source section!
Here is the section of the ini I am running that is relevant
;Gather text from source code
[GatherTextStep0]
CommandletClass=GatherTextFromSource
IncludePaths=C:/Users/Rama/Documents/Unreal Projects/Solus/Source/Solus
IncludePaths=Solus
IncludePaths=Solus/Source
IncludePaths=Solus/Source/Solus
IncludePaths=*/Solus
IncludePaths=*/Solus/Source
IncludePaths=*/Solus/Source/Solus
As you can see I am trying a whole variety of things but the error is always the same, indicating there are no include paths at all.
I have tried MANY things now, relative paths, /Game, …/…/…/Elephants, Starting in Source directory, starting where .uproject is located. Absolute Paths, and much more, and nothing works!
No matter what I supply for the include path it is always giving me the same message!
In the Engine version Epic just does this:
;Gather text from source code
[GatherTextStep0]
CommandletClass=GatherTextFromSource
IncludePaths=Engine/Source/Runtime
IncludePaths=Engine/Source/Rocket
IncludePaths=Engine/Source/Developer
IncludePaths=Engine/Config/
But I really dont understand what these paths are relative to and I tried a whole number of paths and I always get the same error
What are these paths relative to for a .uproject?
I have absolutely no idea what to tell the GatherText system so it finds my include paths!
#Is this a bug?
Is the system ready to handle projects that are in c:/Users/UserName/Documents/Unreal Projects/YourProjectName?
If so, what is the right syntax for getting UE4 Localization GatherText Commandlet to recognize my Source folder!
#Related Question
I see the Engine uses relative paths for the Source and Destination
[CommonSettings]
SourcePath=../../../Engine/Content/Localization/Engine
DestinationPath=../../../Engine/Content/Localization/Engine
What I should I use for my uproject?
#Can I use an absolute path?
SourcePath=C:/Users/Rama/Documents/Unreal Projects/Solus/Content/Localization/Engine
DestinationPath=C:/Users/Rama/Documents/Unreal Projects/Solus/Content/Localization/Engine
#Help!
I cannot get the localization files to be created no matter what I do since the Source include paths are never being found!
#Thanks!
Thanks!
Rama