[Not a bug] Print not working at Korax's death associated scripts

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Print not working at Korax's death associated scripts

Postby hezenbezen » Sat Mar 06, 2021 10:28 am

Hi all,
When Korax dies, a final text script executes in my code. And the print function writes nothing. If I place a testing ambient sound in the cycle with print, as below, it sounds, so cycle iterates, but still no text.
Code: Select allExpand view
script 92 (void)
{
   str FinText[15]={
      "string of text",
...
      "string of text"
   };
   for(int i=0;i<15;i++)
   {
      delay(140);
      AmbientSound("Ignite",127);
      print(s:FinText[i]);
   }
}

The following code gets no result too:
Code: Select allExpand view
print(s:"a text");
delay(140);
print(s:"a text");
delay(140);
...
print(s:"a text");

Nothing changes also when: changing text; length of array (more/less text); moving code into another script/changing script's number/placing in script 255 and any other magical and useless actions that could cure the bug :lol: :mrgreen:
But yes, it works fine with "puke".
Also there is a line special script that writes a string, and it writes whenever I launch it, and just after Korax's death, too, and if I put the final text there, too.
hezenbezen
 
Joined: 03 Feb 2021

Re: Print not working at Korax's death associated scripts

Postby Rachael » Sat Mar 06, 2021 10:40 am

This is not a bug. The only time text is printed for the player is if the player is the calling actor for each print statement (or the script that calls it), or use PrintBold instead.

The reason it works fine for "puke" is because that command ensures the player is the calling actor.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Print not working at Korax's death associated scripts

Postby hezenbezen » Sat Mar 06, 2021 11:21 am

Rachael wrote:This is not a bug. The only time text is printed for the player is if the player is the calling actor for each print statement (or the script that calls it), or use PrintBold instead.

The reason it works fine for "puke" is because that command ensures the player is the calling actor.


I just have no words except - Thank You :shock: :idea: :lol:
hezenbezen
 
Joined: 03 Feb 2021


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 3 guests