NetworkTest.tz
Hi, I'm having trouble getting breve's networking features to work. After looking at the source code version, I found a self-test included: NetworkTest.tz (inside the "test" folder").
I ran it and it failed, giving me the following errors:
network connection from localhost dearchive of instance 0x7948dd0 (Agent) failed error decoding XML message from string ... error in file "Control.tz" at line 160 cannot convert type "NULL" to type "object" Error evaluating keyword "of" for method "accept-upload" execution stopped from within simulation: attempt to move uninitialized Mobile object. ... error in file "Mobile.tz" at line 121
Any suggestions? Thanks!

NetworkTest.tz
What version of breve are you using? If you haven't already, please try one of the more recent unofficial beta builds: http://www.spiderland.org/breve_2.4_betas.
- jon
NetworkTest.tz
Ah, found the problem. The dearchive method in NetworkTest.tz needs to return the value 1 to indicate success, otherwise breve thinks the dearchive has failed. That test simulation predates the return value requirement. Adding the line "return 1." makes the simulation work with the 2.4 beta.
I'm updating the networking documentation to reflect the change.
- jon
NetworkTest.tz
Yes, adding "return 1" worked, but shouldn't it be "return result" (which also works BTW):
+ to dearchive: result (int). result = (super dearchive). self set-velocity to (0, 1, 0). return result.Or even better,
+ to dearchive: result (int). result = (super dearchive). if result: self set-velocity to (0, 1, 0). return result.