Server executes script, moves cube

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Server executes script, moves cube

Post by froo »

Ok I think this works.

//173.71.155.10/1111

On the windmill, click the button: Start and Stop

this will move the cube 0.25 units in the x direction.
You should see the cube move on your client machine,
even though the FrooServe server is executing the script.

I tested this on 2 client machines here. Both access the server
using the router's PUBLIC ip address.

Please let me know if it works for you.

To reset the cube, just set the tx value on ExpMat in the LE to: 0

Ok; headin to see the movie : '9' :D
User avatar
3dvisuals dude
Chief Warrant Officer
Posts: 643
Joined: 03 Jun 2009, 02:53
Type the number ten into the box: 0

Re: Server executes script, moves cube

Post by 3dvisuals dude »

Cool, on my way now!
Image "Advantage is had from whatever is there, but usefulness arises from whatever is not." - Lao Tzu (Tao Te Ching - 500 BC) Image
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

Edit:
I changed the button name on the Windmill button to: Push Me!

(because Start and Stop sounds like, there are 2 buttons! :D )

Anyways.
I have trueSpace and trueServe on one machine, and trueSpace on the other machine.

Using trueSpace on both machines, I pushed the button, and the cube moved.
3dv saw the cube move. The tx item on the ExpMat node should increase by 0.25 units
for each click.

However, when 3dv tried pushing the button, the cube did not move.

Strange. The only thing different between his machine and mine is, he is not on my Local network.
Though, I connected to the port using the Public IP address.

Feel free to give it a go and report what you find here.

thanks!

Froo
pugman 1
Captain
Posts: 1555
Joined: 21 May 2009, 19:26
Type the number ten into the box: 0
Location: Germany

Re: Server executes script, moves cube

Post by pugman 1 »

Hi froo, login ok but no cntx transfer.
Cayenne
Chief Petty Officer
Posts: 119
Joined: 03 Jun 2009, 20:05
Type the number ten into the box: 0
Location: U.K.

Re: Server executes script, moves cube

Post by Cayenne »

same here I can login to any of the spaces but the ctx doesnt transfer , maybe the server is crashed ..?
check to see if there are 2 instances running in the processes tab..
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

heh wow.
the default.ctx got blown away. dang.
I will rebuild now, and make a backup of the default.ctx.
User avatar
3dvisuals dude
Chief Warrant Officer
Posts: 643
Joined: 03 Jun 2009, 02:53
Type the number ten into the box: 0

Re: Server executes script, moves cube

Post by 3dvisuals dude »

froo wrote:heh wow.
the default.ctx got blown away. dang.
I will rebuild now, and make a backup of the default.ctx.
I have heard of that happening but for the life of me I can't figure out how it can happen, lol
Image "Advantage is had from whatever is there, but usefulness arises from whatever is not." - Lao Tzu (Tao Te Ching - 500 BC) Image
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

ok.
Pugman and I were there this morning; he tested it and he confirmed the cube did move on his truespace client.

so that's progress!
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

hi everyone. Please test this.

Enter the LE, and on the Windmill node, press the 'Push Me!' button.
The cube should move 0.25 units in the x direction.

Please report the following:

1. Did the cube move? yes/no
2. Do you have a trueServe installed? yes/no
3. if you do have trueServe installed, is it on or off?

thanks!

Froo

EDIT::

When done, please press the other button, so it says: Activate after pressing it.
pugman 1
Captain
Posts: 1555
Joined: 21 May 2009, 19:26
Type the number ten into the box: 0
Location: Germany

Re: Server executes script, moves cube

Post by pugman 1 »

i am on tll 8 tonight german time .now 3 o clock pm
Cayenne
Chief Petty Officer
Posts: 119
Joined: 03 Jun 2009, 20:05
Type the number ten into the box: 0
Location: U.K.

Re: Server executes script, moves cube

Post by Cayenne »

in port 1109.

1. Did the cube move. no
2. Do you have a trueServe installed. yes
3. if you do have trueServe installed, state = off

Paul

ps:froo did you get my email in response to your message earlier in the week?
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

Hi Paul.
Thanks for testing.
No, I did not get the email.
I will send you a PM with my contact info.

I wonder why some folks can see this work, while others can't?
I also do not understand the CustomEvent functions very well, it appears,
because I cannot get them to work either.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

Cayenne, can you retest that for me please?
But this time, have your server on / active?

I just want to see if that makes a difference, though it should not.

When pugman was in my space, and saw the cube move, his server
was on / active.

