How do I set values for a TMap inside a configuration file?

Hi Taterr,

We’ve got this working, but it’s less than ideal since as far as we’ve found there is no way to have each pair on a new line. If someone wants to be the real hero I’d love to know if that is possible with TMaps.

What works is:

actionStateDurations=((“pummel”, 11.0),(“dash”, 20.0))

I’m trying to set the default values for a TMap (String, Float) inside my configuration file, but I seem to be stuck. Currently my configuration file looks like this:
[/Game/SideScrollerBP/Blueprints/Characters/characterTemplate.characterTemplate_C]
actionStateDurations=(“pummel”,11.0f)
+actionStateDurations=(“dash”,20.0f)

When I save my configuration file and reload the editor, there is one entry in actionStateDurations, but it has no string and a value of 0. I think I need to include a key of some kind in the entries [I.E actionStateDurations=(Key=“pummel”,Value=11.0f) ] however, none of the variations I’ve tried have yielded any results other than the above.

I can’t find a similar question via google, so I figured it was time to ask here.,

1 Like

Thank you so much for your answer! I was beginning to lose hope on this issue.
It is a shame that you can’t have each pair on a new line; My plans were to have a whole moveset’s properties set up in a configuration file, but that would definitely become unwieldy quickly…
I guess you could always write a small program that converts a more readable version of your entries into one that fits the needs of a configuration file.