![]() |
VOOZH | about |
Submitting a patch for a large and mature project like Wesnoth can be an even more daunting task than writing the code it delivers.
This page provides some advice and requirements for prospective code contributors seeking the best chance of acceptance for their patches.
| Are you a newcomer to Git or GitHub, or to the Battle for Wesnoth project? |
|---|
| If so, please see WesnothRepository. |
You may post them in the Coder's Corner forum for discussion too, but we need to track their status, and GitHub is better suited for that. See the WesnothRepository page for help with Git and GitHub.
This is explained in greater detail in the DeveloperGuide section about commits and commit formatting.
The changelog file contains a list of outstanding changes that is published with every release. If you are fixing a bug or adding a feature that is particularly visible or important for players, you should also add an entry to the players_changelog file. See the relevant DeveloperGuide section as well.
The development team primarily uses CMake and SCons. The relevant files are src/CMakeLists.txt and src/SConscript. You might look at how existing source code files are handled in each build script to get an idea of the best way to add your own.
Please consider updating the other build environments under projectfiles/, e.g. Visual C++, as well.
Wesnoth has a large number of compiler warnings enabled, and all of them are useful. If your code causes new warnings during build, you will be required to fix them.
Including your name and/or username(s) makes it easier for the development team and the community at large to recognize your contributions. New contributors (i.e., those without commit access) should add themselves to the Miscellaneous Contributors section of the credits file (data/core/about.cfg), making sure to follow alphabetical order with respect to the first character that will be displayed.
This allows us to provide content creators with up-to-date information about WML features, even if you cannot be around in time for the commit or the next release.
The Wesnoth developers live on different locations across the globe and have other matters to attend to, most of the time. It may happen that your patch is assigned to a developer who is currently unable to dedicate much time to reviewing it. If you feel that it takes much too long for us to respond, contact us in #wesnoth-dev on irc.libera.chat.
Thus, you should leave us a way to contact you, by noting your forums username or email address. We recommend that you join the #wesnoth-dev channel on irc.libera.chat regularly so we can contact you in real time if needed.
If your patch introduces new errors or bugs, if the feature you implemented isn't considered an improvement, or if we couldn't contact you with our questions and recommendations, the pull request will be denied. This can usually be averted if you discuss your idea on #wesnoth-dev, where the developers will point out these issues. If your pull request is denied, don't let that discourage you, though!
...the easiest way is to ask the developers on the aforementioned IRC channel, #wesnoth-dev. You can join #wesnoth-dev in your Web browser via this link:
...please prefix their IRC nick in front of your question -- else your message could be overlooked.