AX wrote:
Any ideas? I also noticed that my data folder in the share directory is empty. There should be files I would believe.
/usr/local/share/dangerdeep/data is not used, the original data zip extracts to a "data" directory, which needs to be /usr/local/share/dangerdeep (by default) on *nix builds. The empty directory is probably a remnant from that. This is really odd, but deleting that empty directory (rmdir /usr/local/share/dangerdeep/data as root) seems to help. I had trouble with vanishing ships until I removed it.
AX wrote:
Downloaded the tat.bz2 file with data on this second page. installed all the SDL*'s. When I run ./dangerdeep or bin/dangerdeep I get this error.
Code:
Select all
Trace/BPT/RangeErr/DivZero/Overflo Trap
I just tried the .tar.bz2, but it doesn't crash for me. The binary in it seems to be an -Ofast build, which is somewhat broken (but faster
) as I noted earlier. I use the simple "-O3" build, which is noticeably slower. With the -Ofast build, only the VIIC is usable in some stations, some ships are invisible and invincible. It does have better performance. I've actually replaced it with a build using flags suggested by hamei (adding -INLINE -OPT:Olimit=0:roundoff=3 -TARG:platform=IP35:proc=r14000), which seems to work okay. So both of my binaries linked on the previous page now work for me. I don't recommend the -Ofast build; it seems to be broken in many ways.
The error you get is actually similar to one I had while porting it (using round() from C++ is apparently not okay, so I wrote it as a macro using floor()). I wonder if floor() or something else is causing a problem?
The list of required packages is: libSDL, libSDL_mixer, libSDL_net, libSDL_image, libpng, libjpeg, libiconv, libtiff, zlib, libvorbisfile, libvorbis and libogg. But I'm sure that you have all those, or it shouldn't execute at all.