Page 1 of 1

print() doesn't display anything on the console

Posted: Sun Jul 24, 2016 5:09 pm
by lime
I was able to get SP working in a Windows CS:GO Dedicated Server instance, but now I'm having another issue:

Code: Select all

def load():
    print("test1 loaded")


Doesn't print anything to the console when the plugin is loaded with 'sp plugin load test1'. I've had luck with SayText2 showing up on a connected client, but print() doesn't seem to produce any effect at all.

This is with csgo build #409.

Re: print() doesn't display anything on the console

Posted: Sun Jul 24, 2016 5:31 pm
by lime
I found 'core.echo_console', which appears to work as intended. Interested to know if print() is broken somehow or if the docs are out of date?

Re: print() doesn't display anything on the console

Posted: Sun Jul 24, 2016 5:45 pm
by iPlayer
Side note: on CS:S print won't work on a listen server but works on a dedicated one.

Re: print() doesn't display anything on the console

Posted: Sun Jul 24, 2016 9:01 pm
by L'In20Cible
As far as I know, print is sending the data to stdout, how the server treat it is a different story. Interesting to know that on listen servers it doesn't echo it to the console. I guess we could add a print hook and manually redirect if the server is not dedicated.