Jump to content
The Dark Mod Forums

dmap command not found and other problems


Recommended Posts

Hi, I just today started to play with DarkRadiant and struggled with some things.

 

1. When I type dmap and the name of my first map, I get the error: Cannot execute command dmap: Command not found?

 

7nbin798.png

 

2. DR crashes every time when I want to insert models. I go to create model and choose one from the tree and then it crashes. Prefabs don't make any crashes.

 

Does someone has ideas what is going wrong here?

 

Another question: Is there a possibility to scale a prefab? I inserted a lamp as prefeab in the map and can adjust the light radius, but not the model itself.

 

Note: I use Arch Linux and installed the package from AUR: https://aur.archlinux.org/packages/darkradiant-git/

Link to comment
Share on other sites

dmap is a command in TDM's own console, not DR's (there used to be a semi-implemented dmap in DR but it was removed some time ago).

 

Prefabs are collections of brushes, patches and/or entities, so you can resize the brushes and patches, and use the scaling tool on the entities with models (after ungrouping if the prefab's been imported as a group). If this is a lamp with an LWO or ASE model, you can use the scaling tool (one of the buttons on the left of the main window, with the tooltip Model Scaler).

 

Someone else will have to help with the crash problem; in the past greebo has fixed crashes when I sent him crash dumps, but according to http://forums.thedarkmod.com/topic/19955-darkradiant/?do=findComment&comment=436732 he might be unavailable, in which case probably OrbWeaver is your best hope.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

What VanishedOne said, dmap is a game console code not a DR console. Btw you can use in the game console "testmap" to test a map even if it has a leak, not recommended for final release.

 

Try this, put it inside a .bat file or a .cmd file in the TDM folder then just make a shortcut for it and double click it when you want to test the map

@echo off
TheDarkModx64.exe +set developer 1 +disconnect +set com_allowConsole 1 +set r_fullscreen 0 +set r_multiSamples 0 +set r_mode 6 +set r_gamma 1 +dmap mapname.map +map mapname.map 

REM Anything in a REM line is ignored good to make comments 
REM I also use it to store map names for fast switching when testing: mapname2.map
REM mapname3.map

Btw not sure all of those commands still work in the TDM version of the idtech 4 engine has i'm not a TDM developer but the dmap and map one's should work.

 

+set com_allowConsole makes it so you only need to press one key to open the console instead of the default three.

Link to comment
Share on other sites

Thanks @VanishedOne. Ah I didn't get that from the wiki. But also in the game console I cannot compile or load a map. When I write dmap <mapname> I get a warning "entity reached from outside". What does that mean? I deleted several windows which caused this warning but every time there is a new entity listed where the leak occurs.

 

When I write testmap <mapnam> then it says that the map cannot be found. I saved it in the maps folder ( /darkmod/maps/ ). But the map has to be compiled first, right?

 

Sorry HMart I think I cannot handle using the script for now. Maybe I try it later. But thank you anyways!

Link to comment
Share on other sites

You may find the DarkRadiant online user guide helpful, especially the section on compiling maps and investigating leaks.

 

In order to investigate a crash, we will need a backtrace of the crash itself. Since you are on Linux, this can be done using either the gdb or lldb debuggers.

 

You need to run DarkRadiant under the control of the debugger (with a command like gdb /usr/bin/darkradiant), and then when the program crashes, use the bt command in the debugger console to get a backtrace.

  • Like 1
Link to comment
Share on other sites

Make sure you follow the A-Z tutorial on the wiki page or the video tutorial series by Springheel religiously in order to get to know the mechanics of map making and DarkRadiant, or you will be overwhelmed by technical issues.

Link to comment
Share on other sites

Thank you! I installed now gdb and produced the crash again. Gdb then says:

 

Thread 1 "darkradiant" received signal SIGSEGV, Segmentation fault.
0x0000555555af7c04 in std::_Sp_counted_ptr_inplace<scene::BasicRootNode, std::allocator<scene::BasicRootNode>, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&) ()
(gdb)

Should I open an issue in bugtracker?

Link to comment
Share on other sites

Thank you! I installed now gdb and produced the crash again. Gdb then says:

 

Thread 1 "darkradiant" received signal SIGSEGV, Segmentation fault.

0x0000555555af7c04 in std::_Sp_counted_ptr_inplace<scene::BasicRootNode, std::allocator<scene::BasicRootNode>, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&) ()

(gdb)

 

That's a great first step. Now you can run DarkRadiant under the debugger, you can get a full backtrace. Where you see that (gdb) command prompt, enter bt and hit Enter. This should give a long list of functions identifying the crash (not just the top one which is displayed automatically).

 

Should I open an issue in bugtracker?

Perhaps not yet. We don't know if this is actually a bug in DarkRadiant or something weird about how the Arch Linux package is built. I notice from the link you posted that the packaged version of DarkRadiant is 2.1.0, from 2017. Is that correct? That is quite an old version of DarkRadiant; there have been quite a lot of updates since then and we are up to 2.6.0 now.

Link to comment
Share on other sites

