Caves of Qud Wiki:Style Guide: Difference between revisions

→‎Sprite Uploading: added section, formatted to be readable
(→‎Formatting: Linked Wikipedia's guide to wiki text and magic words)
imported>AgentJR-gpuser
(→‎Sprite Uploading: added section, formatted to be readable)
Line 32: Line 32:


==Sprite Uploading==
==Sprite Uploading==
===Capturing High-Quality Screenshots===
*For Steam, go to ''View > Settings > In-Game'' and enable ''Save an uncompressed copy'' for screenshots.
*Define a working folder with the ''Screenshot Folder'' button.
*Set your Caves of Qud game resolution to 1280x800 windowed.
You are now ready to capture screenshots which preserve the defined edges and aspect ratios of sprites. When capturing, try to ensure particles and the chat log do not overlap with your subjects.
Wishing for "1" will take you to an empty map, wishing for "calm" will pacify all creatures, and then wishing for individual creatures/items by name can yield many subjects per screenshot.
===Editing Screenshots with GIMP2===
I will be using GIMP2 for the remainder of this guide. We will require a few specific settings.
*Go to ''Edit > Preferences > Default Grid'' set the ''Width'' to 160 and ''Height'' to 240 pixels.
*Set ''Line style'' to ''Solid''.
This will allow you to quickly select a whole sprite and preserve their size in relation to each other.
*Open your uncompressed screenshot and use the ''Rectangle Select Tool'' <code>R</code> to select <u>'''only'''</u> the visible map, not the UI or border. I recommend zooming in for pixel accuracy.
*Press <code>alt+i</code>><code>c</code> to quickly ''Crop to Selection''.
*In the ''Layers - Brushes'' list, right-click your layer and select ''Add Alpha Channel''.
*Use the ''Select by Color Tool'' <code>shift+o</code> and click on the background.
*Press <code>delete</code> and now you will have only sprites and transparency.
*Press <code>alt+i</code>><code>s</code> to open ''Scale Image'', then set your ''Interpolation'' to ''None'' and scale the image x10 (this should result in 12800x6000 pixels).
**A dialog will popup to warn you about the file size, click ''Scale''.
Here I recommend going to ''File > Export As'' and overwriting the original screenshot, in case you need to come back and fix a botched/missed sprite.
*Press <code>alt+v</code>><code>h</code> and <code>alt+v</code>><code>p</code> to activate the ''Show Grid'' and ''Snap to Grid'' options.
*Use the ''Rectangle Select Tool'' <code>R</code> and following the borders, select one sprite.
*Press <code>alt+i</code>><code>c</code> then <code>ctrl+shift+e</code> to crop and export the lone sprite as a .png.
**Name the file to match the in-game name and replace the spaces with <code>_</code> underscores.
===Uploading Finished Sprites===
*With your completed 160x240 sprites go to [[Special:Upload]].
**If you have multiple files, you can upload them all at once using the ''Yes'' radio button above the ''browse'' button. This option may not appear until you refresh the page.