Newbie Qs. Log console and access over web?
-
I am using a private steam server for my use only, while developing some screeps code. A couple of newbie questions.
Is there a way of saving the console text stream to a log file? <- What I really want to know.
Is there a way of accessing the UI from a browser? (I have the server running on my laptop, and I want to access the screeps-GUI from my desktop.)
Edit: - Ok! I think I can access the creeps GUI by connecting via steam from the desktop but still can't really cut-paste output from the console in the screeps GUI,
Edit: I just found screeps-multimeter. I wonder if I need to use this?
-
@ayrtep said in Newbie Qs. Log console and access over web?:
Is there a way of saving the console text stream to a log file?
Do you mean the output in the server console (in the separate server window) or the player console (in the Console tab of the room page)? If you want the server console, it should show up in a subfolder of SteamApps/Common/Screeps/server/logs (the SteamApps folder is usually in C:\Program Files (x86)\Steam on Windows, or ~/Library/Application Support/Steam on macOS). Unfortunately, I don't know of a way to do the same for the player console.
-
I mean where all the console.log(...); output goes.
The stuff that appears in the Console tab (middle of there, Script, Console, Memory).
Being able to study such log files looks like the best way to analyse your AI's performance.
-
Where I am now.
I installed screeps-multimeter and got it working - WOW!!!! https://github.com/screepers/screeps-multimeter
so the only thing left is to get the Logging plugin working. Unsurprisingly it does not seem to be working for me ATM.
-
You can write a script that subscribes to your console websocket stream to log everything.
https://github.com/screepers/python-screeps Here is the link to the python api.
-
@cookies said in Newbie Qs. Log console and access over web?:
You can write a script that subscribes to your console websocket stream to log everything.
https://github.com/screepers/python-screeps Here is the link to the python api.
Thanks, I might look into writing a C++ API later. At the moment I just need it for debugging - e.g. errors that zoom off the screeps-console before you can see them.
I got the multimeter logger working although it feels a bit wonky it works well enough for basic debugging.