Page 1 of 1
Option to disable removal of similar output from scripts
Posted: Tue Oct 04, 2016 7:40 pm
by jorgenRe
Hi, it would be neat if it was possible to stop the chat from removing parts of what is printed to it. Since sometimes when debugging it may feel a little to agressive. Take for example a line divider that it only displays once because it always is similar.
It is of course a simple fix by making sure every output is unique, but sometimes that isnt something a new mod developer may do.
example when it is supposed to output:
-------------
x,y
makes 5 power
-------------
x,y
makes 12 power
-------------
x,y
makes 5 power
But instead it outputs, due to said thing above:
-------------
x,y
makes 5 power
makes 12 power
Thank you, and ps i am happy whatever happens

Re: Option to disable removal of similar output from scripts
Posted: Wed Oct 05, 2016 10:00 pm
by Rseding91
If you're debugging stuff just use the log(...) function that writes to the log file instead of in-game.
Re: Option to disable removal of similar output from scripts
Posted: Wed Oct 05, 2016 10:45 pm
by Nexela
Or use game.write_file to make your own log file
Re: Option to disable removal of similar output from scripts
Posted: Thu Oct 06, 2016 7:11 pm
by jorgenRe
Rseding91 wrote:If you're debugging stuff just use the log(...) function that writes to the log file instead of in-game.
I guess that is a better option sometimes, but i like to see the debug straight away when testing something that has a lot of variables that changes depending on what you put in a chest. Creatinga modular nuclear reactor Industrial craft 2 style

Re: Option to disable removal of similar output from scripts
Posted: Thu Oct 06, 2016 7:24 pm
by ssilk
Just open Factorio windowed and use a program like
http://tailforwin32.sourceforge.net/
Re: Option to disable removal of similar output from scripts
Posted: Thu Oct 06, 2016 8:15 pm
by Adil
Or just, you know, launch the game through cmd and use `print` (lua standard).
That one looks much better than ingame console, it's only downside is that it's stdout but not stdin.
Re: Option to disable removal of similar output from scripts
Posted: Thu Oct 06, 2016 8:58 pm
by jorgenRe

Interesting!
Re: Option to disable removal of similar output from scripts
Posted: Thu Oct 06, 2016 10:02 pm
by ssilk
jorgenRe wrote:

Interesting!
Didn't know? Looks for me so (Mac has inbuilt tail-command):

- Screen Shot 2016-10-06 at 23.59.49.png (649.77 KiB) Viewed 2721 times