Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
316 stars 56 forks source link

def files seems cannot be loaded #15

Closed isRyven closed 5 years ago

isRyven commented 5 years ago

Hey, i am trying to compose an rtcw pak for netradiant, but seems like netradiant can't read entity definition (.def) file, i am not sure what's the issue but nor netradiant-custom or original netradiant can load the .def, but only the .ent files, despite the fact the code to load the .def files is in place.
However, original radiant 1.5 can do that without any problems. The game definition file has entityclasstype="def" set, but for some reason it doesn't do anything.

Here is the entity and game definition files i can't make to work, i hope you can figure this out.

games.zip

isRyven commented 5 years ago

I have just found out you have an archive with unverified game configs, which also contains wolf pak with ent file in. Your wolf pak is actually works pretty fine. And i guess i have figured out the culprit of my problem. The main directory of wolf.game directory was a copy from a vanilla radiant, so the .def file was inside the scripts directory as it is in vanilla radiant (which copies the contents into the installation directory upon each game profile creation as you know). I had no clue NetRadiant actually has a different structure and loads the ent/def files from the directory rather than from the directory of the installation path as vanilla radiant does.