Editing Character Files

General discussion of the House Party CSC, or get help making your own story.
Forum rules
Please follow all Eek! Forum rules.
Post Reply
Orintangio
Posts: 118
Joined: Tue Jul 31, 2018 12:02 am
Location: Ohio, USA

Editing Character Files

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?
chimneyfish
Posts: 302
Joined: Tue Nov 27, 2018 8:57 pm

Re: Editing Character Files

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.
peter980
Posts: 1327
Joined: Thu Feb 15, 2018 1:50 am

Re: Editing Character Files

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.
Orintangio
Posts: 118
Joined: Tue Jul 31, 2018 12:02 am
Location: Ohio, USA

Re: Editing Character Files

Thanks for the tips. These will help with my changes.
Orintangio
Posts: 118
Joined: Tue Jul 31, 2018 12:02 am
Location: Ohio, USA

Re: Editing Character Files

So, I'm using Notepad++
Is there a language selection that would be good to use to help with editing?
chimneyfish
Posts: 302
Joined: Tue Nov 27, 2018 8:57 pm

Re: Editing Character Files

JSON is helpful as a language
Post Reply