Skip to content

Instantly share code, notes, and snippets.

@brine
brine / gist:0cfb191c77dc5ca4f1ab2801d5e82691
Created December 29, 2022 04:01
OCTGN 3.4.378 changelog
New Feature - Discord integration - can send game invites through Discord chat as long as OCTGN is open, and join other users games through the discord game activity window
New python API - card.defaultProperty(alternate, property) returns the original card property value as defined in the set XML. Useful if the card's properties have been overwritten in-game.
Fix - Games can be launched from the command line
Fix - Extended tooltips now displays the correct information for facedown peeked cards (fixes https://github.com/octgn/OCTGN/issues/2178)
Fix - Logging in for the first time no longer causes an error message
Fix - OCTGN will run properly if Discord is not installed
Update - Hidden piles no longer animate for other players (can no longer "see" which card was moved or where a card was inserted by watching the animation)
Update - OCTGN IDE (game development studio) application has been substantially updated and is more stable than before. Still not a finished product, but it should be capable of creating

For Players:

  • All piles in the player tab are expandable and collapsable. Use the arrow buttons on the bottom of each pile to expand or collapse it.
    • Expanded piles behave like the hand group. So you can now have multiple hand-like groups displayed.
    • A slider is added to expandable groups to change how how close together the cards can become before the pile width increases.
  • A new button "Undock Card Preview" is added to the top of the play window. This will pop the card preview window into its own resizable window. Useful for dual-monitors and streaming overlays.
  • Added hotkeys to move cards between sections:
    • Ctrl+1-0 Move all of a card to section 1-10 on current tab (player/Global)
    • Ctrl+Shift+1-0 Move all of a card to section 1-10 on other tab (player/Global)
  • Fixed the twitter news feed on the OCTGN login screen.
  • OCTGN Options window is a bit better organized.
If a card is FaceUp, then all players will have visibility of that card.
If a card is FaceDown, then nobody can see the card.
Any player can peek at a facedown card to reveal its identity. The card will still show as face-down in piles or the table, but the hover preview will show the card's image. A peek icon appears on the card to show who has seen the card's identity
Piles can set the 'default' visibility for any card within it. The table is always visibility=Everyone
Piles can add players to the visibility list. Any player on that list is able to see the contents of that pile.
NEW: A player can add a spectator to the visible players list on a pile.
NEW: The peek icon is added to the pile info panel, showing who has visibility on that pile (similar to cards)
NEW: Remove individual card visibility settings. Cards are either FaceUp (everyone can see, card's front face is displayed), FaceDown (nobody can see, card identity is kept hidden, card's default back is shown). Peeking at a card reveals it to t
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using Octgn.DataNew.Entities;
namespace Octgn.Play.Gui
{
o8g schema: game documents icon attribute now optional (was required).
game def: game document icons work again.
o8g schema: game font src now optional (was required).
game def: octgn will use its default font if no font src is defined.
o8build: validates that all sets have a gameId that matches the game's GUID
o8g schema: removed height attribute from group element
o8g schema: removed width attribute from group element
o8g schema: removed height attribute from hand element
o8g schema: removed width attribute from hand element
game def: added 'changetwosidedtable' attribute to game element. Boolean; Allows the host to change the two-sided table property (default True)
@brine
brine / gist:ca77380fc9d941732c61
Last active March 1, 2016 18:38
Status Update:
Hey all, we just pushed out a new version last night which includes a few nifty new features. Here's a list of what we've been working on in the last few months:
These features are relevant to players:
- You can zoom the table without a scroll wheel by pressing the CTRL+Plus and CTRL+Minus key combos
- When you load a Limited deck via the limited deck editor, the chat notification will specify that it was a limited deck (to tell it apart from pre-built decks being loaded)
- Added the option to downgrade OCTGN's borders to the native Windows OS borders.
- Added pinch-zoom and multi-touch drag for the table (for touch-supported devices)
- Added an option in the Options menu to bring back the old Knock-Knock sound effect when players join your game.
For game developers, here are some features that may be relevant to you. The relevant wiki pages have been updated
@brine
brine / 3.1.0.2events.md
Last active September 15, 2015 19:46
Python 3.1.0.2 API changes

GAME EVENTS:

All event names have been changed to follow a past tense subject-verb naming convention. In addition, all events now simply pass an args argument as its only argument, which act as an object type. So instead of having many different arguments for the OnCardsMoved event, you will now do something like this:

def MoveCardsEvent(args):
    card = args.card
    x, y = args.xs, args.ys
@brine
brine / octgngames.com game developer agreement
Last active August 29, 2015 14:05
octgngames.com game developer agreement
(last updated Feb 15, 2015)
Game Developer,
Thank you for your interest in the OCTGN Game Directory at www.octgngames.com. Before we can accept the game into the directory, there are some guidelines that you must agree to follow (note that this document may be updated in the future). If you accept these terms, then please send us a copy of the game definition package for review.
- 10 MB size limit on the game definition. Automatic game updates should be fast for the user to install, especially if the game gets updates frequently.
- No copyrighted card images in game package. The feed is hosted on an external service and we do not want to create any trouble for them or for us. Images also contribute towards that 10 MB size cap. You should be creating image packs for all card images, which is kept external from the game definition on the feed.
@brine
brine / new def
Last active August 29, 2015 14:01 — forked from kellyelton/new def
<!--
Any game section that is required outside of the game window needs to be global across all game modes, and should be
included only in the root definition xml:
- All tags in the <game> element
- <fonts>
- <proxygen>
- <gameModes>
- <card>
- <deck>
- <sharedDeck>
@brine
brine / gist:8967794
Created February 13, 2014 01:05
octgn updates
Update Release Notes
Spectator Support
- Players can join in-progress games as a spectator
- As a spectator, you can see everything that is visible by everyone, any hidden information will be kept hidden
- Players can be set as a spectator in the pre-game lobby
- Spectators may participate in the game chat
- The host player can mute spectators.
Host Options