RailWorks command line options
Moderator: Moderators
RailWorks command line options
I'm having trouble getting some usefull command line options to work with RailWorks. These are all things
that work fine with Railsimulator. Specifically I can't get the "lua debug messages" (which is a tick box
option on the wrapper screen) and the "set log filter" options to work in order to display information
in log mate on signal and consist script behaviour. Maybe I'm just missing something, but can anyone
else get basic lua Print() to work?
Cheers
Dave B
that work fine with Railsimulator. Specifically I can't get the "lua debug messages" (which is a tick box
option on the wrapper screen) and the "set log filter" options to work in order to display information
in log mate on signal and consist script behaviour. Maybe I'm just missing something, but can anyone
else get basic lua Print() to work?
Cheers
Dave B
Re: RailWorks command line options
Hi Dave
No help I'm afraid , I have tried and I can't get them to work either... just confirming
Sly
No help I'm afraid , I have tried and I can't get them to work either... just confirming
Sly
-
markpullinger
- Very Active Forum Member
- Posts: 3105
- Joined: Sun Jun 08, 2003 6:24 pm
Re: RailWorks command line options
The grab screenshot seems to have gone as well - had to take screenshots with me camera for my upload!
- AndiS
- Very Active Forum Member
- Posts: 6207
- Joined: Fri Sep 23, 2005 4:43 pm
- Location: Jester's cell in ivory tower
- Contact:
Re: RailWorks command line options
I have the same problem. I only have success with:
-LogMate -SetLogFilters="All" -lua-debug-messages
This brings up a load of tabs, one of them being the Script Manager tab, i.e., the output from Print().
Of course, with so much stuff, you need to click "clear logs" more often.
I still use KRS for signal script debugging.
P.S.: For screenshots, I always used IrfanView.
-LogMate -SetLogFilters="All" -lua-debug-messages
This brings up a load of tabs, one of them being the Script Manager tab, i.e., the output from Print().
Of course, with so much stuff, you need to click "clear logs" more often.
I still use KRS for signal script debugging.
P.S.: For screenshots, I always used IrfanView.
-
markpullinger
- Very Active Forum Member
- Posts: 3105
- Joined: Sun Jun 08, 2003 6:24 pm
Re: RailWorks command line options
Screenshot worked till last update as had to do a fault pic in RW but was first time I'd needed it since the update - so hadn't noticed it not working! 
Re: RailWorks command line options
Cheers Andi, that did the trick! You are very helpfull as always. As you say, you do get all the extraneous reporting, which tends to make my old computer struggle, but trying to debug script without any diagnostic output is very slow work.AndiS wrote:I have the same problem. I only have success with:
-LogMate -SetLogFilters="All" -lua-debug-messages
Now I can finish off my dynamic engine exhaust with matching trailing engine sound operation scripting.
Dave B
- Acorncomputer
- Very Active Forum Member
- Posts: 10699
- Joined: Wed Oct 17, 2007 5:37 pm
- Location: Horley, Surrey, (in a cupboard under the stairs)
Re: RailWorks command line options
Screenshot = Print Screen Key on Keyboard or Alt+Print Screen Key on Keyboard if you just want the active window.markpullinger wrote:The grab screenshot seems to have gone as well - had to take screenshots with me camera for my upload!
Open in Paint or other image editor.
Geoff Potter
Now working on my Bluebell Railway route for TS2022
RISC OS - Now Open Source
Now working on my Bluebell Railway route for TS2022
RISC OS - Now Open Source
-
markpullinger
- Very Active Forum Member
- Posts: 3105
- Joined: Sun Jun 08, 2003 6:24 pm
Re: RailWorks command line options
Hi Geoff, it used to work like that but tried taking some screen shots at the weekend & it wouldn't play ball.
-
scefhwil
- Well Established Forum Member
- Posts: 907
- Joined: Tue Dec 04, 2001 12:00 am
- Location: Bristol, England
Re: RailWorks command line options
Dave, are you now able to get Print() debugging info out of Script Manager? If so can you detail how please?davveb wrote: Cheers Andi, that did the trick! You are very helpfull as always. As you say, you do get all the extraneous reporting, which tends to make my old computer struggle, but trying to debug script without any diagnostic output is very slow work.
Now I can finish off my dynamic engine exhaust with matching trailing engine sound operation scripting. Dave B
Cheers
Stuart
Re: RailWorks command line options
The usual Windows method of using the 'PrintScreen' key and pasting from the clipboard into Paint or similar still works for me. However the current version of RW has its own built-in screenshot capability, press 'Ctrl+S' and an image in .png format will be saved (under WinXP 32 bit anyway) in your 'My Documents\My Pictures' folder. The file will have the Route name and lat & long as part of the filename.markpullinger wrote:Hi Geoff, it used to work like that but tried taking some screen shots at the weekend & it wouldn't play ball.
Andy L
-
markpullinger
- Very Active Forum Member
- Posts: 3105
- Joined: Sun Jun 08, 2003 6:24 pm
Re: RailWorks command line options
Thanks - forgot that shortcut 
Re: RailWorks command line options
Stuartscefhwil wrote:Dave, are you now able to get Print() debugging info out of Script Manager? If so can you detail how please?davveb wrote: Cheers Andi, that did the trick! You are very helpfull as always. As you say, you do get all the extraneous reporting, which tends to make my old computer struggle, but trying to debug script without any diagnostic output is very slow work.
Now I can finish off my dynamic engine exhaust with matching trailing engine sound operation scripting. Dave B
Cheers
Stuart
As Andi said above you need the -SetLogFilters="All" included in the Steam command line options. You do get all the status reporting, which is an allful lot (but a good insight into how complex the program is!) so it's best to select the Script Manager tab rather than leave logmate on the All tab. In Railsimulator you used to be able to use -SetLogFilters="Script Manager", but that doesn't seem to work anymore.
Dave
-
scefhwil
- Well Established Forum Member
- Posts: 907
- Joined: Tue Dec 04, 2001 12:00 am
- Location: Bristol, England
Re: RailWorks command line options
Thanks Dave, got it working now.
I copied the DebugPrint code from the signal scripts and, whoopy! now have output in logmate. However, it all seems to grind to a halt after 20secs or so, with RW window going black and "not responding".
Any ideas, anyone?
Cheers
Stuart
I copied the DebugPrint code from the signal scripts and, whoopy! now have output in logmate. However, it all seems to grind to a halt after 20secs or so, with RW window going black and "not responding".
Any ideas, anyone?
Cheers
Stuart
- AndiS
- Very Active Forum Member
- Posts: 6207
- Joined: Fri Sep 23, 2005 4:43 pm
- Location: Jester's cell in ivory tower
- Contact:
Re: RailWorks command line options
You need to click "clear logs" in the leftmost menu quite often. Or switch back to KRS until they fix it.
It is a known problem of LogMate that it grinds to a halt when the shown log is too big.
In the setting with "All" tabs, it may help to use the simplest possible route for testing. I would not want to try starting RW with a default route and a complex scenario. With all these tabs, LogMate will die within seconds, logging minute details about the inner workings of the dispatcher and other parts of the programme.
It is a known problem of LogMate that it grinds to a halt when the shown log is too big.
In the setting with "All" tabs, it may help to use the simplest possible route for testing. I would not want to try starting RW with a default route and a complex scenario. With all these tabs, LogMate will die within seconds, logging minute details about the inner workings of the dispatcher and other parts of the programme.