Here's what I want to do: make a chat program using Mesh.
I want it to be only one project that interacts with itself on other computers? How can I choose which project it reads a variable from?
Offline
By only one project, do you mean that each project is the same rather than having one host and the others child programs?
If so, what I would do is give the project the capability of being the host and the capability of being the child. When two of the projects connect, choose one to be the host via the highest random number or something like that, that will then be the host until it leaves and then the selection will happen again with the remaining projects.
Offline
sparks wrote:
By only one project, do you mean that each project is the same rather than having one host and the others child programs?
If so, what I would do is give the project the capability of being the host and the capability of being the child. When two of the projects connect, choose one to be the host via the highest random number or something like that, that will then be the host until it leaves and then the selection will happen again with the remaining projects.
Each project is identical.
Offline
Sparks wrote:
then does my suggestion work?
![]()
But does that let all of them interact like a real chat program?
Maybe what would work best is have 5 sets of variables and let 5 people max.
Offline
What sparks said was correct. If you make 1 program, then when they all run it it is based off a 'Random number' (Highest) for instance. The rest would then just be the same,
Offline
wulfmaster wrote:
What sparks said was correct. If you make 1 program, then when they all run it it is based off a 'Random number' (Highest) for instance. The rest would then just be the same,
I don't exactly get that.
Offline
scimonster wrote:
wulfmaster wrote:
What sparks said was correct. If you make 1 program, then when they all run it it is based off a 'Random number' (Highest) for instance. The rest would then just be the same,
I don't exactly get that.
![]()
You have a random number generator. All the projects compete with each other to become the Host. Once the highest number has been generated, this project will become the 'mother' project (So you better hope they have good internet). The 'child' projects would simply have the same coding, but they lost the competition of becoming a 'parent'. Make more sense now?
Offline
ssss wrote:
scimonster wrote:
wulfmaster wrote:
What sparks said was correct. If you make 1 program, then when they all run it it is based off a 'Random number' (Highest) for instance. The rest would then just be the same,
I don't exactly get that.
![]()
You have a random number generator. All the projects compete with each other to become the Host. Once the highest number has been generated, this project will become the 'mother' project (So you better hope they have good internet). The 'child' projects would simply have the same coding, but they lost the competition of becoming a 'parent'. Make more sense now?
I understand what you're saying now, but here's what I want to do. Let's say this is a three person chat:
comp1 has var1 and var2
comp2 has var1 and var2
comp3 has var1 and var2
comp3 sends a message.
How does comp1 and comp2 make sure it's reading comp3's var1, and not comp2/1's?
Offline
scimonster wrote:
ssss wrote:
scimonster wrote:
I don't exactly get that.![]()
You have a random number generator. All the projects compete with each other to become the Host. Once the highest number has been generated, this project will become the 'mother' project (So you better hope they have good internet). The 'child' projects would simply have the same coding, but they lost the competition of becoming a 'parent'. Make more sense now?
I understand what you're saying now, but here's what I want to do. Let's say this is a three person chat:
comp1 has var1 and var2
comp2 has var1 and var2
comp3 has var1 and var2
comp3 sends a message.
How does comp1 and comp2 make sure it's reading comp3's var1, and not comp2/1's?
Gimme a sec to design a program (After activatung mesh on Scratch, so i can upload it)
Offline
scimonster wrote:
ssss wrote:
scimonster wrote:
I don't exactly get that.![]()
You have a random number generator. All the projects compete with each other to become the Host. Once the highest number has been generated, this project will become the 'mother' project (So you better hope they have good internet). The 'child' projects would simply have the same coding, but they lost the competition of becoming a 'parent'. Make more sense now?
I understand what you're saying now, but here's what I want to do. Let's say this is a three person chat:
comp1 has var1 and var2
comp2 has var1 and var2
comp3 has var1 and var2
comp3 sends a message.
How does comp1 and comp2 make sure it's reading comp3's var1, and not comp2/1's?
So you just want it to display the users message? Easy!
I will upload affter i have delt with it
Offline
It reads the latest variable update.
Offline
just have one variable called message. All projects update "message" and all projects wait until message isn't equal to "last message" anymore. Overwriting should hopefully be unlikely.
Offline
sparks wrote:
just have one variable called message. All projects update "message" and all projects wait until message isn't equal to "last message" anymore. Overwriting should hopefully be unlikely.
If overwriting does happen, you can always send it again.
Offline
sparks wrote:
just have one variable called message. All projects update "message" and all projects wait until message isn't equal to "last message" anymore. Overwriting should hopefully be unlikely.
OK, I'll try that.
Offline
scimonster wrote:
sparks wrote:
just have one variable called message. All projects update "message" and all projects wait until message isn't equal to "last message" anymore. Overwriting should hopefully be unlikely.
OK, I'll try that.
![]()
Can you upload when you've tried?
Offline
ssss wrote:
scimonster wrote:
sparks wrote:
just have one variable called message. All projects update "message" and all projects wait until message isn't equal to "last message" anymore. Overwriting should hopefully be unlikely.
OK, I'll try that.
![]()
Can you upload when you've tried?
Yeah. Since I haven't worked on it yet because of this problem, it might take a few days.
Offline
scimonster wrote:
ssss wrote:
scimonster wrote:
OK, I'll try that.![]()
Can you upload when you've tried?
Yeah. Since I haven't worked on it yet because of this problem, it might take a few days.
OK, Have you downloaded the first Rocket save? It's www.cyberkidscountry.com/rocket/Rocket.image
Offline
ssss wrote:
scimonster wrote:
ssss wrote:
Can you upload when you've tried?Yeah. Since I haven't worked on it yet because of this problem, it might take a few days.
OK, Have you downloaded the first Rocket save? It's www.cyberkidscountry.com/rocket/Rocket.image
Nah, I'm waiting 'till it's finished.
Offline
scimonster wrote:
ssss wrote:
scimonster wrote:
Yeah. Since I haven't worked on it yet because of this problem, it might take a few days.
OK, Have you downloaded the first Rocket save? It's www.cyberkidscountry.com/rocket/Rocket.image
Nah, I'm waiting 'till it's finished.
![]()
Then you'll be waiting about 1-3 months -_- You get to see the new logo on this one
Offline
ssss wrote:
scimonster wrote:
ssss wrote:
OK, Have you downloaded the first Rocket save? It's www.cyberkidscountry.com/rocket/Rocket.image
Nah, I'm waiting 'till it's finished.
![]()
Then you'll be waiting about 1-3 months -_- You get to see the new logo on this one
![]()
Can you just post an image?
Offline
scimonster wrote:
ssss wrote:
scimonster wrote:
Nah, I'm waiting 'till it's finished.
![]()
Then you'll be waiting about 1-3 months -_- You get to see the new logo on this one
![]()
Can you just post an image?
![]()
My dad's getting cranky at my internet usage
YAY!!!!
jk. He thinks im d/l heaps of stuff, i'm actually playing mc server
Www.cyberkidscountry.com/rocket/default.bmp
Last edited by ssss (2011-05-15 01:58:17)
Offline
ssss wrote:
scimonster wrote:
ssss wrote:
Then you'll be waiting about 1-3 months -_- You get to see the new logo on this one![]()
Can you just post an image?
![]()
My dad's getting cranky at my internet usage
![]()
YAY!!!!
jk. He thinks im d/l heaps of stuff, i'm actually playing mc server
d/l?
Offline
scimonster wrote:
ssss wrote:
scimonster wrote:
Can you just post an image?![]()
My dad's getting cranky at my internet usage
![]()
YAY!!!!
jk. He thinks im d/l heaps of stuff, i'm actually playing mc serverd/l?
downloaded. And i edited that post
Offline