Creating .accomplishment files

As you now know, .accomplishment files are crucial for the Accomplishments System. This is where all essential data about the accomplishment and how it is achieved is provided.

Technically, an .accomplishment file is a KeyFile containing of one group "accomplishment" and a bunch of values.

In practice, this means that .accomplishment files have following structure (This is not a working example, but a demonstration of syntax):

[accomplishment]
key = value
another_key = different value
title = My Accomplishment
multiline_key = This value is
    spread through
    multiple lines
    with each line having a tab at the beginning.
one_more_key: value

Note that both '=' sign and ':' can be used.

Keys can have a value spread across multiple lines, to do so, prepend all additional lines with a <TAB>.

Fields

There is a number of important fields you need to include in your accomplishment field. These include:

Basic information fields

Core settings

Detailed information

Examples

Global

[accomplishment]
title=Filed First Bug
description=Filed your first bug in Ubuntu
collection=ubuntu-community
category=QA
depends=ubuntu-community/registered-on-launchpad
needs-signing=true
needs-information=launchpad-email
summary = A bug is a defect in a piece of software. Filing a bug means that you let the Ubuntu project know about one of these defects. There are a few different ways in which you can file a bug, but we recommend you use a tool called <tt>ubuntu-bug</tt> that comes pre-installed on all Ubuntu systems. You can file a bug in a more graphical way by using the Report a Problem option in the Help menu of an application.
steps: Open up a terminal by clicking the Ubuntu button and typing 'terminal' into the dash.
        Type in <tt>ubuntu-bug</tt> and then the name of the package you want to file a bug against (e.g. 'ubuntu-bug unity' for Unity).
        Follow the instructions in Launchpad.
tips: Be sure to add a good description for your bug.
        Include a set of steps to follow to show the developer how to re-produce the bug.
pitfalls: Don't file a bug if it has already been filed.
        Don't respond to bugs with "me too". This is not helpful to developers.
links: http://www.ubuntu.com
        http://www.jonobacon.org
help = #ubuntu-testing on Freenode

The code above is a complete working example of a global accomplishment.

Local

[accomplishment]
title=Beginner Minesweeper
description=Win a Small Gnomine game
collection=gnomine
category=Gnomine
icon=default.png
summary = You can achieve this accomplishment by finishing a Small game in Gnomine.
steps: Start Gnomine.
    Choose 8x8 (small) game.
    Find all hidden mines!
tips = You can learn the gameplay rules from Gnomine help.

Another example - this time it's a local accomplishment (note that needs-signing is omitted). It does not use all available keys, only what is reasonable in this particular case.

The next chapter will learn you how to prepare scripts for your accomplishment(s).

Accomplishments/Creating/Guide/AccomplishmentFile (last edited 2012-11-17 13:15:50 by zilvador)