networking
I was trying out the networking demo (viz_Duckwalk) which works just fine but when I tried writing my own script - basically te same script with a few different objects, I get an error message, saying that
TypeError: send() takes exactly 2 arguments (4 given) As it's the same commands as the demo, I'm confused as to why it isn't working. I didn't get these errors with earlier versions of Vizard I had (1.096) - I am testing this with v2.08 Also, I occasionally get an error with the Window Title Producer: Internal Error: Can't Set the PixelFormat The parameter is incorrect Then I get a bunch of errors 'detected OpenGl error 'invalid operation after applying attribute Viewport 00BD5050' or something like that. Then the program crashes with a dialog about accessing some memory location (typical windows error msg). Thanks for any insight. |
Hi,
The error you are getting leads me to believe that you are creating a MAILBOX object instead of a NETWORK object. Can you double check that you are calling Code:
viz.add(viz.NETWORK,targetmachine) Code:
viz.addmail(targetmachine) |
Yes, using the viz.NETWORK flag did the trick. Is this a change from older versions (i.e., v1.08)? I was using an older script file as a template which used viz.MAILBOX.
I'll try to debug the other errors for more info |
Hi,
The old mailbox should work fine, but one thing to keep in mind is that with the old mailbox you can only send a single string to the other computer. With the newer Network object you can send an arbitrary amount of any data type (string,integer, floating point number). You were getting the error because you were trying to send more than one parameter to the mailbox, but it was expecting a single string. Hope this clears it up. |
All times are GMT -7. The time now is 08:34 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC