# GatherText grabbing editor data

**URL:** <https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907>\
**Category:** UI\
**Tags:** commandlet, text, unreal-engine, localization, question\
**Created:** [December 9, 2015, 5:38am UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907 "2015-12-09T05:38:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben.Driehuis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ben.Driehuis](https://forums.unrealengine.com/u/Ben.Driehuis)\
**Post date:** [December 9, 2015, 5:38am UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907/1 "2015-12-09T05:38:27Z")

</div>

Hi there,

It seems that with the new method of storing the localization data in assets as per the GatherLocalizationDataFromPropertiesOfDataStructure, that the localization process now adds in a lot of editor things like tooltips from assets even with the ShouldGatherFromEditorOnlyData=false

For example the PropertyTooltip in the FOptionalPinFromProperty struct (ShowPinForProperties.PropertyTooltip), which isn’t an editor only property. This seems to be a big culprit for us, but we are also seeing two other properties:

K2Node\_FunctionEntry.MetaData.Category  
AnimStateTransitionNode.Transition.K2Node\_AnimGetter.CachedTitle

This is taken up a large chunk of our localization files.

I plan to add some code to hack out these property names since in our case we wont have duplication here, however if there a reason these properties couldn’t be marked as editor only? (with WITH\_EDITORONLY\_DATA )

Is there a more officially approved way I could implement this?

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [December 9, 2015, 3:28pm UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907/2 "2015-12-09T15:28:45Z")

</div>

We’ve seen this ourselves internally, and have fixed it in two ways (one sticky plaster, and one robust).

The sticky plaster solution is the one you suggested (wrapping the properties in `WITH_EDITORONLY_DATA`). These fixes should be present as of 4.10.1.

The more robust solution is to gather the game text from the blueprint bytecode, and mark everything else that’s part of the blueprint asset as editor-only. This change should be present as of 4.11.

---

<div class="post-metadata">

**Author:** ![Ben.Driehuis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ben.Driehuis](https://forums.unrealengine.com/u/Ben.Driehuis)\
**Post date:** [December 21, 2015, 7:19am UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907/3 "2015-12-21T07:19:51Z")

</div>

So we are now upgraded to 4.10.1 and indeed the PropertyTooltip is now being wrapped properly and not exported.

However two cases are still occurring for us and not wrapped in WITH\_EDITORONLY\_DATA.

These are in:

- UK2Node\_AnimGetter → FText  
CachedTitle
- FKismetUserDeclaredFunctionMetadata → FText Category

I assume that 4.11 will fix this as there are part of the blueprint system and thus should be caught by that solution.

But wanted to bring this to attention in case others are pulling their hair out 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc732ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc732ea](https://forums.unrealengine.com/u/anonymous_user_5cc732ea)\
**Post date:** [August 9, 2016, 3:19pm UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907/4 "2016-08-09T15:19:42Z")

</div>

Hi Jamie,

(I’m on 4.11)

I’ve seen a lot of those annoying ShowPinForProperties.PropertyTooltip myself, so I’ve tested/debugged a small example, and I noticed they clean up when I “force load” the assets during the gathering (MustLoadForGather stuff in UGatherTextFromAssetsCommandlet::Main)

Alternatively, re-saving a particular asset also seems to work, so to summarize:

- No force load, asset left as-is (kind of old, I guess) =\> bad
- Force load =\> good
- No force load but asset re-saved =\> bad

I must admit the MustLoadForGather rules (VER\_UE4\_PACKAGE\_REQUIRES\_LOCALIZATION\_GATHER\_FLAGGING stuff…) look a bit complicated - are there known bugs? Do I have another option than… re-saving all assets??

Thanks,

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [August 9, 2016, 4:00pm UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907/5 "2016-08-09T16:00:33Z")

</div>

I should have mentioned before, but you’d need to re-save the assets to update the cache of texts they store in their header after getting these fixes.

There have actually been some more fixes made since (as we can’t correctly cache texts from things that contain bytecode, so those always get loaded), plus we added a version bump so that this manual re-saving to get a clean gather isn’t needed (any older assets are just fully loaded to make sure they’re up-to-date).

There’s nothing wrong with changing that code to just load any assets that contain texts (PackageFileSummary.GetFileVersionUE4() \< VER\_UE4\_PACKAGE\_REQUIRES\_LOCALIZATION\_GATHER\_FLAGGING || PackageFileSummary.PackageFlags & PKG\_RequiresLocalizationGather), but it will make your gather a lot slower.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc732ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc732ea](https://forums.unrealengine.com/u/anonymous_user_5cc732ea)\
**Post date:** [August 10, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/gathertext-grabbing-editor-data/340907/6 "2016-08-10T14:31:10Z")

</div>

OK thanks Jamie - I see the code is slightly different in 4.12, that’s the fix(es) you’re talking about I guess.

e.g.

old line:

else if (PackageFileSummary.GetFileVersionUE4() \< VER\_UE4\_SERIALIZE\_TEXT\_IN\_PACKAGES)

new line:

else if (PackageFileSummary.GetFileVersionUE4() \< VER\_UE4\_SERIALIZE\_TEXT\_IN\_PACKAGES || (EditorVersion && EditorVersion-\>Version \< FEditorObjectVersion::GatheredTextPackageCacheFixes))
