compiledb
NetHack
compiledb | NetHack | |
---|---|---|
6 | 63 | |
1,406 | 3,059 | |
2.1% | 1.6% | |
0.0 | 9.8 | |
5 months ago | 4 days ago | |
Python | C | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
compiledb
-
Eglot + clangd not working for NetHack code base
An update: I am now able to make everything work by generating `compile_commands.json` using compiledb. I'm aware that there is another tool Bear but for some reason it generates an empty `compile_commands.json` file for me.
-
STM32CubeIDE extract compile_commands.json
I have tried compiledb as well, but it currently fails to correctly get the backslashes correctly on Windows, as noted in this issue.
-
Lsp-mode when I can't generate compile_commands.json
There is also this tool which claims to support Windows. However:
-
clangd beginner problem
There is also compiledb https://github.com/nickdiego/compiledb that works directly with your make file to generate the compile_commands.json.
-
How can I get vim-lsp to recognize OpenCV?
Have you generated a compile_commands.json? They're necessary for your LSP provider to know which paths to search for headers. They're generated by default if you're using CMake (I believe), otherwise check out compiledb or Bear.
-
CLion users: Is CLion a good choice for development in an old project that can only be built with a complicated mess of makefiles?
If you can get compiledb to work with your make project and generate the correct file, it should be able to figure out project quite well
NetHack
-
The Story of Rogue
Yes and still under active development [1]! We also just finished the 2024 November NetHack Tournament (TNNT) [2]! I played in the tournament for the first time this year. I had one near-win with a very challenging Monk (I was doing a bunch of conducts [3]) who unfortunately died to the infamous Wizard of Yendor (Rodney as we call him). I also had a winning run with a Wizard which unfortunately finished a few hours after the deadline at the end of the tournament, so sadly that one didn't count!
Next year I hope to have a bit more time to play so that I can record a win in regulation time!
[1] https://github.com/nethack/nethack
[2] https://tnnt.org
[3] https://nethackwiki.com/wiki/Conduct
-
Installing NH 3.7 on Win11 without using Linux?
download NetHack sources (https://github.com/NetHack/NetHack -> Code -> Download ZIP, unpack them on your computer)
-
Eglot + clangd not working for NetHack code base
My configuration of Eglot is simple: (use-package eglot :hook (c-mode . eglot-ensure)). And it works for a single c file. But when I use this setup to read the code of NetHack, it doesn't work for linting and definition finding (M-.), even though eglot connection has no problem. I observed the same problems when reading the code of SQLite. Some specific problems I observed:
-
First version of nethack with a bestiary?
Since nethack 3.1.0, the source for nethack's "bestiary" has been dat/data.base, in plain text, processed into a file named "data" when building the program. The unprocessed file intended for the nethack's next version can be seen at https://github.com/NetHack/NetHack/blob/NetHack-3.7/dat/data.base (it's quite long).
-
NetHack splash screen source? (question in comments)
I am not really 100% sure what you are looking for. Are you looking for the actual picture? It is built during compilation from this uuencoded file https://github.com/NetHack/NetHack/blob/NetHack-3.7/win/win32/splash.uu
- (...) instead of one single extremely large structure named 'g' to house all of the relocated global variables, they are distributed into several ga through gz. (...) To make things easy for the developer, each variable is placed into the struct corresponding to the starting letter of the variable.
-
Cant go down staircase?
xNetHack is based on NetHack 3.7.0, and there was a bug (now fixed) in NetHack 3.7.0 that caused stair destinations to be messed up after a game is recovered. I wonder that has happened here: perhaps you are playing a version of xNetHack that inherited the bug from NetHack 3.7.0, this is a recovered game.
-
toot toot
They won't be afraid of music in 3.7.
-
Minetown Shop with a closet, uses other than YASD for shoplifting?
This is a bug that was fixed in the upcoming 3.7, in this commit. Basically, if the random filler created a space that was made inaccessible by the fixed level design getting overlaid on top of the random filler, a door could be created to make that space accessible.
-
YAAP: Elvish Atheist Wizard
There is not a comprehensive list of changes in existence. This one comes close but doesn't contain everything https://github.com/NetHack/NetHack/blob/NetHack-3.7/doc/fixes3-7-0.txt
What are some alternatives?
Bear - Bear is a tool that generates a compilation database for clang tooling.
angband - A free, single-player roguelike dungeon exploration game
conan - Conan - The open-source C and C++ package manager
EvilHack - A variant of NetHack that is designed to be a much more challenging experience than the original, drawing inspiration and content from various existing variants along with adding unique and never-before-seen custom content.
scan-build - Clang's scan-build re-implementation in python
crawl - Dungeon Crawl: Stone Soup official repository
gcovr - Generate code coverage reports with gcc/gcov
BrogueCE - Brogue: Community Edition - a community-lead fork of the much-loved minimalist roguelike game
run-clang-format - A wrapper script around clang-format, suitable for linting multiple files and to use for continuous integration
UnNetHack - NetHack fork that is in development
pmbuild - A simple, configurable and extendible build system for gamedev.
BotHack - BotHack – A Nethack Bot Framework