distractionware forums

Archived => VVVVVV Tech Support => Topic started by: PJBottomz on November 15, 2011, 02:18:31 am

Title: Colored-Text Glitch
Post by: PJBottomz on November 15, 2011, 02:18:31 am
I've kind of noticed this while using colored text...

(http://i.imgur.com/2Q6Hn.png)(http://i.imgur.com/5qtfY.png)

(http://i.imgur.com/MCwfv.png)(http://i.imgur.com/Skmm5.png)

(http://i.imgur.com/5cVqO.png)(http://i.imgur.com/KPIio.png)

It's just a guess, but I think the code for the colored text is saving the color and posistion of the command as a variable for the certain script, and any "say" command that doesn't have another crewname command on it will color as the most recently used variable. So, technically:

Code: [Select]
say(1,victoria)
[text stuff]

is doing this:

Code: [Select]
victoria = A
and the terminal "say" command checks this:

Code: [Select]
check variable(a)
if a=True goto colorcode

so, that makes:

Code: [Select]
say
[text stuff]

produce colored text, even though it's technically the "say" command for terminals. Now, if you put:

Code: [Select]
say
[text stuff]

say(1,victoria)
[more text stuff]

say
[even more text stuff]

The last "say" command will be colored, even though it's not supposed to be colored.. This problem could be avoided by having a variable for the grey/centered text, but this is just my theory.

Terry, your thoughts?
Title: Re: Colored-Text Glitch
Post by: Terry on November 15, 2011, 10:08:42 pm
This is intended behaviour, actually! If you want to change back to a terminal, you can use "terminal" or "grey" (or "gray") as the parameter in the say command.
Title: Re: Colored-Text Glitch
Post by: PJBottomz on November 15, 2011, 10:23:55 pm
This is intended behaviour, actually! If you want to change back to a terminal, you can use "terminal" or "grey" (or "gray") as the parameter in the say command.

I tested all three of them, and it still gave the same result: colored text even though the command wasn't intended to have color.
Title: Re: Colored-Text Glitch
Post by: Terry on November 15, 2011, 10:31:55 pm
Think of it like this: the "speaker" is a variable that you're changing.
Title: Re: Colored-Text Glitch
Post by: PJBottomz on November 15, 2011, 10:54:02 pm
Think of it like this: the "speaker" is a variable that you're changing.

Okay. But the terminal speaking command doesn't work.
Title: Re: Colored-Text Glitch
Post by: FIQ on April 15, 2012, 12:23:06 am
Think of it like this: the "speaker" is a variable that you're changing.
Hi Terry, this was one of the things I posted about in the "2.1 patch discussion thread". I see now that this is semi-intended behaviour. However, as PJBottomz pointed out, it doesn't really work to change back to gray (I tried that before reporting it as well).

I didn't noticed this thread, sorry for duplicating a bug report. Just want to make you aware about that this doesn't actually work.

Sorry for necroposting by the way.