Reading chat
Added by David Burden 114 days ago
OK I've worked out how to write text to the chat window using scene.ui:writechat (although in standalone mode it comes form the only avatar in the scene - ie you). But how do I read the text that is written into the window? At present I can type the text in but it doesn't do anything when I press return - suggesting it may be waiting for a trigger to clear it and do something.
And if I can get that working (in standalone) is there any way that I can use scene.ui:writechat to have the chat come from a bot in the scene rather than from "me"?
David
Replies
RE: Reading chat - Added by Kit Sze 114 days ago
Hi David,
To view chat, you will need to add a trigger with a script to handle chat messages received by the player. There is an example of this in http://vastpark.org/attachments/download/23/multi-user-basics.imml. Please note that text chat is a networked feature, and will only work when connected to a live server.
As for having a bot, yes - the system is designed to allow chat to come from any source.
RE: Reading chat - Added by David Burden 114 days ago
Thanks, had a feeling it might need the server. Downloaded the server but when I look for the screencast linked from http://www.vastpark.org/wiki/vp/Using_the_software to http://tutorial.content.s3.amazonaws.com/cp.server/index.html I get an Access Denied message. Any other resource for setting up the server? Can I install the server on a standalone PC or does it have to be on a web based server/S3?
David
RE: Reading chat - Added by Craig Presti 114 days ago
Hi David,
Some bad links in the wiki it seems, try here:
http://www.vastpark.org/wiki/vp/Tutorials#Using-the-application-suite
The server can run on a standalone PC or VM, it doesn't use much in the way of resources. You can download the Server from here: http://www.vastpark.com/resources/downloads/developer-snapshots.html
Alternatively, if you want to play with the source code, do an SVN checkout from http://vastpark.svn.cvsdude.com/public/trunk/ - under src/Sample.Server is a simple server project.
RE: Reading chat - Added by David Burden 113 days ago
Brill works fine. Server up and running and worked out how to put the chatbot in the server imml and get it to talk to the client. Now on to the next question....