Chat with TrueSpace7

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Chat with TrueSpace7 // Interactive Artwork

1  |  

Post by Wigand // Feb 6, 2007, 8:46am

Wigand
Total Posts: 462
pic
Do you want to chat with a TS7 friend out of TS7,

who is thousands of kilometers (or miles)

away from you?


Then you need the Connection.DLL

Install it and the few objects I offer to you.


In the Connect-Object in the LE you must

fill the:



LocalPort

RemotePort

RemoteHost


LocalPort is the port you want to open for send.

RemotePort is the port you want to open for receive.

RemoteHost is the IP of your friends PC.


Example:


LocalPort 1002

RemotePort 1003

RemoteHost 66.35.236.50 (only example)



Your friend should do the same with his Connect-Object

but

LocalPort number and RemotePort number should be exchanged.


LocalPort 1003

RemotePort 1002

RemoteHost Your IP (only example)


Connect the Control-Out of the Receive-Object to a

TimerEvent, set it to a period of 50.


Then check connect in the Connect-Object and then "Do".

Sometimes you need to do it twice.

Then the Connected-Check-Box should be checked.


This procedure should do your friend too.


Now your Firewall should appear and ask you whether

or not you want to open the door for your friend.

If you really want to chat, you must allow it.


Now the great moment: Type something into the

UDP_Chat_Send-Object and your friend should see your

writing immediately.


You can test all of these function for your own on your

PC. But you must open two TS7 on one PC. Then you must

fill "localhost" into RemoteHost. Now you can hold

monologues. ;-)




Please tell me if problems occur.

Post by Wigand // Feb 6, 2007, 8:48am

Wigand
Total Posts: 462
pic
All the objects you could use

Post by prodigy // Feb 6, 2007, 9:23am

prodigy
Total Posts: 3029
pic
Looks very interesting..!!! excelent work Wigan.. i will try at home :banana:

Post by iBrent // Feb 6, 2007, 10:22am

iBrent
Total Posts: 102
pic
Amazing work Wigand!


Now where is the widget that let's my computer clean the dishes? :D


iBrent

Post by frootee // Nov 30, 2007, 8:40am

frootee
Total Posts: 2667
pic
time to bump this back up to the top of the list! Hehe...

Post by Wigand // Jan 2, 2008, 9:56am

Wigand
Total Posts: 462
pic
I over-worked the chat objects, because they do not work in the newer TS versions.

Now I implemented function set object.


To test the chat function, you can do it on your own one PC.

First you have to install the DLL from


http://forums1.caligari.com/truespace/showthread.php?t=2188


Then you must know your PCs IP.

Open two TS instances. Import the new UDP_Chat2.RsScn in every TS.

Put the correct IP in the Textbox.

Input the Portnumbers as described in the other thread.

Click Start/Stop in each TS. Connected-box should now be checked.

Write your messages into the Send-object and you should see it in the

Receive-box on the other TS instance.


It should be possible to send other datas too. Like pictures or video. :rolleyes:


Don´t send without connecting or without a ready receiver, because you

will get a TS-crash. :cool:


If someone has an idea to eliminate this crashes, please let me know.

Post by trueBlue // Jan 2, 2008, 11:24am

trueBlue
Total Posts: 1761
pic
Wigand: How about trapping the errors?
In trueSpace7 Script Editor is:
System.Question(str) -->Boolean

Post by Wigand // Jan 2, 2008, 6:25pm

Wigand
Total Posts: 462
pic
Sorry trueBlue, I do not know what this system.question do.:confused:

Post by trueBlue // Jan 2, 2008, 6:45pm

trueBlue
Total Posts: 1761
pic
It is like an Alert with a Yes or No.
If user selects Yes then run your script.
If user selects No the exit your script.

function Execute(params)
{
var tsDir = System.GetMainDir();
var Scene = Space.CurrentScene();
var Yes = System.Question("Would you like to create a VBScript command?");
if (Yes)
{
RsFileIO.LoadObject(tsDir + '\\RS Main Libraries\\System - Scripts\\VBScript command.RsObj', Scene);
}
else System.Alert("Okay maybe later then!");
{
}
}

Post by Wigand // Jan 3, 2008, 5:57am

Wigand
Total Posts: 462
pic
Oh, I see. Thank you.

But the problem is not that the user should decide between two

options, it is more to prevent the wrong command at the wrong time.


Maybe your partner at the other side of the connection closes his

ports or stops TS, and at this moment you send a new message to

him, TS crashes.


Everytime someone sends a message the script looks if the connection is still

established but strangely enough this do not work correct.


Maybe I need a second timer to test the connection.

Post by Ambrose // Jan 4, 2008, 3:14am

Ambrose
Total Posts: 261
pic
Hi Wigand


You really do some cool stuff here and there ;)



I think you also made so one could move an object on another ones ts, correct? if not sorry.


Anyway someone just asked regarding network rendering and I know we do've a plugin for this allready.


But with the scripting capabilities wouldn't it be possible to setup so when you start one ts it's connected to say 2 others they do every third render?


This can offcourse be more easy or hard done, that is script copies scene etc. but one could also just manually do this and script start the process... ;)



Just an idea...



Anyway keep up all the good work, people like you and all other guys here doing all great stuff that inspire the rest of us.


I would never care about scripting but bought the courses just to check it out.




SeYa/Ambrose...

Post by Wigand // Jan 4, 2008, 9:12am

Wigand
Total Posts: 462
pic
Thank you for your kind words.


I think in the state of scripting capabilities we do have now, it

would not be very time effective to render with script.


Maybe if we could use 'C'-functions or assembler for making

TrueSpace function?
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn