summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorAndy <andy@teamrubber.com>2019-10-21 21:29:07 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-10-22 19:07:22 +0200
commit0c4d133900803cef234d0ea3ec1dc6b93cb37cc5 (patch)
tree935ed67a02f42bf85d1a90fc7276356451d86393 /CONTRIBUTING.md
parent12e43c697d2ea4a0a9736ab2517a1921e6e690b8 (diff)
downloadopenttd-0c4d133900803cef234d0ea3ec1dc6b93cb37cc5.tar.xz
Doc: CONTRIBUTING.md - add official goals section, link from other sections, minor other tidying
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md130
1 files changed, 108 insertions, 22 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2c7ce528c..8f7ea8920 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -5,21 +5,26 @@ Looking to contribute something to OpenTTD? **Here's how you can help.**
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
-Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
+Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project.
+In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
## Using the issue tracker
The [issue tracker](https://github.com/OpenTTD/OpenTTD/issues) is the preferred channel for [bug reports](#bug-reports), but please respect the following restrictions:
-* Please **do not** use the issue tracker for help playing or using OpenTTD. Please try [irc](https://wiki.openttd.org/IRC_channel), or the [forums](https://www.tt-forums.net/)
+* Please **do not** use the issue tracker for help playing or using OpenTTD.
+Please try [irc](https://wiki.openttd.org/IRC_channel), or the [forums](https://www.tt-forums.net/)
* Please **do not** derail or troll issues. Keep the discussion on topic and respect the opinions of others.
* Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
-Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead. We reserve the right to delete comments which violate this rule.
+Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead.
+We reserve the right to delete comments which violate this rule.
+
+* Please **do not** open issues or pull requests regarding add-on content in NewGRF, GameScripts, AIs, etc.
+These are created by third-parties. Please try [irc](https://wiki.openttd.org/IRC_channel) or the [forums](https://www.tt-forums.net/) to discuss these.
-* Please **do not** open issues or pull requests regarding add-on content in NewGRF, GameScripts, AIs, etc. These are created by third-parties. Please try [irc](https://wiki.openttd.org/IRC_channel) or the [forums](https://www.tt-forums.net/) to discuss these.
## Bug reports
@@ -69,13 +74,15 @@ Example:
> causing the bug, and potential solutions (and your opinions on their
> merits).
+
## Feature requests
-Before opening a feature request, please take a moment to find out whether your idea fits with the scope and aims of the project.
+Before opening a feature request, please take a moment to find out whether your idea fits with the [scope and goals](./CONTRIBUTING.md#project-goals) of the project.
It's up to *you* to make a strong case to convince the project's developers of the merits of this feature.
-Please provide as much detail and context as possible. This means don't request for a solution, but describe the problem you see and how/why you think it should be fixed.
+Please provide as much detail and context as possible.
+This means don't request for a solution, but describe the problem you see and how/why you think it should be fixed.
For feature request we have a strict policy.
@@ -88,14 +95,18 @@ Many of those ideas etc do have a place on the [forums](https://www.tt-forums.ne
It's usually best discuss in [irc](https://wiki.openttd.org/IRC_channel) before opening a feature request or working on a large feature in a fork.
Discussion in irc can take time, but it can be productive and avoid disappointment :)
+
## Pull requests
Good pull requests—patches, improvements, new features—are a fantastic help.
-They should remain focused in scope and avoid containing unrelated commits.
-**Please ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
+Pull requests should fit with the [goals of the project](./CONTRIBUTING.md#project-goals).
-Please adhere to the [coding guidelines](#code-guidelines) used throughout the project (indentation, accurate comments, etc.) and any other requirements (such as test coverage).
+**Please do ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
+
+Every pull request should have a clear scope, with no unrelated commits.
+
+[Code style](https://wiki.openttd.org/Coding_style) must be complied with for pull requests to be accepted; this also includes [commit message format](https://wiki.openttd.org/Coding_style#Commit_message).
Adhering to the following process is the best way to get your work included in the project:
@@ -147,34 +158,109 @@ git push
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description against the `master` branch.
-**IMPORTANT**: By submitting a patch, you agree to the [License](#license).
+**IMPORTANT**: By submitting a pull request or patch, you agree to the [License](#license) and the [Privacy Notice](CONTRIBUTING.md#privacy-notice).
-### Privacy Notice
-We would like to make you aware that contributing to OpenTTD via git will permanently store the name and email address you provide as well as the actual changes and the time and date you made it inside git's version history.
+### Pull request validation
-This is inevitable, because it is a main feature of git. If you are concerned about your privacy, we strongly recommend to use "Anonymous &lt;anonymous@openttd.org&gt;" as the git commit author. We might refuse anonymous contributions if malicious intent is suspected.
+Continuous integration (CI) tools monitor pull requests, and help us identify build and code quality issues.
-Please note that the contributor identity, once given, is used for copyright verification and to provide proof should a malicious commit be made. As such, the [EU GDPR](https://www.eugdpr.org/key-changes.html) "right to be forgotten" does not apply, as this is an overriding legitimate interest.
+The results of the CI tests will show on your pull request.
-Please also note that your commit is public and as such will potentially be processed by many third-parties. Git's distributed nature makes it impossible to track where exactly your commit, and thus your personal data, will be stored and be processed. If you would not like to accept this risk, please do either commit anonymously or refrain from contributing to the OpenTTD project.
+By clicking on Details you can further zoom in; in case of a failure it will show you why it failed.
+In case of success it will report how awesome you were.
-### Pull request validation
+Tip: [commit message format](https://wiki.openttd.org/Coding_style#Commit_message) is a common reason for pull requests to fail validation.
-Continuous integration (CI) tools monitor pull requests, and help us identify build and code quality issues.
-The results of the CI tests will show on your pull request.
+### Are there any development docs?
+
+There is no single source for OpenTTD development docs. It's a complex project with a long history, and multiple APIs.
+
+A good entry point is [Development](https://wiki.openttd.org/Development) on the OpenTTD wiki; this provides links to wiki documentation and other sources.
+
+The GitHub repo also includes some non-comprehensive documentation in [/docs](./docs).
+
+You may also want the guide to [compiling OpenTTD](./COMPILING.md).
+
+
+## Project goals
+
+### What are the goals of the offical branch?
+
+The main goals of the offical branch are:
+
+- Stay faithful to the original gameplay from Transport Tycoon Deluxe
+- Improve the user interface
+- Allow extending the gameplay with add-ons / mods via supported content APIs
+- Provide a (relatively) stable core for both players of the official branch, and for authors of add-ons and maintainers of patchpacks
+
+In contrast, extending or altering the gameplay of the base game is not encouraged.
+
+The rationale behind these goals is that people have different opinions about what OpenTTD is and what it should be.
+When it comes to gameplay, there are at least these groups of people:
-By clicking on Details you can further zoom in; in case of a failure it will show you why it failed. In case of success it will report how awesome you were.
+- *Model railway (mostly singleplayer)*: build "realistic" landscapes, roleplay a world, or even replicate historical scenarios
+- *Economical challenge (mostly singleplayer)*: run a business with economical challenges
+- *Transport challenge (singleplayer or cooperative multiplayer)*: build efficient track layouts with high cargo throughput and tons of vehicles
+- *Competitive speed run (competitive multiplayer)*: maximize some goal in some limited amount of time
-## Code guidelines
+When it comes to gameplay features there are at least these groups of interests:
-[Code style](https://wiki.openttd.org/Coding_style) must be adhered to for pull requests to be accepted
+- *Control freak:* micromanagement like conditional orders, refitting and loading etc.
+- *Casual:* automatisation like cargodist, path based signalling etc.
-## License
+To please everyone, the official branch tries to stay close to the original gameplay; after all, that is what everyone brought here.
+The preferred method to alter and extent the gameplay is via add-ons like NewGRF and GameScripts.
+
+For a long time, the official branch was also open to features which could be enabled/disabled, but the corner-cases that came with some configurations have rendered some parts of the code very complicated.
+Today, new features have to work with all the already existing features, which is not only challenging in corner cases, but also requires spending considerable more work than just "making it work in the game mode that I play".
+
+The preferred method to introduce new gameplay features is to extend the content APIs, supporting ever more add-on content / mods.
+
+This moves conflict-solving away from the codebase to content authors / players.
+It is more accepted for add-ons not working together than the base game not working with certain setting combinations.
+
+In general the game should allow anything that doesn't violate basic rules, but it should warn players if they take potentially dangerous or "stupid" actions.
+
+For example, players are not prevented from starting vehicles without orders, but will receive a warning about vehicles having too few orders.
+This lack of limitation has led to players challenging themselves to create networks where all vehicles have no orders, increasing gameplay possibilities.
+
+### I do not agree with the goals of the offical branch, what can I do instead?
+
+Fork! There is a rich history of experimental patches for OpenTTD.
+
+Many of these will never be accepted for core, but are creative and interesting ways to modify OpenTTD.
+
+Sometimes patches are combined into long-running patchpacks, modified OpenTTD versions which can be downloaded by anyone, or modified OpenTTD clients for dedicated multiplayer servers.
+
+One of the reasons to keep core relatively stable is to make life easier for patch authors and patchpack maintainers where possible.
+
+Patchpack discussions and related topics may be found in community sites such as [TT-Forums development section](https://www.tt-forums.net/viewforum.php?f=33).
+
+
+## Legal stuff
+
+### License
By contributing your code, you agree to license your contribution under the [GPL v2](https://github.com/OpenTTD/OpenTTD/blob/master/COPYING).
+
+### Privacy Notice
+
+We would like to make you aware that contributing to OpenTTD via git will permanently store the name and email address you provide as well as the actual changes and the time and date you made it inside git's version history.
+
+This is inevitable, because it is a main feature of git.
+If you are concerned about your privacy, we strongly recommend to use "Anonymous &lt;anonymous@openttd.org&gt;" as the git commit author. We might refuse anonymous contributions if malicious intent is suspected.
+
+Please note that the contributor identity, once given, is used for copyright verification and to provide proof should a malicious commit be made.
+As such, the [EU GDPR](https://www.eugdpr.org/key-changes.html) "right to be forgotten" does not apply, as this is an overriding legitimate interest.
+
+Please also note that your commit is public and as such will potentially be processed by many third-parties.
+Git's distributed nature makes it impossible to track where exactly your commit, and thus your personal data, will be stored and be processed.
+If you would not like to accept this risk, please do either commit anonymously or refrain from contributing to the OpenTTD project.
+
+
### Attribution of this Contributing Guide
This contributing guide is adapted from [Bootstrap](https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md) under the [Creative Commons Attribution 3.0 Unported License](https://github.com/twbs/bootstrap/blob/master/docs/LICENSE) terms for Bootstrap documentation.