A very simple, very UNOFFICIAL, and not-at-all-polished parser for Panda3D's egg files.
Mainly made for Toontown files. Tested with files from OpenToontown, Toontown Rewritten, and Toontown: Corporate Clash. Anything else is untested and might break.
Requires .NET 8.0 or later!
- Add
Panda3DEggParser.dll
as a reference in your project - Parse
- ???
- Profit
using Panda3DEggParser;
public class SomeClass {
Panda3DEgg egg;
public void SomeFunction() {
var parser = new EggParser("path/to/file.egg", true);
egg = parser.Parse();
}
}
Q: I'm looking at the code... this is an incredibly inefficient way of doing this.
A: Correct!
Q: (X) feature from egg files don't work
A: If Toontown servers don't use 'em, neither do I!
Q: Can I use this?
A: Yeah, mate, it's public domain.
Q: This doesn't work on (OS other than Windows)
A: ¯\_(ツ)_/¯
Q: I found a bug!
A: Open an issue, but I can't guarantee I'll fix it. I kinda got my miles worth out of this already.