Page 1 of 1

Editing Character Files

Posted: Fri Nov 19, 2021 1:38 pm
by Orintangio
Usually I don't edit character files outside of CSC. In this case I have a lot of responses configured as menus in my story. I have a large number of changes that must be duplicated across multiple characters. The only realistic way to do this many changes is to
edit the files doing copy paste and change and replace for values.

In character files, if I import a character file:

There is an "ID" and an "Id". ID is normally a number and Id appears to be a GUID.
Can these be duplicated per character? I assume ID can because it is a number
indicating the response ID.

Is Id character specific or global?

If I import character files and there is an issue with an Id, will a new Id be generated and used?

Re: Editing Character Files

Posted: Sat Nov 20, 2021 5:26 pm
by chimneyfish
For the ids that are a long string of letters and numbers (I've seen them called UUIDs), the answer is sort of yes and no.

You can duplicate them in different characters and they will work fine, EXCEPT in translation to other languages if there is text associated with a UUID. The translation will grab the text associated with the first character file in which the UUID is encountered, instead of the correct character file.

Import/export doesn't change any of the UUIDs.

Re: Editing Character Files

Posted: Sat Nov 20, 2021 9:37 pm
by peter980
There is a trick.
If you delete those ID lines before import and then import to CSC, those IDs will be regenerated, so on the next export, you will have files with ids again.

So you could for a block you want to copy, first remove those IDs, do copy paste and then import/export.

Re: Editing Character Files

Posted: Mon Nov 22, 2021 5:03 pm
by Orintangio
Thanks for the tips. These will help with my changes.

Re: Editing Character Files

Posted: Tue Nov 23, 2021 10:29 pm
by Orintangio
So, I'm using Notepad++
Is there a language selection that would be good to use to help with editing?

Re: Editing Character Files

Posted: Wed Nov 24, 2021 10:29 am
by chimneyfish
JSON is helpful as a language