Page 1 of 1

Comment out lines in Usine Files?

Posted: 09 Jan 2024, 11:39
by styro
Hello, hope You all started well in 2024!
Since the Usine-files (Workplace/Patches etc) are textfiles and editing them directly seems to work (tried simple stuff like path to files etc)
it would come handy sometimes to comment out lines to test out things.... is there a possibility for that? Extremly cool would be some sort of preprocessor
to conditionally adjust things like pathnames/devicenames/(ip-)adresses etc to ease the differences between the developement and production-machine :-)

all the best and keep up the great work!

styro

Re: Comment out lines in Usine Files?

Posted: 10 Jan 2024, 21:34
by sm_jamieson
If you are familiar with scripting e.g. perl, powershell etc. you can create your own comment format and a script to generate the version that Usine can read, I.e. do the comment and preprocessing outside of Usine just before it runs. Launch Usine via a script that pre-processes the files and then starts Usine.