Git Product home page Git Product logo

umoria-color's People

Contributors

andrewtweber avatar dbtick avatar eli-the-bearded avatar grimler91 avatar h3xx avatar jhirschberg70 avatar mrcook avatar omalley avatar polluks avatar russell-taylor avatar sdicke avatar steils avatar whitehara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

umoria-color's Issues

snprintf version doesn't compile for me

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);

compilation error

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

Unable to compile on Windows

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.

Compilation Issues - Windowns

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.

Compile umoria-color on OpenBSD 7.3 (also on all recent linux systems)

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!

FR - 16 color cp437 support?

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!

'correct' spelling

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.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.