Thanks for the reply drwr!
All that I have done is taken the directory called Feature-Tutorials–Netoworking from the 1.0.5 sample code and placed it in my 1.1.0 samples directory, changed the paths of the shortcuts to follow the 1.1.0 directory, as well as adding the line “dc-file sample.dc” to the config.prc file in 1.1.0 since it was missing.
Here is part of the traceback from when I run the program:
File "C:\Panda3D-1.1.0\samples\Feature-Tutorials--Netowrking\chatcore.py", line 231, in initiateConnection
self.serverrepository = ServerRepository(tcpPort=19233, udpPort=19233)
File "C:\Panda3D-1.1.0\direct\src\distributed\ServerRepository.py", line 44, in __init__
self.readDCFile(dcFileNames)
File "C:\Panda3D-1.1.0\direct\src\distributed\ServerRepository.py", line 95, in readDCFile
self.notify.error("Could not read dc file.")
...
Then I went into chatcore.py and called the ServerRepository with explicitly defined dcFileNames:
File "C:\Panda3D-1.1.0\samples\Feature-Tutorials--Netowrking\chatcore.py", line 231, in initiateConnection
self.serverrepository = ServerRepository(tcpPort=19233, udpPort=19233, dcFileNames="sample.dc")
File "C:\Panda3D-1.1.0\direct\src\distributed\ServerRepository.py", line 44, in __init__
self.readDCFile(dcFileNames)
File "C:\Panda3D-1.1.0\direct\src\distributed\ServerRepository.py", line 100, in readDCFile
self.notify.error("Could not read dc file: %s" % (dcFileName))
File "C:\Panda3D-1.1.0\direct\src\directnotify\Notifier.py", line 121, in error
raise exception(errorString)
StandardError: Could not read dc file: s
the output of dcparse is:
Error in sample.dc at line 10, column 52:
setPigLatinFlag(int16 flag) required broadcast p2p;
^
parse error
So, in looking at sample.dc in the doc directory in either 1.1.0 or 1.0.5 (same in each) I noticed that they had db in place of p2p so I tried that instead and it seemed to help it accept sample.dc. However, I then began running into the fact that there are many changes in ClientRepository since 1.0.5 such as the lack of the method ‘sendSetZoneMsg’.
What should I do? I’d really love to get this high level API working in 1.1.0!
Thanks again
RC