User:Shadowm/PatchSubmissionGuidelines

From The Battle for Wesnoth Wiki
< User:Shadowm
Revision as of 22:14, 27 December 2012 by Shadowm (talk | contribs) (Created page with '''This is an updated version of the PatchSubmissionGuidelines I'm preparing here. This document is '''not''' authoritative until it replaces the current [[PatchSubmissionGuid…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is an updated version of the PatchSubmissionGuidelines I'm preparing here. This document is not authoritative until it replaces the current PatchSubmissionGuidelines at its current location.

  • All patches should be submitted at patches.wesnoth.org
    You may post them in the Coder's Corner forum for discussion too, but we need to track their status, and patches.wesnoth.org helps a lot.
  • Add entries to the changelogs summarizing your changes if necessary
    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.
  • When adding new C++ source code files, make sure to update the most commonly used project files
    The development team primarily uses CMake, SCons, and Visual C++ 2008. The relevant files are src/CMakeLists.txt, src/SConscript, and projectfiles/VC9/wesnoth.vcproj. You may take a 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.
  • C++ source code patches must not generate new warnings
    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.
  • Add yourself to the game credits
    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.
  • Patches should be generated using "svn diff"
    SVN provides a handy command to generate a unified diff from your local changes. Running svn diff > mypatch.patch is enough to create a proper patch file for submitting. It even records precisely the commit against which it was generated, which makes things easier for us.
  • When changing or adding WML features, please provide directions for updating the wiki when the patch is committed
    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.
  • Be patient, sometimes we are not very responsive
  • Don't be suprised if we discuss the patch a lot
    Thus, you should leave us a way to contact you, either a forum nick, an email adress, or submit with a registered Gna.org account. We recommend that you join the #wesnoth-dev channel on irc.freenode.net regularly so we can contact you in real time if needed.
  • Sometimes patches are rejected, don't be suprised if this happens

See also