kristus Posted March 16, 2010 Spotted a small problem with making Vanilla Hexen maps with DB2. (It's possible this is why the maps I made didn't run in the Doomsday version I tested them in as well) When DB2 makes a new Hexen map it doesn't add any info to the Behavior lump making it completely empty. This is something Vanilla Hexen absolutely hates and will crash violently when you try to run your map. 0 Share this post Link to post
boris Posted March 16, 2010 Well, what does it have to contain at the very least? 0 Share this post Link to post
andrewj Posted March 17, 2010 boris said:Well, what does it have to contain at the very least? In OBLIGE I use this structure:typedef struct { char marker[4]; // 'ACS' 0 u32_t offset; u32_t func_num; u32_t str_num; } raw_behavior_header_t;and set the marker as shown, the offset to 8, and the function and string counts to 0. That worked for me. 0 Share this post Link to post
kristus Posted May 2, 2010 In addition to this... Is there any way to actually script for Hexen with DB2? Currently I have to compile the scripts externally with ACC and manually move them into the map using XWE. Pain in the ass Is it possible to set DB2 up to use ACC with specific commands similar to how you can the nodebuilders? And if not, why not? 0 Share this post Link to post
CodeImp Posted May 3, 2010 Yes and a No but simultaneously a small Yes. Yes you can script and compile using ACC. Look for the Script Editor in the menus if you don't know the shortcut key. The script editor has a compile button you can use (but I believe uncompiled scripts are also automatically compiled when you save your map). No, you don't need to set anything up through the user interface, because ACC doesn't have any interesting switches any normal user would care for. But also Yes; you can change anything like this using configurations. If you really need that, I can explain how. 0 Share this post Link to post
Gez Posted May 3, 2010 CodeImp said:No, you don't need to set anything up through the user interface, because ACC doesn't have any interesting switches any normal user would care for. I can think of one: -h. Also, I tried to make a small Hexen map (using the Hexen config that came with DB2) and tried to compile a script that consisted entirely of #include "common.acs". It failed, as the compiler did not find common.acs. Changing it to zcommon.acs worked, though. Conclusion: even with the Hexen config, it uses the ZDoom compiler. Also also, there is no Vavoom ACC. I know Vavoom has its own vcommon.acs file. 0 Share this post Link to post
CodeImp Posted May 3, 2010 Hmm, that should work though. There is especially a legacy Hexen compiler coming with DB2 for this purpose (see subdirectories). I don't know why it's using the ZDoom one. Crap. 0 Share this post Link to post
boris Posted May 4, 2010 CodeImp said:Hmm, that should work though. There is especially a legacy Hexen compiler coming with DB2 for this purpose (see subdirectories). I don't know why it's using the ZDoom one. Crap. There's no Hexen_ACS.cfg in the Scripting folder and the compiler config to use for Hexen points to ZDoom_ACS.cfg (loaded from Include\Doom_misc.cfg). 0 Share this post Link to post
kristus Posted May 5, 2010 So, something that will be fixed in the next release? I probably could figure out how to set it up myself. But if it'll be fixed for the next version of DB2, then I might do better to just wait for that. 0 Share this post Link to post
boris Posted May 5, 2010 Figure it out yourself and submit it as a fix :P 0 Share this post Link to post