game.print skipping repeating values?

Place to get help with not working mods / modding interface.
robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

game.print skipping repeating values?

Post by robertpaulson »

This is more of a nuance that caused me over 3h of a frustration (at least my code is ok lol) but does any1 know why game.print, skips repeating values?... i.e when printing the same number x time I only see it printed x/2 times.... skipping every second time, doesn't matter if i print it at once or every x ticks.... it does it even if you have a sequence of 1,2,3,3,3,2,1, only 2 3's will be printed the middle one will create silence

note to self and everyone else use write to file when diagnosing anything, don't be a sucker like me :P
Rseding91
Factorio Staff
Factorio Staff
Posts: 16016
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: game.print skipping repeating values?

Post by Rseding91 »

Any output to the console skips repeat values if the message is still visible on screen to avoid spamming the screen with notifications.
If you want to get ahold of me I'm almost always on Discord.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: game.print skipping repeating values?

Post by DaveMcW »

The documentation for player.print() and game.print() should mention this.
Post Reply

Return to “Modding help”