This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-07-25 09:42:22

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

<ip [000.000.0.000] hosting mesh?> block

Anyone have the code for the <ip [000.000.0.000] hosting mesh?> block?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#2 2010-07-25 10:29:40

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

would that be able to check other people's IP's?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2010-07-25 11:02:13

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

I could do it but you would need 2 blocks...


You can now reach me on Twitter @johnnydean1_

Offline

 

#4 2010-07-25 11:53:02

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Sure! can you do it?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#5 2010-07-25 12:19:54

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Well I could do it for 1 if I could alter the coding of Scratch but 2 other wise...


You can now reach me on Twitter @johnnydean1_

Offline

 

#6 2010-07-25 15:11:19

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Please do.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#7 2010-07-25 15:45:51

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

I will do it in Panther (easier to edit) then port it to scratch...


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-07-25 15:57:03

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Not for use in mods unless told by me!

Panther CYOB code:

Name:
IP $String$ is hosting mesh?

type:
-b

code:

| var1 sFrame server inmesh time timers |
self leaveMesh.
time_ self timer.
self joinMesh: (t1).

    (sFrame _ self ownerThatIsA: ScratchFrameMorph) ifNil: [sFrame _ (self ownerThatIsA: OffscreenWorldMorph) frame].

    (server _ sFrame workPane scratchServer) ifNil: [inmesh_ false.].
    inmesh_ server.

var1_ false.
inmesh = false
ifFalse: [
var1_ true.
].
self leaveMesh.
timers_ self timer.

time_ timers - time.

time < 0.5
ifTrue: [
^ var1.
]
ifFalse: [
^ false.
].

Last edited by johnnydean1 (2010-07-25 16:03:32)


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2010-07-25 16:03:15

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Oh it does require that you are not connected to a mesh already...


You can now reach me on Twitter @johnnydean1_

Offline

 

#10 2010-07-25 16:57:41

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

That's fine.

And can I use it in RAGE? I'll put your name in the credits/sources window.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#11 2010-07-25 17:09:18

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

What do you need it for? It seems kinda strange... but then I geuss it would avoid the attempting to join a mesh and it failing...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#12 2010-07-25 17:10:51

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

waveOSBeta wrote:

That's fine.

And can I use it in RAGE? I'll put your name in the credits/sources window.

Yes


You can now reach me on Twitter @johnnydean1_

Offline

 

#13 2010-07-25 17:28:56

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

unknown variable: sFrame


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#14 2010-07-25 17:31:19

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

waveOSBeta wrote:

unknown variable: sFrame

try removing the space before the _ on the first part of the script, you should be able to find what I'm meaning.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#15 2010-07-25 17:46:33

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

doesn't work. I might be doing it wrong.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#16 2010-07-26 03:52:03

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Umm I tried it in CYOB and it works..

I will make it into Scratch soon...


You can now reach me on Twitter @johnnydean1_

Offline

 

#17 2010-07-26 03:54:28

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Try that (Still in CYOB)
| var1 Frame server inmesh time timers |
self leaveMesh.
time_ self timer.
self joinMesh: (t1).

    (Frame _ self ownerThatIsA: ScratchFrameMorph) ifNil: [Frame _ (self ownerThatIsA: OffscreenWorldMorph) frame].

    (server _ Frame workPane scratchServer) ifNil: [inmesh_ false.].
    inmesh_ server.

var1_ false.
inmesh = false
ifFalse: [
var1_ true.
].
self leaveMesh.
timers_ self timer.

time_ timers - time.

time < 0.5
ifTrue: [
^ var1.
]
ifFalse: [
^ false.
].


You can now reach me on Twitter @johnnydean1_

Offline

 

#18 2010-07-26 04:06:19

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: <ip [000.000.0.000] hosting mesh?> block

Couldn't that block be abused?
Just leave it running with random numbers for a while until it finds one, joins it, and now its in someone elses mesh.

Offline

 

#19 2010-07-26 05:07:27

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

colorfusion wrote:

Couldn't that block be abused?
Just leave it running with random numbers for a while until it finds one, joins it, and now its in someone elses mesh.

Yes but it would have to be on the same network...


You can now reach me on Twitter @johnnydean1_

Offline

 

#20 2010-07-26 07:48:29

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

Well I made a project to do just that (abusing) took 5 minutes to find 1 IP.


You can now reach me on Twitter @johnnydean1_

Offline

 

#21 2010-07-26 23:50:26

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: <ip [000.000.0.000] hosting mesh?> block

johnnydean1 wrote:

Well I made a project to do just that (abusing) took 5 minutes to find 1 IP.

<put * clapping smiley here>

Offline

 

#22 2010-08-10 13:34:57

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: <ip [000.000.0.000] hosting mesh?> block

ThePCKid wrote:

johnnydean1 wrote:

Well I made a project to do just that (abusing) took 5 minutes to find 1 IP.

<put * clapping smiley here>

http://static-p4.fotolia.com/jpg/00/13/03/03/400_F_13030312_nbaxrwDBnwx6R6FzknbBsMUAuhjs07Rd.jpg

Last edited by HD123 (2010-08-10 13:35:20)


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&amp;online=http://lemonfanatic.webs.com/ONLINE.png&amp;offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

Board footer