WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   networking (https://forum.worldviz.com/showthread.php?t=56)

hotspur1 08-22-2003 02:11 PM

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.

farshizzo 08-22-2003 03:40 PM

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)
and not
Code:

viz.addmail(targetmachine)
About the other errors, are you getting them in your networking script or a different one? Are these errors caused when you use a specific function or feature? Thanks for reporting these errors to us.

hotspur1 08-25-2003 08:49 AM

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

farshizzo 08-25-2003 10:07 AM

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 12:57 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC