I'm trying to reset $commsList to be an empty string, reseting the $page to 1, and forcing a redraw of the multi-function display.
But this code never seems to run, because $commsList is not getting reset between launches. It just keeps growing.
Am I missing something? No errors in the log. The rest of my code seems to work, including this.commsMessageReceived.
OK, now I'm confused. I didn't get any log record when I put an log call in the function. I thought, "Ah, so it's not getting called at all.". Then I thought, just as a test, I'll put a log message into the function I know *is* getting called. And still no message in the log!
It was going so well, too....
So this is what I have. I know this function is getting called, but the log call is not putting anything in the log
Maybe you are not placed your code into a worldScript (for example "AddOns/Your.oxp/Config/script.js"), or there is a parse error in your file which put an error into your log.
When you do a lot of oxp testing, then visit the [wiki]Hidden_Settings_in_Oolite[/wiki] page and set "always-flush-cache" to true. It saves a lot of frustration.