andrewtweber / umoria-color Goto Github PK
View Code? Open in Web Editor NEWMoria: a roguelike Dungeon Crawler game | Umoria - now with COLOR!
Home Page: https://andrew.cool/moria
License: GNU General Public License v3.0
Moria: a roguelike Dungeon Crawler game | Umoria - now with COLOR!
Home Page: https://andrew.cool/moria
License: GNU General Public License v3.0
If I go back one commit to c7f0826
, I can compile the game and run the game (but I don't see any colors). The current version at 5e75295b5
gets about a third of the way through compile before the snprintf()
truncation warnings (all warnings treated as errors here) start to kick in. First one is:
src/dungeon_los.cpp:526:47: error: ‘%s’ directive output may be truncated writing up to 159 bytes into a region of size between 149 and 152 [-Werror=format-truncation=]
526 | (void) snprintf(msg, 160, "%s %s ---pause---", description, obj_string);
This happens on Slackware64-current and KDE Neon 5.22 (like Kubuntu 20.04) GNU/Linuxes.
make
...
[ 28%] Building CXX object CMakeFiles/umoria.dir/src/dungeon.cpp.o
/home/d/umoria-color-5.8.2/src/dungeon.cpp: In function ‘int caveGetTileColor(const Coord_t&)’:
/home/d/umoria-color-5.8.2/src/dungeon.cpp:253:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
253 | if ((game.treasure.list[tile.treasure_id].sub_category_id & (ITEM_SINGLE_STACK_MIN - 1)) < MAX_MUSHROOMS) {
| ^~
/home/d/umoria-color-5.8.2/src/dungeon.cpp:256:13: note: here
256 | default:
| ^~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/umoria.dir/build.make:272: CMakeFiles/umoria.dir/src/dungeon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/umoria.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
It should at least compile and run without errors, even if it just falls back to no colors
This is the same on regular Moria as well, so not really a bug, but could be improved.
Running MINGW=mingw64 cmake .
prints the following text, but does not generate a Makefile:
-- Build type set to 'Release'
-- NOTE: Configuring build for Windows release...
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: C:/msys64/home/Infinity/umoria-color-5.8.3
As a result, make
fails:
make: *** No targets specified and no makefile found. Stop.
Incidentally, it's taken me several hours to even get this far. pacman -S cmake ncurses
installs a version of cmake
that doesn't work. Instead, one must apparently pacman -S --needed base-devel mingw-w64-i686-cmake mingw-w64-i686-toolchain mingw-w64-i686-ninja
Compilation in Linux was smooth and trivial.
When attempting to build using MinGW64, the following error message is displayed.
C:/msys64/home/snicf/umoria-color/src/dungeon.cpp: In function 'int caveGetTileColor(const Coord_t&)':
C:/msys64/home/snicf/umoria-color/src/dungeon.cpp:253:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
253 | if ((game.treasure.list[tile.treasure_id].sub_category_id & (ITEM_SINGLE_STACK_MIN - 1)) < MAX_MUSHROOMS) {
| ^~
C:/msys64/home/snicf/umoria-color/src/dungeon.cpp:256:13: note: here
256 | default:
| ^~~~~~~
cc1plus.exe: all warnings being treated as errors
make[2]: *** [CMakeFiles/umoria.dir/build.make:272: CMakeFiles/umoria.dir/src/dungeon.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/umoria.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
ncurses is installed via mingw-w64-x86_64-ncurses.
Hi! i wanted to compile in OpenBSD 7.3 (latest stable) and i get the following error:
lea@latitude5480 umoria-color $ cd build/
lea@latitude5480 build $ cmake ..
-- Build type set to 'Release'
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:27 (project):
The CMAKE_CXX_COMPILER:
g++
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/lea/src/umoria-color/build/CMakeFiles/CMakeOutput.log".
See also "/home/lea/src/umoria-color/build/CMakeFiles/CMakeError.log".
i added this packages already:
doas pkg_add autoconf-2.71 gcc-11.2.0p6 gmake
i also tried with this commands with same error:
cmake .. -DCMAKE_MAKE_PROGRAM=gmake -DCMAKE_CXX_COMPILER=/usr/local/bin/eg++
Thanks for mantaining this amazing game!
Hello, I would really love to play this game from within a telnet BBS but I'm limited to the old PC 16 color palette. How tough would it be to support this additional color mode? Thanks!
The original spelling 'colour' is correct in standard/British English so there's no reason to say 'the' correct spelling 'color,' since it's a correct spelling (of two correct ones internationally.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.