Alice Community

Alice Community (
-   Works-In-Progress (
-   -   Network connection (

zonedabone 02-06-2010 09:53 PM

Network connection
1 Attachment(s)
I derived this program from the Jython scripting works on this website:


Just make sure you put the protocol at the beginning:

[URL][/URL] Good
[URL=""][/URL] Bad!

I am having trouble with some of the parameters, and I don't know enough to reqrite the script in a more efficient way.

This type of advanced scripting may be just what we need to take Alice to the next level. There is plently of documentation on Jython, and it is relatively simple. It can even run alongside drag and drop programming! It can do advanced string methods, too. It's essentially full Java, without having to wait for 3.0!

King Gamer(gorit) 02-07-2010 11:38 AM

Ok, well this impreses me but I just wonder what purpose does this have. I mean I see absolutley no use for this because you can llook at the source html in internet explorer. But dont get me wrong this is a very cool world.

x2495iiii 02-07-2010 11:52 AM

Can you see the possibilities for it, though? If Alice can connect to any internet page and read data from that page, then we can implement saved games, high scores, passwords, and lots of other cool stuff! This opens up loads of new possibilities!

zonedabone 02-07-2010 11:55 AM

Yeah! I was also looking into the other capabilities of Jython. It can access the file system, and possibly, even save extentions itself. (eg. updating and saving games to the file):)

Also, if you right your own website in html without all the extra stuff, alice can read it very well.

jediaction 02-07-2010 12:15 PM

I wish it could interact. Just out of teh ordinary. Did anyoen get more than 3 feet of snow. I did

zonedabone 02-07-2010 12:22 PM

It can! It can open any web adress, including a php form. Using the A joined with B function, you can have your program append parameters, which can be read by the web server.

jediaction 02-07-2010 01:27 PM

OH i did not know that

zonedabone 02-07-2010 03:13 PM

1 Attachment(s)
I've gotten file access to work! Make sure that the location parameter is the full file path. The methods are pretty slf explainatory, so it's not too hoard.

dubastot 02-07-2010 06:56 PM


zonedabone 02-07-2010 07:14 PM

I know. It took a lot of work, but I've started to self-teach myself Jython. Well... I'm teaching myself python, which works just like Jython - Java!:)

The Jython console runs [B][I][U]MUCH [/U][/I][/B]faster than the regular alice stuff, so it's a great addition to things that compile stuff, such as my alice word.

All times are GMT -5. The time now is 12:27 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.