Code: Select all
A:\e\e\e05ml-a
Moderator: Moderator
Code: Select all
A:\e\e\e05ml-a
Good idea. I'll think about implementing it.Yottle wrote:Now I need an auto-extract added so that when I encounter certain types of objects on the floor they automatically get extracted.
Code: Select all
tome: /home/proteus/Projects/tome2/src/squeltch.c:582: condition_and_add: Assertion `c != ((void *)0)' failed.
(snip)Lord Estraven wrote:Hey thanks Shany, your patch fixes some borked assert() statements in the C/jansson port's squelch code. Cool... I'll import them to my fork too.
Ah, sorry. It looked like they would fail under quite normal conditions, but yeah, I didn't check how those structs could end up being NULL.AnonymousHero wrote: (snip)
The asserts are there for a reason.
Turns out is is fairly easy to make ccache work with CMake. You just do thisI wrote: BTW, regarding the C++ port... Is there any way to make this thing compile faster? It takes about 5 times longer than the C port.
Code: Select all
cmake -DCMAKE_CXX_COMPILER="/path/to/ccache/g++" .
Sorry, that sounded overly defensive. Of course it's very possible that the asserts could be wrong! I just meant that that's probably not commonly the right explanationLord Estraven wrote:Ah, sorry. It looked like they would fail under quite normal conditions, but yeah, I didn't check how those structs could end up being NULL.AnonymousHero wrote: (snip)
The asserts are there for a reason.
Anyway the above assert() failure is the only one I've found in the automizer.
If it's workable, then I'd be very happy to merge a patch that could do this! Do you happen to know what the build chain requirements are?Lord Estraven wrote:I do have a suggestion for C++, though, which involves changes to the CMake files. My thought is, it would be good to have a target for a static Win32 binary, cross-compiled using MinGW. Currently the only way to compile for Windows is to compile on Windows, which is rather painful. With a working cross-compile target, the Windows binary could be built on Linux and tested under Wine.
Any chance you could submit a MR on Gitlab? If you could test compilation on Linux too that would be ideal, but if you can't just say so, and I'll try compiling myself. (Caveat: I'm on Arch Linux, so I don't really know what non-bleeding-edge distros are doing. Yay "#include"!)Lord Estraven wrote:'nother BSD build problem in master: h-system.h includes <sys/timeb.h>. OpenBSD (as of 5.8 series snapshots) doesn't have this, so compile fails rather quickly. Without that include line, the build completes and the game runs fine.