Jump to content


Photo

dmap command not found and other problems


  • Please log in to reply
15 replies to this topic

#1 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 24 April 2019 - 02:21 PM

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.archlinu...arkradiant-git/



#2 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1015 posts

Posted 24 April 2019 - 03:43 PM

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.thedar...nt/#entry436732 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


#3 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 849 posts

Posted 24 April 2019 - 06:22 PM

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. 



#4 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 25 April 2019 - 07:19 AM

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!



#5 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1015 posts

Posted 25 April 2019 - 08:00 AM

That might be a leak problem: does File -> Pointfile in DR yield anything?


  • janexx likes this

Some things I'm repeatedly thinking about...

- louder scream when you're dying


#6 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 25 April 2019 - 10:46 AM

Yes indeed, was a leak problem. Thanks for the link with information about this! Ah my first small map now is playable. :)


  • VanishedOne likes this

#7 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7653 posts

Posted 26 April 2019 - 04:24 AM

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.


  • janexx likes this

#8 RPGista

RPGista

    Advanced Member

  • Member
  • PipPipPip
  • 1672 posts

Posted 26 April 2019 - 01:46 PM

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. 



#9 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 28 April 2019 - 09:58 AM

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?



#10 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7653 posts

Posted 28 April 2019 - 01:41 PM

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.



#11 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 28 April 2019 - 04:25 PM

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.



#12 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 28 April 2019 - 04:29 PM

... 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  ()
 



#13 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7653 posts

Posted 29 April 2019 - 04:31 AM

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

  • peter_spy, HMart and janexx like this

#14 peter_spy

peter_spy

    Uber member

  • Member
  • PipPipPipPip
  • 2041 posts

Posted 29 April 2019 - 06:07 AM

I did actually fix a crash in the model selector quite recently

 

That's much appreciated, I've been having this error for quite some time now on Win7.



#15 demagogue

demagogue

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 5507 posts

Posted 08 May 2019 - 12:08 AM

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?


Posted Image

#16 janexx

janexx

    Member

  • Member
  • PipPip
  • 21 posts

Posted 17 May 2019 - 11:27 AM

@Mod hero, I just overread the information. I used this tutorial: http://wiki.thedarkm...older_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!


  • OrbWeaver likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users