Skip to content
brine edited this page Apr 29, 2013 · 7 revisions

Intro

OCTGN games generate cards based on the info defined in [Sets](Set definition). If you would like to package real card images for your game, this is how you do it.

Folder Structure

 + GameId (aka 078eca8b-fdb9-49e3-a572-f2aa42d7535e)
   | + Sets
     | + SetId (aka 6d0d0242-f72b-4d1e-80f4-5bc13f33724d)
       | + Cards
         | + CardId.png (aka a650cf90-6c29-4f14-afc2-e3da0b440a4d)
         | + CardId.png
         | + CardId.png
         | + CardId.png
         |
     | + SetId (aka 6d0d0242-f72b-4d1e-80f4-5bc13f33724d)
       | + Cards
         | + CardId.png (aka a650cf90-6c29-4f14-afc2-e3da0b440a4d)
         | + CardId.png
         | + CardId.png
         | + CardId.png
         |

#Packaging

In order to distribute this Card Package, you would simply zip up the folder(making sure that if you open the zip file, the folder structure is the same as above) and name it my name.o8c.

#Installing card packs

In the Games Manager page, there will be a button for installing card packages. Click it, navigate to the location of your card package, load it, then wait for the images to install (could take a while, get a coffee)

#Alternate Images

Some cards may have alternate forms, which have been defined in the set definition#card-alternates. To include images for alternate forms, you must add 'type' to the end of the GUID in the filename.

For example, if your card's name is 6b50a1da-3234-4008-9735-54c0067be855.jpg, and it has an alternate form with type="backside", then the filename for the alternate's image would be 6b50a1da-3234-4008-9735-54c0067be855.backside.jpg .

Clone this wiki locally