If I send any of these to the server (headless) via RCON:
Code: Select all
/c local remote = rcon
script.on_event( defines.events.on_console_chat, function ( event )
remote.print( "this does not work. reeeeee" )
end)
rcon.print( "this works" )
Code: Select all
/c script.on_event( defines.events.on_console_chat, function ( event )
rcon.print( "this does not work. reeeeee" )
end)
rcon.print( "this works" )
Code: Select all
/c local remote = rcon
script.on_event( defines.events.on_console_command, function ( event )
remote.print( "this does not work. reeeeee" )
end)
rcon.print( "this works" )
Code: Select all
/c script.on_event( defines.events.on_console_command, function ( event )
rcon.print( "this does not work. reeeeee" )
end)
rcon.print( "this works" )
Then if I send another request, such as: "hello there! this is a test message" - this causes a problem
"hello there! this is a test message" appears in the server chat, but there is no response from rcon regardless of what rcon application I use ( expected response: "this does not work. reeeeee" from on_console_chat event )I even tried sniffing the TCP socket that my rcon application was using for any packets and again the only packet I got back was the "this works" packet
( I get the same problem if I send any command to the server. for example if I sent "/time" I would expect "[game uptime here]" and "this does not work. reeeeee", but I only get the time aside from the "this works" response )