Could someone with access to the XeNTaX forums be so kind as to upload the attachment from
[URL]http://forum.xentax.com/viewtopic.php?f=16&t=6794&start=30#p70705[/URL]
to a more public venue? It would be most appreciated.
I'm very interested in the PSSG parsing code from howfie's excellent utility!
I just wrote a Ruby class to parse PSSG files. You can find the code here:
[URL]https://gist.github.com/anonymous/6455972[/URL]
From the description:
[QUOTE]
This class will attempt to parse a PSSG structure from a given IO.
It does not aim to be comprehensive.
It is only capable of reading PSSG, not authoring or modifying.
Based on code from Ryder25:
[URL]https://github.com/Ryder25/Ego-PSSG-Editor/blob/master/PSSGParameters/PSSGFile.cs[/URL]
To test, give this script the name of a PSSG file as the first parameter:
./pssg_parse.rb input.pssg > output.yml
The parsed structure will be written to standard output in YAML format.
Speed is good: 3 seconds to parse 10k nodes + 20k attributes using 10 MB of RAM.
However, YAML output takes about 7 times as long.
Link to an example PSSG file:
[URL]http://wizzardx.isisview.org/uploads2/at3/BOSS00.PSSG.7z[/URL]
Tested in Ruby 2.1.0dev so no guarantees of compatibility.
Ruby 1.8.8 will not work, but 1.9 or higher probably will.
[/QUOTE]
I would really like to try extracting models from the resulting structure, but I'm not very familiar with the deeper internals of the PSSG format. It would benefit me greatly if I could look at howfie's code to see how he does it, but it's locked behind a paywall. If anyone is willing to assist me, that would be great.
Is [URL="http://puu.sh/4jWtW.7z"]this[/URL] what you're looking for?
Indeed it is! Thank you very much!
This will certainly help with my understanding of the PSSG format and modelling in general.
Sorry, you need to Log In to post a reply to this thread.