Page 1 of 1

EntityDefinitionsConverter

Posted: Thu Oct 06, 2011 12:17 pm
by Eraser
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

Re: EntityDefinitionsConverter

Posted: Thu Oct 06, 2011 3:17 pm
by obsidian
Thanks.

Re: EntityDefinitionsConverter

Posted: Fri Oct 07, 2011 11:22 am
by DaEngineer
That's great, thanks a lot. Is there a way to specify which entities.ent is used by Gtk1.5 without renaming the files? Right now I have to rename or move the original entities.ent file for Q3 if I want to map for EntityPlus (so it uses the .ent file for EntityPlus). If I then want to map for the regular Q3 again, I have to change the files back.

Re: EntityDefinitionsConverter

Posted: Fri Oct 07, 2011 11:53 am
by Eraser
It just outputs to entities.ent
What you do with the resulting file after that is up to you and I have no idea how GtkRadiant handles .ent files. I read comments from people talking about creating a new mod folder inside the q3.game folder, but I've not figured out how that works myself.

Re: EntityDefinitionsConverter

Posted: Fri Oct 07, 2011 2:32 pm
by obsidian
You need to create a new folder in "Program Files\GtkRadiant 1.5.0\q3.game\[modfolder]", as well as where your mod is in the game folder in "Quake\[modfolder]"

Inside the q3.game mod folder you need your definition file like entities-eplus.ent

The contents of which will include only changes specific to your mod as Radiant still reads the baseq3 entities file and appends any additional changes from your mod's entity definitions.

As an example, you should also find the Team Arena entities definition file (entities-ta.ent) in the "missionpack" folder.

Re: EntityDefinitionsConverter

Posted: Fri Oct 07, 2011 2:36 pm
by Eraser
Hmm, might need to test that, because entityplus actually removes some keys from baseq3 entities.

Re: EntityDefinitionsConverter

Posted: Fri Oct 07, 2011 4:02 pm
by dghost77
I'm sorry to ask, I don't want to hijack this thread, but I was wondering, ZeroRadiant is based on Gtk 1.4 or 1.5 for managing it's entities def files? Or is it something new also?

Re: EntityDefinitionsConverter

Posted: Fri Oct 07, 2011 4:17 pm
by obsidian
ZeroRadiant (1.6) is mostly based on the 1.4 branch so it uses entities.def