Scriptorium: Respository: suggest method for sharing stuff

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.

Scriptorium: Respository: suggest method for sharing stuff // Scriptorium

1  |  

Post by Norm // Sep 6, 2007, 11:03am

Norm
Total Posts: 862
pic
tpChat: module.
Author: Norm Fortier.
Description: use in trueSpaces for semi-private chat between two people.
Date: Sept.07
Usage:

the tpChat object is dragged into Meeting Room for instance.
Two users enter tpChat in the Link Editor.
one user would use jsChatA.
second user would use jsChatB.
Type your name so you are identified properly.
Type messages into the text area and hit the Start button on your panel.

your name and text chat is sent to VBTalk display object.
time you sent the message is displayed.
who sent last message: name is displayed.
8279



This next image shows inside one of the chat jScript command objects:

function Execute()
name and text area have been assigned.
varaSays = params.ConValue('aSays');
varname = params.ConValue('name');
name: name of user goes here.
aSays: text area with chat message goes here.
call to function set with passing of two variable:

fnTalk = Node.AccessNearFnSet("jStalk");
fnTalk.aTalk(name, aSays);

8282

When you hit start button:
name and text are sent to the jStalk function set(on right side below).
fnTalk = Node.AccessNearFnSet("jStalk");
fnTalk.aTalk(name, aSays);

This next image shows the 2 function set scripts:

jStalk: 3 functions:
aTalk()
recieves data from the jSChatA object.
function aTalk(name, aSays)

establish owner and target objects:

owner = System.ThisOwner();
target = owner + "/VBTalk display";

populates two connectors on VBTalk display object.


Node.Value(target, "aTalk") = aSays;
Node.Value(target, "name") = name;

calls the time() function.

time(owner);


bTalk()

communicates same way aTalk() does.
time()

recieves data from the aTalk() function:
function time(owner)

communicates with the vbTime function set (on left in image below): passes the "target" value to vbTime:

fnTime = Node.AccessNearFnSet("vbTime");
target = owner + "/VBTalk display";
fnTime.disecTime(target);

8281

vbTime: 1 function:
disecTime()
recieves data:
Function disecTime(target)

use 2 variables to store date and time:
daDate = Date()
daTime = Time()

note: commented lines do not apply in scenario.
populate three connectors on VBTalk display object:
Node.Value(target, "hour") = Hour(daTime)
Node.Value(target, "minute") = Minute(daTime)
Node.Value(target, "second") = Second(daTime)

Post by Norm // Sep 6, 2007, 11:07am

Norm
Total Posts: 862
pic
Now the idea is to have a repository for Scriptorium objects (and indeed other objects users may wish to share). This initial "share" is intended to show a method for sharing:

description of object and related info.
image with some descriptive elements.
usage explanation.Roman wants the sharing to be complete from a user friendly type approach, so make it real easy for the user to utilize the repository/item.

With everyone sharing stuff in different areas, it is quite hard to find it when you want it. Have a central clearing area for sharing objects and scripts and such. Break down the area if required.

Main question is what do you folks believe to be good way to handle this? I present my version but it is a starting point perhaps.

What say you? :)

Post by 3dvisuals dude // Sep 6, 2007, 11:13am

3dvisuals dude
Total Posts: 1703
pic
Now the idea is to have a repository for Scriptorium objects (and indeed other objects users may wish to share). This initial "share" is intended to show a method for sharing:

description of object and related info.
image with some descriptive elements.
usage explanation.Roman wants the sharing to be complete from a user friendly type approach, so make it real easy for the user to utilize the repository/item.

With everyone sharing stuff in different areas, it is quite hard to find it when you want it. Have a central clearing area for sharing objects and scripts and such. Break down the area if required.

Main question is what do you folks believe to be good way to handle this? I present my version but it is a starting point perhaps.

What say you? :)


Outstanding Initiative!

I'll be uploading some of my own here tonight and will follow your format and suggestions above.

Very good idea, and I really like this new object you created for us all, Thanks!:)

- Mark / 3dvisuals dude

Post by frootee // Sep 6, 2007, 11:34am

frootee
Total Posts: 2667
pic
well, it looks to me so far, that there are a couple areas of specialization:


scripted / LE widgets

scripted / LE objects - polygons generated through scripts and the LE

scripted / LE animations (frootee: flag)

scripted / LE special effects (Dele: teleporter, cluster)

scripted / LE MeetingRoom items (3dv: presentations, and tutorials)

etc.


So I think it would be good to organize the script items according to a Library like this, in following with the truespace terminology for items.


Froo

Post by 3dvisuals dude // Sep 7, 2007, 3:54pm

3dvisuals dude
Total Posts: 1703
pic
This repository will be great Norm.:D

I'm working secretly (shhhhh!) on some realtime special effects scripts for us all to use and have hit a couple of method roadblocks I could use some help with when you get a chance. If you can spare some time in shared space to show me how to properly hook up and activate the rotation engine I should be able to manage the rest on my own. Once they are ready I'll be adding them all to this new Repository for us all to use and modify. If you have the time at some point and spot me online here with you just PM me and I'll race over there to meet you in the TP Meetingroom (or wherever you like in there). Thanks -

- 3dvisuals dude

Post by Norm // Sep 7, 2007, 4:11pm

Norm
Total Posts: 862
pic
This repository will be great Norm.:D

I'm working secretly (shhhhh!) on some realtime special effects scripts for us all to use and have hit a couple of method roadblocks I could use some help with when you get a chance. If you can spare some time in shared space to show me how to properly hook up and activate the rotation engine I should be able to manage the rest on my own. Once they are ready I'll be adding them all to this new Repository for us all to use and modify. If you have the time at some point and spot me online here with you just PM me and I'll race over there to meet you in the TP Meetingroom (or wherever you like in there). Thanks -

- 3dvisuals dude

Sure, I'm there now if convenient.

Post by 3dvisuals dude // Sep 7, 2007, 4:20pm

3dvisuals dude
Total Posts: 1703
pic
Sure, I'm there now if convenient.
On my way! Thanks!:D
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