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
EntityDefinitionsConverter
Re: EntityDefinitionsConverter
Thanks.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
- DaEngineer
- Posts: 213
- Joined: Fri May 28, 2010 2:30 pm
- Location: Germany
- Contact:
Re: EntityDefinitionsConverter
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.
Website: https://victorkarp.com
LvLWorld: https://lvlworld.com/author/DaEngineer
YouTube: https://youtube.com/@victorkarp
LvLWorld: https://lvlworld.com/author/DaEngineer
YouTube: https://youtube.com/@victorkarp
Re: EntityDefinitionsConverter
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.
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
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.
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.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Re: EntityDefinitionsConverter
Hmm, might need to test that, because entityplus actually removes some keys from baseq3 entities.
Re: EntityDefinitionsConverter
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
ZeroRadiant (1.6) is mostly based on the 1.4 branch so it uses entities.def
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]