Forum rules - please read before posting.

CSV Dialog Import column Character Name doesnt seem to be working.

I've been following this link "https://adventurecreator.org/forum/discussion/8568/script-importer-converter-to-ac" on how to do a Dialog Importer but it seems out of the 3 columns, Character name doesnt seem to be working as intended or rather I dont see my Character's name pop up in the dialog box or anywhere? Is there a way to fix it?

Comments

  • edited January 3

    Are you using the custom script written in that thread?

    Check the Actions that it generates - the Dialogue: Play speech Action's Speaker field is what determines which character is speaking.

    If this field is blank, check that there is a character in the scene with the same name as the text being imported. The import script works by searching for characters in the scene whose name matches the values of the 2nd column.

    If you can share images of the file you're importing, the characters present in the scene that should be referenced, and the Actions being generated, I'll see if I can spot what's wrong.

  • Hello, sorry for the late reply. I wasn't at work when I received your message.

    Yes, I am using the custom script written in that thread.

    I don't see the Speaker field in the picture below, but I think it's because my Player line box is ticked.
    https://imgur.com/7VYpTR8q

    Is the value of the 2nd column in the import script case-sensitive? Do I have to make its text match to the character in the scene?

    Ok, I've made some edits based on what you said, and this is the result. Pic below for reference.
    CSV file:https://imgur.com/hFAedDR
    ActionListEditor: https://imgur.com/GJPHpRT

    In-Game:
    https://imgur.com/0YJxCFS
    https://imgur.com/XRCE1Bm

    During In-Game, it seems that there is no character name listed. How can I fix this issue?

  • Is the value of the 2nd column in the import script case-sensitive? Do I have to make its text match to the character in the scene?

    Yes and yes. If the character has a speaker label, that'll override the name it looks for. Can you share an Inspector for one of the characters?

  • What's the name of their GameObject?

    The CSV file references "Kit", but the NPC's "Speaker label" field is set to "Kit Ballad" - this is what the script is looking for a match with.

    If you want the script to only search for NPC GameObject names, and ignore "Speaker label" fields, replace:

    if (character.GetName () == speakerName)
    

    with:

    if (character.gameObject.name == speakerName)
    
  • edited January 7

    Oh, so thats why. Ok, I've edited it to match the Speak label field.

    I have notice that whenever I import the csv file, the ActionListEditor doesnt seem to change and it appears like as if I didn't import anything. All I have left is this message in the console that says:
    https://imgur.com/KyM9s7R

    Here's what the ActionListEditor looks like once I imported it.
    https://imgur.com/a/g3jOGlg

    EDIT: Ok, I solved the issue by just making a new cutscene.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.