Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does dhewm support the editor? It doesn't work on Linux #519

Open
SingingBush opened this issue May 28, 2023 · 6 comments
Open

does dhewm support the editor? It doesn't work on Linux #519

SingingBush opened this issue May 28, 2023 · 6 comments

Comments

@SingingBush
Copy link

Does dhewm include the editor? I've recently been playing around with it on Windows (steam Doom 3 install) and was hoping to do the same from my Linux machine. I tried opening the editor but the command seems to be unrecognised:

image

It's the same outcome if I specify +editor as an arg:

./dhewm3 +editor +r_fullscreen 0 +r_mode 7

System:
Fedora 38 (Linux Kernel 6.2.15, Gnome 44.1 & Wayland)

@DanielGibson
Copy link
Member

DanielGibson commented May 28, 2023

The editor is windows-only, and so are the other integrated GUI tools (light editor, gui editor, ...).
You could use the DarkRadiant - or try to run the Windows version of dhewm3 in Wine.

@SingingBush
Copy link
Author

Thanks for the quick response. I'm currently compiling DarkRadiant so will see how that goes. If someone was to make a PR that ports all GUI tools to something like gtk or Qt, is that something you'd consider merging?

@DanielGibson
Copy link
Member

Yes, I would (as long as it can still be disabled at compiletime to allow dhewm3 builds with fewer dependencies - on Windows the tools can also be disabled).

Possible alternative to Gtk or Qt: https://github.com/ocornut/imgui
There even is some kind of Radiant level editor based on that: https://github.com/xoxor4d/iw3xo-radiant
But it's for Call of Duty 4 (which AFAIK has roots in idTech3, though they probably changed a lot, so it would need to be adapted for idtech4/Doom3) and its licensing is quite unclear (I couldn't find any mention of a license in the README, the source files, and neither a License.txt file at the top level of the repo. There is https://github.com/xoxor4d/iw3xo-radiant/blob/develop/readme/licenses.txt but that might only apply to the libs it uses). However, if it turns out to be under a compatible license (and is indeed a usable editor, I never tried it) I could imagine that it could be a good base for a Dear ImGui-based level Editor in Doom3/dhewm3.

@DanielGibson
Copy link
Member

The iw3xo-radiant developer has confirmed that the whole project is under MIT license: xoxor4d/iw3xo-radiant#26

@SingingBush
Copy link
Author

Dark Radiant seems like it's the best option for non-windows users to work on Doom 3 maps at the minute. Potentially it could be good to have the editor command start darkradiant if it's on the system path.

I'd not heard of imgui before so have had an interesting time in the last two evenings looking at using it directly from C++ as well as bindings to Java & D. I'm going to spend a bit more time familiarising myself with it.

@DanielGibson
Copy link
Member

If you want to port iw3xo-radiant to dhewm3, I have a branch with ImGui support now which should be a good start: #576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants