The latest OCTGN update has removed default groupaction functions from triggering while inside a ‘View Cards in Pile’ window. In addition, groupaction will take priority over cardaction for all piles on the main play window (not including Hand and Table). This will allow games to have a defaulted groupaction for the pile, and a different defaulted cardaction for the ‘view cards in pile’ window
The right-click (context) menu is now accessible while inside the view pile window as well.
New python functions have been added to the API, and will be available in the next OCTGN update (3.1.56). Games now have their own dedicated Game Settings, which can be accessed and edited by the Python scripts. This allows for greater customization of the gameplay experience for the users.
Some examples of these API functions in use. The first parameter is the name of the game setting, which should be a string but can be named whatever you wish.
This example will store a game setting for the player’s gender, representing a boolean value. I arbitrarily chose male to be the True condition.
male = getSetting(“MaleGender”, True)
getSetting() will return the stored game setting with the “MaleGender” name. If the setting has not been created yet, it will return the default value instead (the second parameter).
Game devs, please remember to update the Game and Set URLs in your feeds to point to the new wordpress locations for your game, as the forum has been deactivated. Any games still pointing to download links in the forums won’t work anymore.
The latest OCTGN update has changed the name of o8c Card Packages to “Image Packs”. This better reflects what the files are designed for, so their purpose is clearer. The button in the Games Manager has been changed to “Add Image Packs”.
The filename extension will stay as .o8c so that a mass recall on existing files isn’t necessary.
This blog is designed as a handy resource for game developers. It will contain various resource links to make game building a breeze. Whenever a cool new Python API addition is made, or something in OCTGN’s codebase changes that affects games, we’ll try to post it here.
The goal is to keep all game developers updated on the latest functional updates to OCTGN and provide good resources to make things easier. An RSS feed can be set up to broadcast these posts directly to your RSS-ready apps/devices.