EntityDefinitionsConverter
Posted: Thu Oct 06, 2011 12:17 pm
This was discussed a bit in the EntityPlus thread before but I thought I’d make its own thread for it.
EntityDefinitionConverter is a commandline tool that can convert entities.def files that are used by GtkRadiant 1.4 to entities.ent files that are used by GtkRadiant 1.5. Because GtkRadiant 1.4 and 1.5 both use different file formats for their entity definitions, it can be a tedious job to translate one to the other.
While at this point it can only convert 1.4 to 1.5, I could (if people have a use for it) also implement a 1.5 to 1.4 converter. Or some other format that needs to be converted to 1.5 or whatever. The code is currently set up modularly so that I have a 1.5 writer and a 1.4 reader, but I could implement readers and writers for other formats as well.
Currently there is only one known “issue” and that is that comment lines are ignored, so they get lost in translation.
Even though the code and tool is hosted at the EntityPlus project page, it’s not strictly EntityPlus related. It’s just that I used this tool to generate the entities.ent file for EntityPlus and had nowhere else to stick it :-)
Here’s the download link: http://code.google.com/p/entityplus/dow ... er-1.0.zip
EntityDefinitionConverter is a commandline tool that can convert entities.def files that are used by GtkRadiant 1.4 to entities.ent files that are used by GtkRadiant 1.5. Because GtkRadiant 1.4 and 1.5 both use different file formats for their entity definitions, it can be a tedious job to translate one to the other.
While at this point it can only convert 1.4 to 1.5, I could (if people have a use for it) also implement a 1.5 to 1.4 converter. Or some other format that needs to be converted to 1.5 or whatever. The code is currently set up modularly so that I have a 1.5 writer and a 1.4 reader, but I could implement readers and writers for other formats as well.
Currently there is only one known “issue” and that is that comment lines are ignored, so they get lost in translation.
Even though the code and tool is hosted at the EntityPlus project page, it’s not strictly EntityPlus related. It’s just that I used this tool to generate the entities.ent file for EntityPlus and had nowhere else to stick it :-)
Here’s the download link: http://code.google.com/p/entityplus/dow ... er-1.0.zip