Although, I do not have trueserve on my other machine, but I did control and see
the cube move from that machine.

Thanks!
Cayenne
Chief Petty Officer
Posts: 119
Joined: 03 Jun 2009, 20:05
Type the number ten into the box: 0
Location: U.K.

Re: Server executes script, moves cube

Post by Cayenne »

ok , it has nothing to do with trueserve running or active on the clients machine.
I just tried and saw it move once out of about ten goes , however if i enetred in the windmill to look at its parts then exited the windmill , then it appeared to work every time I pressed the push me.

Paul
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

ok thanks cayenne.
I was trying to think of anything and everything that was different amongst the configurations.

I wonder why entering the windmill, then exiting, made a difference. I know the timer is in there.
Perhaps the timer needs to be at the top level? In the Space level to work correctly? I dunno.
There's so many things that we don't understand about this stuff. :)

Are you familiar with the use of the SendCustomEvent / OnCustomEvent functions?
I wanted to try using those, in lieu of the timer. As I understand it, we can use them
to send a message to the server, so the server can perform functions. Then the server
can send data back to the cllents.

As I understand, If I have a script command in the scene, then each client,
and the server, have their own local copy of that script command. I thought the client
could send the server a message using RsApp.SendCustomEvent(node, message).
But I dont' seem to have the hang of it.

Could you resend that email to me please?

Thanks!

Froo
Cayenne
Chief Petty Officer
Posts: 119
Joined: 03 Jun 2009, 20:05
Type the number ten into the box: 0
Location: U.K.

Re: Server executes script, moves cube

Post by Cayenne »

I just found it doesnt need to be entering the windmill .
If I just selected a few objects in the scene LE , then the push me worked .
If I just login and press push me nothing happens , but as soon as I select eg , the cube ,then it might work, sometimes selecting a second object eg , default nav props , then press push me it works
if i select the windmill , then it can stop working.

ill resend the mail if you can verify , I sent you a pm,
thanks
Paul
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

ok. Well, as a workaround,
I can have a script which runs automatically on enter.
The script will select a node by default, to 'get things going', so to speak.

Ok; just sent an email to you cayenne. thanks!

Froo
User avatar
3dvisuals dude
Chief Warrant Officer
Posts: 643
Joined: 03 Jun 2009, 02:53
Type the number ten into the box: 0

Re: Server executes script, moves cube

Post by 3dvisuals dude »

fascinating tests... now I recall why Norm was so bewildered by the windmill! :D
Image "Advantage is had from whatever is there, but usefulness arises from whatever is not." - Lao Tzu (Tao Te Ching - 500 BC) Image
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

is the windmill supposed to be packaged with 761? Whenever I install 761 it's not there.
Yeah I've had to install a couple times. lol
User avatar
3dvisuals dude
Chief Warrant Officer
Posts: 643
Joined: 03 Jun 2009, 02:53
Type the number ten into the box: 0

Re: Server executes script, moves cube

Post by 3dvisuals dude »

froo wrote:is the windmill supposed to be packaged with 761? Whenever I install 761 it's not there.
Yeah I've had to install a couple times. lol
it is in the install folder named "Activities - My Activities"

whether it belongs with 7.6x rosetta is another thing though, just cause it was included doesn't mean compatibility was checked as you know, lol
Image "Advantage is had from whatever is there, but usefulness arises from whatever is not." - Lao Tzu (Tao Te Ching - 500 BC) Image
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

heheh yeah there it is, sure enough.
I was looking in all the libraries for that. Really Odd I didn't see it before.
Hm. hehe
pugman 1
Captain
Posts: 1555
Joined: 21 May 2009, 19:26
Type the number ten into the box: 0
Location: Germany

Re: Server executes script, moves cube

Post by pugman 1 »

Hi froo,your port 1109 crashes my 761 and trueplay ,dont know why ???
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Server executes script, moves cube

Post by froo »

Hi pugman.
It could be that LED Display that I have in port 1109.
I saw that you were able to login.
Is it still crashing?

I created another space, at port 1110. It's empty,
in case you want to try it.

I'm in and out all day today. Mostly out.
But I will try to work on this tonight.

I think I am having issues with the video card; response is really sluggish.
I may put the other one back in.
pugman 1
Captain
Posts: 1555
Joined: 21 May 2009, 19:26
Type the number ten into the box: 0
Location: Germany

Re: Server executes script, moves cube

Post by pugman 1 »

Hi man, the led worked before when i logged in ,
but when i tryed later it crashed me :bananaguitar:

Return to “Our Shared Space Community”