Ah cool, thanks again.

 

Here is the output, hopefully it points to the problem:

 

(gdb) bt
#0 0x0000555555af7c04 in std::_Sp_counted_ptr_inplace<scene::BasicRootNode, std::allocator<scene::BasicRootNode>, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&) ()
#1 0x00007ffff7c23927 in wxutil::ModelPreview::setupSceneGraph() ()
at /usr/local/lib/darkradiant/libwxutil-2.6.0.so
#2 0x00007ffff7c31c41 in wxutil::RenderPreview::getScene() ()
at /usr/local/lib/darkradiant/libwxutil-2.6.0.so
#3 0x00007ffff7c22435 in wxutil::ModelPreview::setModel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
at /usr/local/lib/darkradiant/libwxutil-2.6.0.so
#4 0x0000555555a75f5a in ()
#5 0x00007ffff6b4689e in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#6 0x00007ffff6b46c1b in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
at /usr/lib/libwx_baseu-3.0.so.0
#7 0x00007ffff6b46cb1 in wxEvtHandler::TryHereOnly(wxEvent&) ()
at /usr/lib/libwx_baseu-3.0.so.0
#8 0x00007ffff6b46d64 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
at /usr/lib/libwx_baseu-3.0.so.0
#9 0x00007ffff6b46e02 in wxEvtHandler::ProcessEvent(wxEvent&) ()
at /usr/lib/libwx_baseu-3.0.so.0
#10 0x00007ffff6b46ba7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
at /usr/lib/libwx_baseu-3.0.so.0

 

Yes I installed the old package from August 2017 because I could not compile DarkRadiant. The build can not completed. I already ceated a bugreport for it.

Link to comment
Share on other sites

... oh there was more:

 

#11 0x00007ffff7409d4a in () at /usr/lib/libwx_gtk2u_adv-3.0.so.0
#12 0x00007ffff550ce75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff54f9ab8 in () at /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff54fe1ae in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff54ff080 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff5a17381 in () at /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007ffff5a1bbd4 in () at /usr/lib/libgtk-x11-2.0.so.0
#18 0x00007ffff591a7cc in () at /usr/lib/libgtk-x11-2.0.so.0
#19 0x00007ffff550ce75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff54f97df in () at /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff54fd76d in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff54ff080 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#23 0x00007ffff5a35235 in () at /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007ffff5918a0e in gtk_propagate_event () at /usr/lib/libgtk-x11-2.0.so.0
#25 0x00007ffff5918e43 in gtk_main_do_event () at /usr/lib/libgtk-x11-2.0.so.0
#26 0x00007ffff5591d5e in () at /usr/lib/libgdk-x11-2.0.so.0
#27 0x00007ffff53ab7bf in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#28 0x00007ffff53ad739 in () at /usr/lib/libglib-2.0.so.0
#29 0x00007ffff53ae6d2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#30 0x00007ffff5917df3 in gtk_main () at /usr/lib/libgtk-x11-2.0.so.0
#31 0x00007ffff6eda1b6 in wxGUIEventLoop::DoRun() () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#32 0x00007ffff6a13bae in wxEventLoopBase::Run() () at /usr/lib/libwx_baseu-3.0.so.0
#33 0x00007ffff6f438f1 in wxDialog::ShowModal() () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#34 0x0000555555a7690f in ()
#35 0x0000555555a78a9f in ()
#36 0x00005555559fd579 in ()
#37 0x00005555559fbddc in ()
#38 0x00007ffff6b4689e in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#39 0x00007ffff6b46c1b in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#40 0x00007ffff6b46cb1 in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#41 0x00007ffff6b46d64 in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#42 0x00007ffff6b46e02 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#43 0x00007ffff6b46ba7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#44 0x00007ffff70614d3 in wxMenuBase::SendEvent(int, int) () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#45 0x00007ffff6f5a6dc in () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#46 0x00007ffff550ce75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#47 0x00007ffff54f9fd5 in () at /usr/lib/libgobject-2.0.so.0
#48 0x00007ffff54fe1ae in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#49 0x00007ffff54ff080 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#50 0x00007ffff5a33f38 in gtk_widget_activate () at /usr/lib/libgtk-x11-2.0.so.0
#51 0x00007ffff592ce71 in gtk_menu_shell_activate_item () at /usr/lib/libgtk-x11-2.0.so.0
#52 0x00007ffff592d140 in () at /usr/lib/libgtk-x11-2.0.so.0
#53 0x00007ffff591a7cc in () at /usr/lib/libgtk-x11-2.0.so.0
#54 0x00007ffff550ce75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#55 0x00007ffff54f97df in () at /usr/lib/libgobject-2.0.so.0
#56 0x00007ffff54fd76d in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#57 0x00007ffff54ff080 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#58 0x00007ffff5a35235 in () at /usr/lib/libgtk-x11-2.0.so.0
#59 0x00007ffff5918a0e in gtk_propagate_event () at /usr/lib/libgtk-x11-2.0.so.0
#60 0x00007ffff5918e43 in gtk_main_do_event () at /usr/lib/libgtk-x11-2.0.so.0
#61 0x00007ffff5591d5e in () at /usr/lib/libgdk-x11-2.0.so.0
#62 0x00007ffff53ab7bf in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#63 0x00007ffff53ad739 in () at /usr/lib/libglib-2.0.so.0
#64 0x00007ffff53ad77e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#65 0x00007ffff5918032 in gtk_main_iteration () at /usr/lib/libgtk-x11-2.0.so.0
#66 0x00007ffff6ef5c86 in wxWindow::DoPopupMenu(wxMenu*, int, int) () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#67 0x00007ffff70ae774 in wxWindowBase::PopupMenu(wxMenu*, int, int) () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#68 0x0000555555b63091 in ()
#69 0x0000555555b63110 in ()
#70 0x00007ffff7c0dca4 in wxutil::FreezePointer::onMouseUp(wxMouseEvent&) () at /usr/local/lib/darkradiant/libwxutil-2.6.0.so
#71 0x00007ffff6b4689e in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#72 0x00007ffff6b46c1b in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#73 0x00007ffff6b46cb1 in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#74 0x00007ffff6b46d64 in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#75 0x00007ffff6b46e02 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#76 0x00007ffff6b46ba7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#77 0x00007ffff6efa3a4 in () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#78 0x00007ffff591a7cc in () at /usr/lib/libgtk-x11-2.0.so.0
#79 0x00007ffff550ce75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#80 0x00007ffff54f9fd5 in () at /usr/lib/libgobject-2.0.so.0
#81 0x00007ffff54fd76d in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#82 0x00007ffff54ff080 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#83 0x00007ffff5a35235 in () at /usr/lib/libgtk-x11-2.0.so.0
#84 0x00007ffff5918a0e in gtk_propagate_event () at /usr/lib/libgtk-x11-2.0.so.0
#85 0x00007ffff5918e43 in gtk_main_do_event () at /usr/lib/libgtk-x11-2.0.so.0
#86 0x00007ffff5591d5e in () at /usr/lib/libgdk-x11-2.0.so.0
#87 0x00007ffff53ab7bf in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#88 0x00007ffff53ad739 in () at /usr/lib/libglib-2.0.so.0
#89 0x00007ffff53ae6d2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#90 0x00007ffff5917df3 in gtk_main () at /usr/lib/libgtk-x11-2.0.so.0
#91 0x00007ffff6eda1b6 in wxGUIEventLoop::DoRun() () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#92 0x00007ffff6a13bae in wxEventLoopBase::Run() () at /usr/lib/libwx_baseu-3.0.so.0
#93 0x00007ffff69d8517 in wxAppConsoleBase::MainLoop() () at /usr/lib/libwx_baseu-3.0.so.0
#94 0x00007ffff6a604c8 in wxEntry(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.0.so.0
#95 0x00005555556f4bbe in ()
#96 0x00007ffff5f8e223 in __libc_start_main () at /usr/lib/libc.so.6
#97 0x000055555572482e in ()

