Page 2 of 2

Re: How to export all text tables at once automatically?

Posted: Sat Dec 16, 2023 10:37 am
by ds2497
Hi Tony,

Thank you so much for your assistance!

The patch you provided is indeed very helpful. However, it doesn't fully resolve one of the main issues I'm facing, which is duplicated field names. For example, when I have a quest named "Save Village" with a field labeled "Quest Title" in the text table, and another quest named "Collect Flower" also with a "Quest Title" field, conflicts arise with the IDs. Nevertheless, the patch offers clear code, and with a bit of work, I've managed to solve the problem!

Thanks again for your invaluable help... you're the best!

Re: How to export all text tables at once automatically?

Posted: Sat Dec 16, 2023 3:54 pm
by Tony Li
Hi,

How did you solve it?

I could add an option to prepend the quest ID to field names. This way the field names would be "Save Village.Quest Title" and "Collect Flower.QuestTitle".

Re: How to export all text tables at once automatically?

Posted: Sat Dec 16, 2023 9:39 pm
by ds2497
I created a custom editor window to handle the export and import of Excel files. Another reason behind this decision was the realization that dragging a text table can be quite time-consuming... the current editor window only allows dragging one text table at a time. My custom editor (built with Odin) incorporates your code with a small tweak to the foreach and directory components, and adds some code that creates SO objects, resolving both issues. :D

Here are some screenshot with test data:

Image

Image

Re: How to export all text tables at once automatically?

Posted: Sat Dec 16, 2023 11:09 pm
by Tony Li
Great!

In the original window, I'll still add an option to prepend the quest ID to fields. I'll also add a button to add all text tables that are in a specified folder.

Re: How to export all text tables at once automatically?

Posted: Sun Dec 17, 2023 1:00 am
by ds2497
Glad to know! Looking forward to the updates!