Thanks for your interest in contributing to the Umoria project!
The following is a set of guidelines for contributing to Umoria, which is hosted in the Dungeons of Moria organization on GitHub. The following are mostly guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a pull request.
This project and everyone participating in it is governed by the Umoria Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to info@umoria.org.
Currently the Umoria project does not have its own blog or community forum, however, if you wish to discuss the game or ask general questions about Umoria, the best place to start would be the MoriaRL Reddit page. You'll get faster results than by using the resources below.
For more general questions and discussions on the Roguelike genre, please visit the Roguelike Reddit page.
These are both friendly and welcoming communities.
First, and most importantly, the current goal of the project is to not implement new gameplay changes or features to Umoria. The gameplay was fine-tuned over a period of many years and has been in its current state for more than 20 years.
Perhaps at a future date gameplay changes will be considered, but for the moment it should not change.
The focus of current work has been on cleaning up the code base; using modern C/C++ coding styles, updating to compile against C++14, breaking up the many large and complex functions to create smaller more manageable blocks of code. Along with making the code easier to understand these changes will also make any future features easier to implement. One idea is to switch from NCurses to SDL to allow mouse support to be added.
This section guides you through submitting a bug report for Umoria. Following these guidelines helps maintainers and the community understand your report, reproduce the behavior, and find related reports.
Before creating bug reports, please check out the current issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible, as indicated the next section.
Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
Bugs are tracked as GitHub issues. Create an issue explaining the problem, and including any additional details that you think may help maintainers reproduce the problem:
- Use a clear and descriptive title for the issue to identify the problem.
- Describe the exact steps to reproduce the problem (if possible) with as many details as you can.
- Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior.
- Explain which behavior you expected to see instead and why.
- If you're reporting that Umoria crashed, include a crash report with a stack trace from the operating system. On macOS, the crash report will be available in
Console.app
under "Diagnostic and usage information" > "User diagnostic reports". Include the crash report in the issue in a code block, a file attachment, or put it in a gist and provide a link to that gist.
Include details about your configuration and environment:
- Which version of Umoria are you using? You can get the exact version by running
umoria -v
in your terminal. If you compiled directly from the source code, please state that. - What's the name and version of the OS you're using?
- Are you running Umoria in a virtual machine? If so, which VM software are you using and which operating systems and versions are used for the host and the guest?
- Which keyboard layout are you using? Umoria or traditional Roguelike keys (
hjkl
)?
General points worth remembering before making your Pull Request (PR):
- Avoid platform-dependent code.
- Format your source code to the provided
.clang-format
style.
At present there are no strong style requirements, but here are a few ideas that I would like to start thinking about.
- Indentation: one indent should be 4 spaces, so please be careful to avoid the use of tabs.
At present I'm using only standard types, so please do continue this practice. The common standard types are:
int8_t
,int16_t
,int32_t
,int64_t
— signed integersuint8_t
,uint16_t
,uint32_t
,uint64_t
— unsigned integersfloat
— standard 32-bit floating pointdouble
- standard 64-bit floating point
When representing ASCII characters we should be using the char
type.
- Classes / Structs / Types:
CamelCase
, with the first character uppercase. - Functions:
camelCase
, with the first character lowercase. - Variables:
snake_case
, and all lowercase.
I like the easy visual distinction from naming like this. You can see immediately what its function is and without having noisy suffixes.