Comment sequence line

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Maltakreuz
Posts: 40
Joined: Sat Jul 25, 2015 2:36 pm

Comment sequence line

Post by Maltakreuz »

1. I would like to comment some lines in sequence for debug purposes. I have tried lua style --, but it does not work. Is any way to do that? (Multiline comments would be nice too)

2. I also tried // style comments. And it makes game and unity editor completly freeze. Actually any not defined command/typo in sequence will cause a complete unity freeze. It is pretty unconvinient by writing sequences/debugging. It would be better sequence parser will throw exception like "unknon command". Is any way to prevent this freezes? (unity 2018.2.14, dialogue system 2.1.7)
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Comment sequence line

Post by Tony Li »

Please update to version 2.1.8. The freeze bug was introduced in 2.1.7 and fixed in 2.1.8.

I have also wanted to comment out sequences on occasion. I'll add it to the roadmap, hopefully for 2.1.9.
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Comment sequence line

Post by VoodooDetective »

Just curious if this was added?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Comment sequence line

Post by Tony Li »

No, I pushed it to the backlog list and forgot it there. Sorry about that. I *will* try to get it into the next update. In the meantime, you could write a sequencer command that does nothing, something like:

SequencerCommandComment.cs

Code: Select all

using UnityEngine;
using System.Collections;
using PixelCrushers.DialogueSystem;

namespace PixelCrushers.DialogueSystem.SequencerCommands
{
    public class SequencerCommandComment : SequencerCommand
    {
        private void Awake() { Stop(); }
    }
}
and then use it like this:

Code: Select all

Camera(Closeup,speaker);
Comment(In two seconds, do a wide shot of the listener);
Camera(Wide,listener)
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Comment sequence line

Post by VoodooDetective »

Ah ok, it's no big deal. Just curious :)
Thanks!
Post Reply