Debian Codegraph @

CONTRIBUTING.md

raw symbols SCIP
1 # Contributing to The ioquake3 Project
2
3 The following is a set of guidelines for contributing to ioquake3 which is hosted in the [The ioquake Group](https://github.com/ioquake) on Github. The intent of this project is to provide a baseline engine which may be used for further development and to play Quake 3: Arena, Team Arena, and mods. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
4
5 ## Table Of Contents
6
7 [I don't want to read this whole thing, I just have a question!!!](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
8
9 [How Can I Contribute?](#how-can-i-contribute)
10 * [On AI/LLM Contributions](#on-aillm-contributions)
11 * [Policy](#policy)
12 * [Reasoning](#reasoning)
13 * [Responsibility](#responsibility)
14 * [What about translation tools, for non-English speakers?](#what-about-translation-tools-for-non-english-speakers)
15
16 * [Reporting Bugs](#reporting-bugs)
17 * [Before Submitting A Bug Report](#before-submitting-a-bug-report)
18 * [How Do I Submit A (Good) Bug Report?](#how-do-i-submit-a-good-bug-report)
19 * [Suggesting Enhancements](#suggesting-enhancements)
20
21 * [Helping Others](#helping-others)
22 * [Tip ioquake3 developers](#tip-ioquake3-developers)
23 * [Social Media](#social-media)
24
25 * [Your First Code Contribution](#your-first-code-contribution)
26 * [Local development](#local-development)
27 * [Pull Requests](#pull-requests)
28 * [Technical Guidelines](#technical-guidelines)
29
30 * [Building Official Installers](#building-official-installers)
31
32 ## I don't want to read this whole thing I just have a question!!!
33
34 > **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
35
36 We have an official message board where the community provides helpful advice if you have questions.
37
38 * [Discourse, the official ioquake message board](https://discourse.ioquake.org)
39
40 If you'd prefer to chat live with other users, sysadmins, and developers, we have IRC and Discord, with a bridge between the two:
41 * IRC: We're on Libera Chat (```irc.libera.chat```) in ```#ioquake3```
42 * Or you can join our Discord [via this link](https://discord.gg/fPaGNuy)
43 With either of these services it might take a while before someone responds to your question, if you can't wait for an answer on Discord or IRC, [use the forums](https://discourse.ioquake.org)
44
45
46 ## How Can I Contribute?
47
48 ### On AI/LLM Contributions
49
50 #### Policy
51 Do not submit code, pull requests, issues, or other contributions that have been developed with the
52 assistance of generative "AI" or other similar assistive tools (such as Microsoft Copilot, Anthropic
53 Claude, ChatGPT, etc).
54
55 **If you submit contributions using these tools, you may be banned from the project.**
56
57 #### Reasoning
58 This policy is here because:
59
60 * Code and other contributions made by these tools are likely to violate licenses and copyright
61 because they plagiarize the original sources without permission.
62
63 * The datacenters that are used to train and operate these tools have an enormous impact on limited
64 resources of both energy and water.
65
66 * Generated code may include security vulnerabilities.
67
68 * Making mistakes is human. Generative tools do not have the ability to reason and
69 understand mistakes they make.
70
71 * Our time as contributors is valuable and the vast majority of our work is unpaid. When you
72 submit contributions generated by these tools, you waste our resources to review them.
73 This time is much better spent working on contributions from humans.
74
75 #### Responsibility
76 When you submit contributions to the ioquake3 project you are affirming that the contributions are:
77
78 * Solely the work of people.
79 * Not made with generative "AI" technologies.
80
81 **If you fail to abide by these responsibilites you may be banned from the project.**
82
83 #### What about translation tools, for non-English speakers?
84
85 The only acceptable use is with human language translation services for facilitating communication
86 between people. Google translate, DeepL, and so on, are acceptable for these uses.
87
88
89 Unsure where to begin contributing to ioquake3?
90
91 Check out our issues and pull requests, you can review and make new suggestions.
92
93 We also have a label called [new contributor](https://github.com/ioquake/ioq3/issues?q=state%3Aopen%20label%3A%22new%20contributor%22) that might be a good starting point.
94
95 ### Reporting Bugs
96
97 This section guides you through submitting a bug report for ioquake3. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:.
98
99 Before creating bug reports, please check [this list](#before-submitting-a-bug-report) 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](#how-do-i-submit-a-good-bug-report). Fill out [the required template](ISSUE_TEMPLATE.md), the information it asks for helps us resolve issues faster.
100
101 > **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.
102
103 #### Before Submitting A Bug Report
104
105 * **Check the latest version** The version in our installers is from 2009! Check if you can reproduce the problem [in the latest build of ioquake3](http://ioquake3.org/get-it/).
106 * **Search the [forum](https://discourse.ioquake.org)** for your questions and problems.
107 * **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aioquake)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.
108
109 #### How Do I Submit A (Good) Bug Report?
110
111 Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the template](ISSUE_TEMPLATE.md).
112
113 Explain the problem and include additional details to help maintainers reproduce the problem:
114
115 * **Use a clear and descriptive title** for the issue to identify the problem.
116 * **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you started ioquake3, e.g. which command exactly you used in the terminal, or how you started ioquake3 with a shortcut. When listing steps, **don't just say what you did, but explain how you did it**. For example, if you started a new map, explain if you used the menu, or a keyboard macro, or a / command in the ioquake3 console, and if so which one?
117 * **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
118 * **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
119 * **Explain which behavior you expected to see instead and why.**
120 * **Include screenshots** which show you following the described steps and clearly demonstrate the problem.
121 * **If you're reporting that ioquake3 crashed**, include a crash report with a stack trace from the operating system. Include the crash report in the issue in a [code block](https://help.github.com/articles/markdown-basics/#multiple-lines), a [file attachment](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/), or put it in a [gist](https://gist.github.com/) and provide link to that gist.
122 * **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
123
124 Provide more context by answering these questions:
125
126 * **Did the problem start happening recently** (e.g. after updating to a new version of ioquake3) or was this always a problem?
127 * If the problem started happening recently, **can you reproduce the problem in an older version of ioquake3?** What's the most recent version in which the problem doesn't happen?
128 * **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
129 * If the problem is related to working with third party pk3s and mods (e.g. opening and editing files), **does the problem happen with baseq3?** We need to be able to reproduce the issue with baseq3, usually.
130
131 Include details about your configuration and environment:
132
133 * **Which version of ioquake3 are you using?**
134 * **What's the name and version of the OS you're using?**
135 * **What graphics card or chipset is in your computer?**
136
137 ### Suggesting Enhancements
138
139 This section guides you through submitting an enhancement suggestion for ioquake3, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.
140
141 Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](ISSUE_TEMPLATE.md), including the steps that you imagine you would take if the feature you're requesting existed.
142
143 #### Before Submitting An Enhancement Suggestion
144
145 * **Check the latest test build** you might discover that the enhancement is already available.
146 * **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aioquake)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
147
148 #### How Do I Submit A (Good) Enhancement Suggestion?
149
150 Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the ioquake3 repository and provide the following information:
151
152 * **Use a clear and descriptive title** for the issue to identify the suggestion.
153 * **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
154 * **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
155 * **Describe the current behavior** and **explain which behavior you expected to see instead** and why.
156 * **Include screenshots** which help you demonstrate the steps or point out the part of ioquake3 which the suggestion is related to.
157 * **Explain why this enhancement would be useful** to most ioquake3 users.
158 * **Specify which version of ioquake3 you're using.**
159 * **Specify the name and version of the OS you're using.**
160
161 ### Helping others
162 People have questions, they ask them on our [forums](https://discourse.ioquake.org/), [Discord](https://discord.gg/fPaGNuy), and on other services and websites. Answer them if you can, and suggest they get added to the [Players Guide](https://ioquake3.org/help/players-guide/) or [Sys Admin Guide](https://ioquake3.org/help/sys-admin-guide/) if the same questions keep coming up. If the answers are already in the one of our guides, copy and paste the answer and then link the people asking questions to those pages if they have more questions.
163
164 ### Tip ioquake3 developers
165 Money buys servers, hosting, and time. [Support ioquake3 developers directly through the links on this page](https://ioquake3.org/help/get-involved/).
166
167 ### Social Media
168 Follow ioquake3 [on Mastodon](https://mastodon.social/@ioquake3) and [on Blue Sky](https://bsky.app/profile/ioquake3.org). Let other Quake 3 players know about ioquake3, some people are still playing with id's client!
169
170 ### Your First Code Contribution
171
172 #### Local development
173
174 ioquake3 can be developed locally. For instructions on how to do this, read the README.md.
175
176 ### Pull Requests
177
178 * Fill in [the required template](PULL_REQUEST_TEMPLATE.md)
179 * Do not include issue numbers in the PR title.
180
181 ### Technical Guidelines
182
183 * Please apply the prevailing coding style in the file/function you are adjusting, as much as is practical
184 * Avoid making whitespace/style changes to existing code, as much as is practical
185 * Do not surround your additions in "tag" style comments e.g. "// l33tc0der67: frob the disfunctionator";
186 credit for your contributions is automatically recorded in source control
187 * Ensure that new code is built by the continuous integration service
188
189 ## Building Official Installers
190
191 This is a reminder for how official installers should be built:
192
193 * Please include the id patch pk3s in your installer, which are available
194 from http://ioquake3.org/patch-data/ subject to agreement to the id
195 EULA. Your installer shall also ask the user to agree to this EULA (which
196 is in the /web/include directory for your convenience) and subsequently
197 refuse to continue the installation of the patch pk3s and pak0.pk3 if they
198 do not.
199
200 * Please don't require pak0.pk3, since not everyone using the engine
201 plans on playing Quake 3 Arena on it. It's fine to (optionally) assist the
202 user in copying the file or tell them how.
203
204 * It is fine to just install the binaries without requiring id EULA agreement,
205 providing pak0.pk3 and the patch pk3s are not referred to or included in the
206 installer.
207
208 * Please include at least a libSDL2 so/dylib/dll on every platform.
209
210 * Please include an OpenAL so/dylib/dll, since every platform should be using
211 it by now.
212
213 * Please be prepared to alter your installer on the whim of the maintainers.
214
215 * Your installer will be mirrored to an "official" directory, thus making it
216 a done deal.
217