Link to comment
Share on other sites

Ah cool, thanks again.

 

Here is the output, hopefully it points to the problem:

 

So it seems there is a problem in the model selector. I did actually fix a crash in the model selector quite recently, so building the version from my repository might be worth trying since it will have this fix.

 

Yes I installed the old package from August 2017 because I could not compile DarkRadiant. The build can not completed. I already ceated a bugreport for it.

The build commands in that bug report do not relate to building DarkRadiant. It seems like you are building pybind11 but inside the DarkRadiant directory, I'm guessing because those build steps were listed in the DarkRadiant Compilation Guide on the Wiki. I have no idea why those commands are suggested or why it would be necessary to build pybind11 before building DarkRadiant; it is certainly not something I have ever done. Perhaps building pybind11 manually on Arch is needed to get Python support working, but Python is optional in DarkRadiant, so I would just skip it for now unless you specifically want to test Python scripts.

 

To build DarkRadiant, you should only need the commands listed in the README under the heading Compiling on Linux.

./autogen.sh
./configure
make
sudo make install

or if you just want to make a test build and not install it system-wide, you can pass a different prefix directory e.g.:

./autogen.sh
./configure --prefix=/tmp/dr
make
make install
/tmp/dr/bin/darkradiant
  • Like 3
Link to comment
Share on other sites

  • 2 weeks later...

Thanks @VanishedOne. Ah I didn't get that from the wiki.

 

Can you specify where in the wiki you're referring to? Do you mean the "A to Z" Tutorial or another page?

If you had this misunderstanding it means others will too and the text should be edited to make it more explicit.

But where are you referring to where such an elaboration would be helpful?

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

  • 2 weeks later...

@Mod hero, I just overread the information. I used this tutorial: http://wiki.thedarkmod.com/index.php/A_-_Z_Beginner_Full_Guide_Start_Here!#Folder_Structure

 

By the way, I could install pybind11 via pacman and some depency was also missing but now I got DarkRadiant installed properly and all works now. Thanks for your help here!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...