snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.6k stars 291 forks source link

Localization export file to CVS doesn't properly support multi-line text. #957

Open ianicmathieu opened 3 years ago

ianicmathieu commented 3 years ago

Describe the bug when exporting the Localization file, Fungus will created Keys, descriptions, and your text. Default English EN

An issues occurs when the Say command has multiple lines : All the lines become Keys image

The expected result is to have one single key and the multi-line dialog in the text field like this. image

For some reason, some mutli line text work, and sometimes, other multiline dont.

To Reproduce

Make a Say command with multiple lines or use mine

Operation: North vs South.

Objective: Bring the separation of {color=#7c6bff}{b}Urasia{/b}{/color}.

{color=#7c6bff}{b}Urasia{/b}{/color} is strongly divided between two ideologies. We suspect another nation is financing their {i}Misaligned{/i} Party. By funding the opposition party we could start a proxy war and divide the country.

Foreseeable outcome: {color=#7c6bff}{b}Urasia{/b}{/color} would lose half of their nuclear arsenal. {color=#7c6bff}{b}Urasia{/b}{/color}’s conflict level will decrease. {color=#38d6af}{b}Borealia{/b}{/color} conflict rises: Low Trigger: Fund the Pro-Aligned political party in {color=#7c6bff}{b}Urasia{/b}{/color} .

Generate high conflict levels in {color=#7c6bff}{b}Urasia{/b}{/color}.

Create a Localization object. Export the Localization file. Open the CVS.

Result : Keys starting with /n have been created from the Multi-lines text.

Issues : those keys do nothing, and the export of the text into wrong fields has to be manually corrected.