Advertisement
shadowm

Add-on Configuration Proposal (umcd)

Jan 25th, 2012
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. ################################################################################
  2. #
  3. # _main.cfg
  4. #
  5.  
  6. # Some .pbl WML attributes have been moved to .addon in this file.
  7. # The game rejects loading add-ons without this node.
  8.  
  9. [textdomain]
  10. # Standard old .textdomain definition here.
  11. [/textdomain]
  12.  
  13. # .addon below contains translatable strings which come from the add-on's
  14. # textdomain.
  15.  
  16. #textdomain wesnoth-After_the_Storm
  17.  
  18. # FIXME: maybe #textdomain should be changed to always use the wesnoth- prefix
  19. # without requiring the author to do so explicitly? Also, some sanity checks
  20. # for WesCamp-i18n usage would be nice. In the same vein, maybe the parser
  21. # should be made to reject empty translatable strings literals.
  22.  
  23. [addon]
  24. # Ids may not contain blanks, and must match the directory name.
  25. id=After_the_Storm
  26. name= _ "After the Storm"
  27. description= _ "Test description"
  28. version="1.0.1" # Required for dependency checks
  29.  
  30. type="campaign" # Required, may enable specific behavior later.
  31.  
  32. image="empty.png~BASE64(...)" # New functor to replace the original surface
  33. # with a PNG loaded from a Base64-encoded
  34. # string.
  35. # The same functor could be used in MP add-ons
  36. # to build eras and scenarios that do not
  37. # require installation for displaying custom
  38. # graphics.
  39. # Base64 data can contain plus signs (+), so
  40. # it always needs to be quoted so it doesn't
  41. # get mangled by the preprocessor.
  42. # The image attribute is optional.
  43.  
  44. # .depends[] is used for add-ons that MUST be installed for this add-on
  45. # to be installed (or loaded, when installed outside of wesnoth) at all.
  46. [depends]
  47. id=Project_Y_resources
  48. version_greater_than_or_equal="0.1.0"
  49. [/depends]
  50. # .depends[] items without a specified id are assumed to be the Wesnoth
  51. # engine version.
  52. [depends]
  53. version_greater_than_or_equal="1.11.4"
  54. [/depends]
  55. # .conflicts[] defines add-ons that shouldn't be installed at the same
  56. # time as this one. It's not possible to install this add-on without
  57. # asking the user to remove the conflicting ones, and this add-on won't
  58. # be loaded when there are conflicts either.
  59. [conflicts]
  60. id=Invasion_from_the_Unknown
  61. version_less_than="1.100.0"
  62. [/conflicts]
  63. # .recommends[] defines add-ons that are not required to be installed
  64. # for loading or installing this one, but enhance its functionality,
  65. # and are therefore suggested when selecting it in the add-ons manager.
  66. [recommends]
  67. id=Wesnoth_UMC_Music
  68. version_greater_than_or_equal="1.0"
  69. [/recommends]
  70. # .replaces[] is used for add-ons which must be uninstalled before
  71. # installing this add-on. It could be used when renaming add-ons, for
  72. # example. (FIXME: not sure if there would be other uses or whether
  73. # this should be handled by .conflicts[] instead?)
  74. [replaces]
  75. id=Not_Really_After_the_Storm
  76. version=* # default when .version is missing
  77. [/replaces]
  78. [/addon]
  79.  
  80. # Add-ons can be enabled or disabled by the user as they deem convenient
  81. # (i.e. eras). Preprocessor symbols of the form ADDON:<addon_id> are defined
  82. # with empty contents for add-ons that are enabled.
  83.  
  84. #ifdef ADDON:After_the_Storm
  85.  
  86. # .campaign behaves as usual, perhaps some defaults could be inherited from
  87. # .addon for add-ons that only contain a single campaign (add-ons such as
  88. # IftU, AtS and BMR really contain multiple campaigns).
  89.  
  90. [campaign]
  91. # ...
  92. [/campaign]
  93.  
  94. # .era also behaves as usual
  95.  
  96. [era]
  97. # ...
  98. [/era]
  99.  
  100. # An add-on could theoretically contain both a campaign and an era in the
  101. # same package, but should the user be warned about it by the engine or
  102. # should that be the maintainer's responsibility?
  103.  
  104. # Usual campaign business:
  105.  
  106. #ifdef CAMPAIGN_AFTER_THE_STORM
  107.  
  108. # Or usual MP business:
  109.  
  110. #ifdef MULTIPLAYER
  111.  
  112. ################################################################################
  113. #
  114. # _server.pbl
  115. #
  116. # Its presence implies the add-on dir is a maintainer copy, thus
  117. # exempting the add-on from upgrade checks and requiring confirmation
  118. # before installing from add-ons server to avoid overwriting local
  119. # changes.
  120. #
  121.  
  122. username="shadowmaster" # Forum username or some umcd-specific account username?
  123. password="swordfish" # Account password, instead of per-add-on passphrases.
  124. # Email addresses are no longer associated to individual add-ons but to the
  125. # account used for uploading instead.
  126. translate="true" # Maybe separate the add-on from its translations so the
  127. # latter can be automatically managed by umcd without
  128. # requiring the maintainer to handle updating the.
  129.  
  130. # Much less information than before, as the rest is required to be in
  131. # _main.cfg permanently for all users.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement