DC file documentation?

Hello again!

I’m still crawling through the networking system. I’m having a bit of difficulty with the networking example from Panda3D 1.0.5; I get a syntax error in the DC file parser when it tries to read in sample.dc. Error looks like the following:

(Pdb) dcFile
<libdirect.DCFile object at 0x024E2140>
(Pdb) dcFile.read(Filename('sample.dc'))
DCFile::read of sample.dc

Error in sample.dc at line 10, column 52:
  setPigLatinFlag(int16 flag) required broadcast p2p;
parse error


Does anyone know if there is documentation on the DC file format? It would be relatively difficult to reverse-engineer the DC parser code to develop this documentation, so before I start that process, I want to make sure I’m not writing something that’s already written.


At some point, we changed the built-in set of keywords. But we also added the custom keyword definition syntax. Add this line to the top of your dc file:

keyword p2p

and you should be good to go.

I don’t know if anyone has written a reference document on the full DC syntax yet, though there is a sample.dc designed to show off several of the useful syntaxes here: