Skip to content

Game Developer's Guide to the new 3.1.X.X update

kellyelton edited this page Mar 30, 2013 · 21 revisions

##1. Change your Game Definition folder structure

  • Rename your main xml file to definition.xml (you cannot give it a specialized name anymore)
  • Delete [content_types] as it is removed from OCTGN.
  • definition.xml is the ONLY file allowed in the root directory of the game definition. All other files must be moved into folders.
  • delete the _rels folder (no longer needed).

##2. Change the RELS id links inside definition.xml

  • Wherever you had a file/image linked through your _rels document (counters, card backs, python scripts, etc), replace the _rels ID with the filepath of the file.
  • I.E. <script src="r02" /> becomes <script src="scripts/actions.py" />
  • It's important to note that you cannot start the path with a /.
  • Incorrect Example <script src="/scripts/actions.py" />

##3. Capitalize all instances of true (to True) and false (to False) inside definition.xml

##4. Make sure all XML tags inside <game> go in this order (this is now important!):

  1. <scripts>
  2. <fonts>
  3. <proxygen> NEW! (click here for documentation)
  4. <documents>
  5. <globalvariables>
  6. <card>
  7. <table>
  8. <player>
  9. <shared>
  10. <deck>
  11. <sharedDeck>

##5. Add new code inside the <game> tag

  • (this is where stuff like the game GUID and version number are)
  • tags="" -- a short tag to help locate your game, usually an acronym if available
  • description="" -- give a description for your game
  • setsurl="" -- the full URL of a website to find more info or help for card packages for this game
  • gameurl="" -- the full URL of a website to find more info or help for this game
  • authors="" -- a place to put the name of the person (or people) who helped code this game
  • iconurl="" -- the full URL of a hosted picture to display as an icon for this game

##6. All set XMLs go into Game Definition

  • Each set xml file will be stored in /Sets/Set Name/set.xml (note the capitalized 'Sets' folder)
  • All sets must be renamed set.xml in these new folders.
  • Each set will have its own folder(the name is arbitrary)
  • A /Sets/Set Name/ folder can only contain two folders, Cards and Markers
  • The Cards directory can contain only card images(and no sub folders), and their name has to be CardId(withDashes).png(or whatver kind of image it is)
  • The Markers directory can contain only marker images(and no sub folders), and their name has to be MarkerId(withDashes).png(or whatver kind of image it is)
  • Please note that with the old version of octgn a CardId started with a C and had no dashes. In the current version the C must be removed, and the dashes must be added.
  • Please note that with the old version of octgn a MarkerId started with a M and had no dashes. In the current version the M must be removed, and the dashes must be added.

##7. All card images will have their own .O8C file

  • Card images MUST BE renamed to their GUID.
  • Each card image will be stored in GameId/Sets/set-guid/(Cards|Markers)/cardormarkerid.jpg (note the capitalized Sets and Cards|Markers folder, other image filetypes also supported)
  • An o8c file can only contain set images for 1 game. The root of your o8c can only contain 1 folder, and that's a folder with the name of GameId.

##8. Set up Proxy Generator

  • this will generate proxy versions of cards as substitutes for actual card images, if the actual card image is not installed.
  • see Proxy Generator for full instructions