Ran a test on exporting a csv and importing it. The game is big (75k words-ish) but the import process is taking a very long time - over an hour so far.
Seems to be going round and round the Scenes. I can just see a flash of "Iteration 2" sometimes, I think?
Anyway, I'm wondering if this is par for the course or whether I should ctrl+alt+delete and start to panic! Gather Text takes about 15 minutes, so I'd assumed this would be something similar. Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Gave up at 3 hours. Wondering if you have any advice for how to proceed here, or what causes might be? Thanks!
You mention scenes - are you importing any column as Original Text?
This is a slow operation, and will cause AC to brute-force each entry individually - searching for the correct scene line-by-line. The length of time should be proportional to the number of lines, and scenes, to deal with.
If you're just importing to overwrite lines in the Speech Manager, then the process should be very quick - faster than the Gather Text operation.
Could you share a screen of the import wizard settings you're using? Bear in mind that you don't need to overwrite the original text written in your Actions etc to replace it. You can, instead, opt to disable the game's first language, and then make a copy of it (within the Speech Manager) the default.
This will cause the game to only rely on text entries within the Manager - at which point, the original text in scenes etc become "placeholders" that are only ever seen in the Editor.
Thanks Chris. Here's the screenshot of the settings: https://imgur.com/a/ePh2FzE
I exported the text, filled the French column by copy-pasting over, and tried reimporting it.
My understanding from an old forum thread was it's not possible to edit the original text, is that still the case? If I wanted to go through a single character's lines and add some tags in, could that be imported?
I have ~30 scenes, and by default the csv seems to be ordered by Type, alphabetically, which means the 'Scene' column hops back and forth between scenes. Could that be it, over 10,000 lines? Would rearranging the csv so that the Scenes column is in order (so each scene is only opened once) be a solution?
Anyway- set the process going again after trying some other tricks, and it's at 25 minutes with no progress, so I thiiiiink I have a problem here
AH. I did not see the 'Import as Translation' option, and was doing it as Original Text. That was instantaneous. I am an idiot.
One question remains though, if I wanted to import over my Original Text with some tags, is that doable? And would removing unnecessary data from the csv or ordering it specifically by scene help at all? If it's doing to take 8 hours to resolve, I might as well just do it manually in editor ;D
If you want to overwrite the original text data, i.e. that in the scenes, you'll need to use the Import As Original Text option.
That process will involve every row in the CSV file, so if you want to cut things down to just the lines you specifically want to overwrite, that will definitely speed things up.
Good question. The call to open it will be made each time, but I'm not sure if Unity will avoid that if that same scene is already open.
It should be possible to enforce that by adding the top to the OpenScene function in AC's UnityVersionHandler script:
If I export everything, delete the lot except for one line, make a change, and import, it'll just look at the OD, set that one line, and ignore everything else?
I'd sort of assumed it was a batch lot job, but no?
It'll process all lines in the CSV - but the CSV itself doesn't need to include all lines the game. Lines removed from the CSV will be ignored.
With only a single line imported in the new CSV it doesn't take long BUT it also doesn't implement my changes. https://imgur.com/a/vUU51QT
In this screenshot, the [e:shock] tag is something I've added in the csv. That line is the only thing in the csv. It goes through the whole process, an outputs '0 lines updated' at the end.
Any ideas? Sorry, I'm probably misunderstanding this process as well!
Sorry - by I was still including the header in talk of "one line".
The first row in the CSV must always be the header, and this is what the Importer will show in the column-selection fields. To import a single line, you'll need to have the import data itself be the 2nd line.
works a charm, thank you