INCLUDE function in scripts?
Posted: 11 Dec 2025, 01:26
I've been thinking of changing my debug methods in scripts to write to an external file, since the trace is unreadable with my eyesight, and the console is spammed by usine internal messages. Also I cannot get the filter to work, (no mention of it at all in the manual entry for the inspector) and there is no find function in the console.
At present, I have 277 scripts in my wkp. So to change the debug method for all of them would be a huge hassle. And if I think of another change to it, I can make that change again 277 times. For instance, using usine objects, I am able to turn on and off debugging from a button in the toolbox. This works on the half-dozen scripts that implement it, but not on any of the rest.
It would be really nice to be able to keep common methods like this in a separate file.
At present, I have 277 scripts in my wkp. So to change the debug method for all of them would be a huge hassle. And if I think of another change to it, I can make that change again 277 times. For instance, using usine objects, I am able to turn on and off debugging from a button in the toolbox. This works on the half-dozen scripts that implement it, but not on any of the rest.
It would be really nice to be able to keep common methods like this in a separate file.