Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
printf() not printing when RULES is set #479506
04/03/20 09:21
04/03/20 09:21
Joined: Dec 2014
Posts: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
Germany
I would like to see the output of printf() when RULES is set for debugging purposes. Bug or feature? I couldn't find anything in the manual about this behavior. Can I enable the output myself?

Code
function run() 
{
	set(RULES);
	printf("\nHello.");
}


If I click Train, I see nothing. If I click Test, I see:

Hello.
Hello.
Hello.
Hello.
...

Re: printf() not printing when RULES is set [Re: Smon] #479513
04/03/20 10:38
04/03/20 10:38
Joined: Feb 2017
Posts: 1,809
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,809
Chicago
That’s because printf is silent during Train mode. You can use print(TO_ANY,”...”) instead.

Re: printf() not printing when RULES is set [Re: Smon] #479517
04/03/20 13:07
04/03/20 13:07
Joined: Dec 2014
Posts: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
Germany
Thank you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1