Forum rules - please read before posting.

tiny speech_order improvement with exported csv

ac1.58
unity5.4.5p3

the speech order number should have leading zeros or this will happen when sorted
image

The fix is very simple.

Just use the ToString method on the order number like this

var speech_order_number = 12;
var speech_order_string = speech_order_number.ToString("D" + 4));
Debug.Log(speech_order_string);

Will result in 
0012





Comments

  • edited July 2017
    update:
    found the line SpeechLine.cs, line 719






            #if UNITY_EDITOR

            public string OrderIdentifier

            {

                get

                {

                    return orderPrefix + orderID.ToString ("D4");

                }

            }

            #endif
      


    ......

    One more small thing.
    I have about 170 speech actions that are not connected/linked in any way and are just floating in some actionlists.
    I call them via script.

    These speech lines get an empty text in the "Speech Order" Column.
    It would be great if they would get the actionlist name.
    Workaround at the moment is still using the Description and also sort "Description" together with "Speech Order"
  • Thanks, I'll look into the tweak.

    Is this because these other speech lines aren't being listed in the Speech Manager, or because they are not "joined up" in their ActionList?
  • Thank you for the birthday wishes!

    The speech lines are listed in the Speech Manager have a line-id and everything is fine.

    They just get an order value of -0001 in the CSV-Exported Column for Speech Order because they are not "joined up" or "skipped to" or "continued to". I have a some Actionlists starting with a Comment-Action and all other Actions in that List are floating around without being connected to each other in any way.

    I think it would be good to have ActionListName_x in the CSV-Column instead of -1.
    So the information where this speech line is, is always there.

  • I'll look into it.
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.