views:

174

answers:

2

I'm trying to parse chat messages for keywords that I will use to trigger various functions. In order to use the chat I have to test in game mode, which is started by first clicking Tools-> Test-> Start Server and then clicking Tools-> Test-> Start Player. The command window is not available in game mode so I need a way to get some debugging feedback. I figured a popup message would be good for that purpose.

I suspect its fairly simple to display a popup message but I cant find any information on it.

+1  A: 

Did you enable the Output window?

View -> Output menu

Then e.g. if you script does

print("Hello world!")

You should see that in the output window. Else take a look at

How to add messages

jitter
Yes I enabled the output window and it works great in solo mode, but you cant use chat in solo mode. Chat will only work in game mode, but the output window will not display in game mode.
Slim
The link to How to add messages was very useful. Thank You
Slim
A: 

Enable the output, Press Test >> Start Server In that new window press Test >> Start Player In the server window (Not the new player window), open the command bar and type:

game.Players.Player.SuperSafeChat = false

And press enter. You can test it, and get output.

Bubby4j