uploading_to_assetlib.rst 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .. _doc_uploading_to_assetlib:
  2. Submitting to the Asset Library
  3. ===============================
  4. Introduction
  5. ------------
  6. This tutorial aims to serve as a guide on how you can submit your own assets
  7. to the Godot Asset Library and share them with the Godot community.
  8. As mentioned in the :ref:`doc_using_assetlib` document, in order to be able to
  9. submit assets to the AssetLib, you need to have a registered account, and be
  10. logged in.
  11. Submission guidelines
  12. ---------------------
  13. Before submitting your asset, please ensure it follows all of the
  14. requirements, and also consider following the recommendations.
  15. Requirements
  16. ~~~~~~~~~~~~
  17. Generally speaking, most assets people submit to the asset library
  18. are accepted. However, in order for your asset to be accepted, there
  19. are a few requirements your asset needs to meet to be approved.
  20. * The asset must work. If the asset doesn't run or otherwise doesn't
  21. work in the specified Godot version, then it will be rejected.
  22. * No submodules, or any submodules must be non-essential. GitHub
  23. does not include submodules in the downloaded ZIP file, so if the
  24. asset needs the contents of the submodule, your asset won't work.
  25. * The license needs to be correct. The license listed on the asset
  26. library must match the license in the repository.
  27. * Do not set the download commit to "master". The asset library validates
  28. all assets with a SHA256 hash, so the version hosted on GitHub needs
  29. to be *exactly* the same. Instead of "master", either specify a commit
  30. hash, or tag versions and specify a version number.
  31. * Use proper English for the name and description of your asset.
  32. This includes using correct capitalization, and using full
  33. sentences in the description.
  34. * The icon link must be a direct link. For icons hosted on GitHub, the
  35. link must start with "raw.githubusercontent.com", not "github.com".
  36. Recommendations
  37. ~~~~~~~~~~~~~~~
  38. These things are not required for your asset to be approved, but
  39. if you follow these recommendations, you can help make the asset
  40. library a better place for all users.
  41. * Fix or suppress all script warnings. The warning system is there to
  42. help identify issues with your code, but people using your asset
  43. don't need to see them.
  44. * Make your code conform to the official style guides. Having a
  45. consistent style helps other people read your code, and it also helps
  46. if other people wish to contribute to your asset. See: the
  47. :ref:`doc_gdscript_styleguide` or the :ref:`doc_c_sharp_styleguide`.
  48. * If your asset is a library for working with other files,
  49. consider including example files in the asset.
  50. * The icon should be a square, its aspect ratio should be 1:1. It should
  51. also ideally have a minimum resolution of 64x64 pixels.
  52. * While the asset library allows more than just GitHub, consider
  53. hosting your asset's source code on GitHub. Other services may not
  54. work reliably, and a lack of familiarity can be a barrier to contributors.
  55. Submitting
  56. ----------
  57. Once you are logged in, you will be able to head over to the "Submit Assets" page
  58. of the AssetLib, which will look like this:
  59. |image0|
  60. While it may look like a lot (and there is more as you scroll down), each field is
  61. described in terms of what you should put in. We will nonetheless go over what
  62. is required in the submission form here as well.
  63. * **Asset Name**:
  64. The name of your asset. Should be a unique, descriptive title of
  65. what your asset is.
  66. * **Category**:
  67. The category that your asset belongs to, and will be shown in
  68. search results. The category is split into **Addons** and **Projects**.
  69. In-editor, assets of the Project type (Templates, Demos, Projects) only show
  70. up when viewing the AssetLib from the Project Manager, while assets of the
  71. Addon type will only be visible from inside a project.
  72. * **Godot version**:
  73. The version of the engine that the asset works with.
  74. Currently, it's not possible to have a single asset entry contain downloads for
  75. multiple engine versions, so you may need to re-submit the asset multiple times,
  76. with an entry for each Godot version it supports. This is particularly important
  77. when dealing with major versions of the engine, such as Godot 2.x and Godot 3.x.
  78. * **Version**:
  79. The version number of the asset. While you are free to choose
  80. and use any versioning scheme that you like, you may want to look into
  81. something such as `SemVer <https://semver.org>`_ if you want your asset's
  82. versioning scheme to be clear and consistent. Note that there is also an
  83. internal version number, incremented every time the asset download URL is
  84. changed or updated.
  85. * **Repository host**:
  86. Assets uploaded to the AssetLib are not hosted on it
  87. directly. Instead, they point to repositories hosted on third-party Git providers,
  88. such as GitHub, GitLab or Bitbucket. This is where you choose which provider
  89. your asset uses, so the site can compute the final download link.
  90. * **Repository URL**:
  91. The URL to your asset's files/webpage. This will vary
  92. based on your choice of provider, but it should look similar to `https://github.com/<user>/<project>`.
  93. * **Issues URL**:
  94. The URL to your asset's issue tracker. Again, this will differ
  95. from repository host to repository host, but will likely look similar to
  96. `https://github.com/<user>/<project>/issues`. You may leave this field empty
  97. if you use your provider's issue tracker, and it's part of the same repository.
  98. * **Download Commit/Tag**:
  99. The commit or tag of the asset. For example,
  100. `b1d3172f89b86e52465a74f63a74ac84c491d3e1` or `v1.0`. The site computes
  101. the actual download URL from this.
  102. * **Icon URL**:
  103. The URL to your asset's icon (which will be used as a thumbnail
  104. in the AssetLib search results and on the asset's page). Should be an image
  105. in either the PNG or JPG format.
  106. * **License**:
  107. The license under which you are distributing the asset. The list
  108. includes a variety of free and open-source software licenses, such as GPL
  109. (v2 and v3), MIT, BSD and Boost Software License. You can visit `OpenSource.org <https://opensource.org>`_
  110. for a detailed description of each of the listed licenses.
  111. * **Description**:
  112. Finally, you can use the Description field for a textual
  113. overview of your asset, its features and behavior, a changelog, et cetera. In the
  114. future, formatting with Markdown will be supported, but currently, your only
  115. option is plain text.
  116. You may also include up to three video and/or image previews, which will be shown
  117. at the bottom of the asset page. Use the "Enable" checkbox on each of the preview
  118. submission boxes to enable them.
  119. * **Type**:
  120. Either an image, or a video.
  121. * **Image/YouTube URL**:
  122. Either a link to the image, or to a video, hosted on YouTube.
  123. * **Thumbnail URL**:
  124. A URL to an image that will be used as a thumbnail for the
  125. preview. This option will be removed eventually, and thumbnails will be automatically
  126. computed instead.
  127. Once you are done, hit Submit. Your asset will be entered into the pending queue,
  128. which you can visit on the AssetLib `here <https://godotengine.org/asset-library/asset/edit?&asset=-1>`_ . The approval process is manual and may
  129. take up to a few days for your addon to be accepted (or rejected), so please
  130. be patient! You will be informed when your asset is reviewed. If it was rejected,
  131. you will be told why that may have been, and you will be able to submit it again
  132. with the appropriate changes.
  133. You may have some luck accelerating the approval process by messaging the
  134. moderators/assetlib reviewers on IRC (the #godotengine-atelier channel on Freenode),
  135. or the official Discord server.
  136. .. |image0| image:: ./img/assetlib_submit.png