Closed Urfoex closed 9 years ago
Got a backtrace?
Yeah, some asset files are required, no way around that atm. Are you by chance working on free and minimal assets to get the engine up?
@andre-d Here are the backtraces:
This one is coming when no script is there:
And this one is when doom_main.script is available:
@dhewg Required is OK as long as if they are missing the executable doesn't crash. But it crashes so it's not OK (I guess). Something seems to go wrong inside the idStr class. The data member isn't set right.
Also a bit strange is that the files doesn't contain anything. Empty files shouldn't be required. (At least it could be created if not found.)
What do you mean by "get[ting] the engine up"? Those are the minimal files I needed to get the window open: https://docs.google.com/open?id=0B-DgjzoFZxxwcDM2dUZ1ajBjbHM
From there you can open the console and do stuff. But as the console font is missing you would need to start from e.g. a terminal so that output is printed there. If you place the right textures/bigchars.tga you would also see chars inside. There is also a more complex minimal assets file: http://wiki.iodoom3.org/Minimum_Assets
But yeah. I'm kind of working on a (asset) starter kit. It's for a course at university. The first part is analysing the engine and tools and getting a simple starter kit going.
Yeah, I will work out a way to handle that and just quit with an error. Likely Monday.
edit: WAIT! Those are empty files? I will be sure to fix this then.
Yeah, that's something everyone really needs - no crash on missing assets.
with https://github.com/DanielGibson/d3-base-assets (and the included patch) things shouldn't crash, so use that.. or maybe https://github.com/OpenTechEngine/OpenTechBFG if you wanna use the superior doom3 bfg engine.
Having a default.cfg and a materails/default.mtr when those two files: → script/doom_main.script → script/doom_defs.script
are missing dhewm3 will crash with:
Program received signal SIGSEGV, Segmentation fault. 0x00007fffe3102221 in Remove (node=0x3ccd820, this=0x7fffe37801f0) at /home/kakarott/projects/iodoom3/dhewm3/neo/idlib/containers/BTree.h:231 231 if ( parent->key > parent->lastChild->key ) {
(gdb) print parent->lastChild $3 = (idBTreeNode<idDynamicBlock, int> *) 0x0