Skip to content

About

Card game simulator

Resources

Stars

24 stars

Watchers

1 watching

Forks

Repository files navigation

Warnel Chawpiovs

Warnel Chawpiovs preview image

A digital card game based on the Marvel Champions board game, with full rules enforcement, ideal for true solo or two-handed (but also supports up to a full team of 4 heroes). Runs on Windows, Linux, Android, MacOS, and Nintendo Switch.

Quickstart

You can try this game in your browser at https://wololo.net/wc

I do recommend however to download local binaries for your system of choice. Those have better performance and will let you play offline (after all assets have been downloaded). to do this, download the game from the release page, extract the zip to any folder on your machine, and run the executable.

Questions or feedback? Try our Discord Channel https://discord.gg/suP7m7uafT

If you need more details, read along

This is a fan-created work and is not affiliated with, endorsed by, or sponsored by Fantasy Flight Games. All characters, settings, and related elements are the property of their respective owners.

Shortcuts

How is Warnel Chawpiovs different from the original game?

Generally Speaking this tries to perfectly mimic the rules of the orginal board game (currently supporting v1.8 of the rules). There are a few intentional exceptions (see below), the rest can probably be considered bugs

  • Unlike Marvel Champions, Warnel Chawpiovs allows heroes to play their turn in parallel. This is particularly obvious in Multiplayer mode. Because this is a video game, it felt important to me to minimize friction on that aspect, and allow clients to play simultaneously. If you'd rather follow the actual rules and play your turns in order, nothing prevents you from coordinating with your fellow players ;)
  • In Warnel Chawpiovs, minions attack in the order in which they appeared on the board, instead of letting the players choose the order. This is mostly a design decision for gameplay speed.

Other than that, here are known limitations with the engine at the moment:

  • Warnel Chawpiovs doesn't support Campaign mode currently

Current Status (General)

Warnel Chawpiovs Supported Characters Warnel Chawpiovs Supported Scenarios This simulator supports the following cards from the original game (current total 51 heroes, 43 villains, as well as associated player cards and encounters):

  • Cycle 1:
    • Core box (5 heroes, 3 villains)
    • Captain America (1 Hero)
    • Ms. Marvel (1 Hero)
    • Thor (1 Hero)
    • Black Widow (1 Hero)
    • Hulk (1 Hero)
    • Doctor Strange (1 Hero)
  • Cycle 2:
    • The Rise of Red skull ( 2 heroes, 5 villains)
    • Ant-Man (1 Hero)
    • Wasp (1 Hero)
    • Quicksilver (1 Hero)
    • Scarlet Witch ( 1 Hero)
  • Cycle 3:
    • The Galaxy's Most Wanted (2 heroes, 5 villains)
    • Star-Lord (1 Hero)
    • Gamora (1 Hero)
    • Drax (1 Hero)
    • Venom (1 Hero)
  • Cycle 4:
    • The Mad Titan's Shadow ( 2 heroes, 5 villains)
    • Nebula (1 Hero)
    • War Machine (1 Hero)
    • Valkyrie (1 Hero)
    • Vision (1 Hero)
  • Cycle 5:
    • Sinister Motives ( 2 heroes, 5 villains)
    • Nova (1 Hero)
    • Ironheart (1 Hero)
    • Spider-Ham (1 Hero)
  • Cycle 6:
    • Mutant Genesis ( 2 heroes, 5 villains)
    • Cyclops (1 Hero)
    • Phoenix (1 Hero)
    • Wolverine (1 Hero)
    • Storm (1 Hero)
    • Gambit (1 Hero)
  • Cycle 7:
    • Next Evolution ( 2 Heroes, 5 villains)
    • Psylocke (1 Hero)
    • X-23 (1 Hero)
  • Cycle 8:
    • The Age of Apocalypse ( 2 Heroes, 5 villains)
    • Nightcrawler (1 Hero)
  • Cycle 9:
    • Agents of S.H.I.E.L.D. ( 2 Heroes, 5 villains)
    • Winter soldier (1 Hero)

This represents roughly 65% of all official cards (excluding campaigns) at the time of this writing.

There is no tutorial included, and, although the rules are automatically handled by the engine, it will quickly become confusing if you are not already familiar with the original game.

Rules can be found here. (if broken link, go to fantasy flight's official page, scroll down to "support/rules" and select "Learn to play"

For all intents and purposes, Warnel Chawpiovs works for a single player using 1 or 2 heroes. For other game modes, including Multiplayer, your mileage might vary.

  • Single Player Mode:
    • 1 Player, 1 Hero: Generally works well, and this is the most playtested part of the game
    • 1 Player, 2 heroes: Generally works, with the occasional glitch or game-breaking bug
    • 1 Player, 3 or 4 heroes: Should work but is quite untested
  • Multiplayer Mode:
    • The multiplayer mode occasionally runs into desync issues. To mitigate this, the host can try and click on the "force sync" option button to force other clients to reload the host's current board state. force_resync_image

Current Status of the Nintendo Switch version

The Switch version requires a hacked console, for example running Atmosphere. The switch port has the same features as the PC version, but it is significantly slower. Without overclocking it can get very slow, in particular if the console is in handheld mode. But because this is a board game, it remains somewhat ok if you don't mind the low FPS. In my opinion the game actually becomes fairly enjoyable if you overclock the console with the excellent sys_clk

Playing with more than one hero adds to the CPU load...It works, it just gets significantly slower.

I have personally seen the multiplayer mode (between a PC - as the host of course - and a Nintendo Switch) working on my local network. So I know this works, but the console has to be overclocked, otherwise it loses its connection eventually. This might be fixable, but if you really wish to test multiplayer on a Switch (I don't currently recommend this, with both the Switch port AND multiplayer being quite rough around the edges), for now please overclock the console.

Linux and Mac Ports

I do distributes binaries for Mac and Linux, but those are mostly untested. On Linux I check that the game actually runs. I do not have a Mac so I cannot test the MacOS version myself abd it should be considered unsupported.

Android Port

The game works on Android but you will need to install the apk manually, as I do not plan to distribute the game on the Google Play store. You wil need to enable "Unknown sources" in your phone's settins, and install the apk from your file manager

Web Version

A Web version of the game is available at https://wololo.net/wc/ . Although I'd still recommend getting a native version of the game installed on your platform of choice, this is a convenient way to test the game if you're willing to try it.

Users: Installing the Game

  1. Download the binary and the pck file from the releases section, and copy them to any folder on your device (on the Switch, this should probably be in the "switch" folder of your SD card. On Android, copy the .apk to your phone then install using your file manager. Make sure to enable "unknown sources))
  2. That's it, you can run the game. (On Switch, you need to launch it from the homebrew menu - not in applet mode! -)

Users: Running the game

Downloading Images and other resources

When you run the game for the first time, Warnel Chawpiovs needs to download some data, including card definitions and card pictures, so you will need an Internet connection in this early step. By default, most of this data is downloaded from https://marvelcdb.com. Image downloads in particular might take some time, but this will happen in the background and you can play the game while pictures get downloaded.

Alternatively, it is possible to have all the images packed either in a PCK or a ZIP file at the root of the user folder (PCK are the DLC file format for Godot) with the right structure. See below for folder structure.

How to play

You can find a tutorial video here: https://www.youtube.com/watch?v=AbOm5UHoGbE

Warnel Chawpiovs Gameplay

Quick Tutorial for the included deck editor: https://www.youtube.com/watch?v=xo86uE3PY2k

Hosting a Multiplayer game

THe host needs to forward port 7777 on their computer/router. The rest should be semi automated. Make sure the host clicks on "host" before anybody else clicks on "Join", otherwise things start breaking.

Users: Folder Structure

The user folder is based on Godot rules. On Windows, it lives in "user_folder"\AppData\Roaming\Godot\app_userdata\WC. On switch, this will most likely be switch/godot/app_userdata/WC/

Relevant files and subfolders of the user folder are:

  • settings.json: Settings file
  • *.pck and *.zip: all your dlc/mods can live as pck and/or files at the root of the user folder. For example a file named core.pck (or core.zip) can include all images for the core Set pck_example
  • Saves: where the savegames live.
  • Decks: Hero decks (those follow the format of marvelcdb.com)
  • Sets: where the Set definitions and images live. Note: These will override any images with the same name that can be found in the .pck and.zip files mentioned above
    • images: image subfolder for set. Each "box" is a subfolder with its own pictures, e.g. images/core/01001a.png
    • SetDefinition_*.json: definition of a given set, typically downloaded "as is" from marvelcdb.com. This describes the cards in a given set, but does not contain the scripting data for these cards (see the Modders section below)
  • Sets_fanmade: a folder for fanmade/homebrew content

Users FAQ and Troubleshooting

  • What is Applet mode on Nintendo Switch and why is the game complaining about it?
    • Godot on the Nintendo Switch requires a lot of resources. The homebrew menu on the Nintendo Switch will run in a constrained environment called "applet mode" if you access it "normally" by pressing on the Album icon. In order to run the homebrew menu in the mode required for Godot games to run, you need to insert a game cartridge in the Switch, and press R while starting the game. This will start the Homebrew menu (instead of running the Switch cartridge) in the appropriate mode for Godot games.
  • Players can't connect to my multiplayer game
    • Make sure you have forwarded port 7777 on your Router. That is the only strong requirement at the moment.
  • I don't see all Heroes and Scenarios
    • go to options > Gameplay and uncheck "Adventure Mode" if you want to play with all heroes/scenarios without having to unlock them (in Adventure mode you have to win games in order to unlcok more stuff)

Modders: Adding new cards to the Game

The basics to adding new cards to the game is to choose a specific set from marvelcdb, create a scripts json file for it (in addition to downloading marvelcdb's own json), and modify the settings file to include this set. Specifically:

  1. open settings.json from the user folder, and modify the "database" entry, by adding a new element to it. For example: "trors" : "https://marvelcdb.com/api/public/cards/trors.json" to add the return of Red Skull set.
  2. To make the scenarios (if any) of the set available, you need to add entries in _scenarios.json for each of these scenarios. see the original _scenarios.json file for examples on how it's done. The game engine will automatically merge your entries with the ones already existing in the game. After completing Steps 1 and 2 you should have enough data for the scenarios to show up and be selectable in the game (they won't do much yet, though)
  3. For heroes to show up they need two things:
    1. at least one valid deck. "valid" means (among other things) a deck with only cards currently known by the game (this means all cards in the game so far + your newly added set). You can download their default decks from marvelcdb in the json format, from their public api. e.g starter deck for hawkeye: https://marvelcdb.com/api/public/decklist/3483.json . Copy those json files in the Decks folder of your user directory.
    2. A scripted entry for either their alter ego form or their hero form, in the Sets/SetScripts_name.json file described below. (This is an additional requirement for the game to avoid showing heroes that are not coded yet)
  4. Next you'll want to create a file Sets/SetScripts_name.json where you'll replace name with the actual entry key. In our example, Sets/SetScripts_trors.json. This should work in the User Sets folders, but has only been tested in the res folder so far. At the very minimum, this file must contain and empty json dictionary "{}" or the game will fail to load it (and complain about it)
  • Now the actual work: you'll want to add an entry for each card in Sets/SetScripts_trors.json, that describes the behavior of each card for the engine.
    • inspiration for how to do this can be found in the core set

Adding original/homebrew cards (custom content)

Warnel Chawpiovs lets you create your own cards and add them to the game.

In order to work, a Set needs a SetDefinition_[name].json and a SetScripts_[name].json in the Sets_fanmade subfolder of your user folder. For example, you can create a SetDefinition_myset.json and SetScripts_myset.json, and those will be loaded into the game. You will also need to provide images as those will not be downloadable from marvelcdb or any other site that provides only official content.

You need to activate fanmade Sets in the options in order to activate those additional sets. This is provided as a convenience to easily activate/deactivate unofficial content without having to move files around.

You can see an example of fanmade set and how it's created/activated here: https://www.youtube.com/watch?v=WDEtftUSYAA

Features

  • Complete card rules enforcement capacity, via provided Scripting Engine. (see doc)
  • Deck Editor
  • Custom content (Homebrew cards) support
  • Multiplayer Support

Developers: Source code Structure

  • assets: icons, textures, and fonts for the game
  • Decks: a series of default decks for the game to start. These are in theory overridden by Decks folder in the User directory
  • doc: Documentation for the game and card engine
  • fonts: additional fonts
  • Lang: language files
  • scripts: offline scripts e.g. in python for various tasks related to the game
  • Sets: hardcoded definitions of the game card scripts. These should be overridden by files of the same name in the USer Directory
    • _macros.json: some macros to make writing some scripts a bit less tedious
    • _scenarios.json: the scenarios for each villain/scheme. Describes default modular set, etc...
    • SetScripts_*.json: actual code for the cards for each set
  • Test: test files for the test suite
  • Themes: default GUI theme for the app

src folder

  • core: Most of the code from Card Game Framework. This is supposed to be generic code for any card game, but I have heavily modified it and kind of broke the intent. Generally speaking though, nothing should need to be modified in there, in particular if it is specific to WC
  • multiplayer: Multiplayer specific layer. Unfortunately, a lot of multiplayer code also lives in the next folder
  • WC: overrides and actual code of the game
    • board:
    • cards:
    • data:
    • grids:
    • lobby:
    • menus:
    • ScriptingEngine: All the logic for card mechanics and rules enforcment
      • ScriptingEngine.gd: actual logic for card scripts
      • GlobalScriptStack: the heart of the multiplayer code and also the stack that handles interrupts, etc...
    • shaders:
    • Announce.gd:
    • Board.gd: The board on which most "currently in play" cards are. Note that it is separate from piles such as deck, discard, etc...
    • CardTemplate.gd: The class that describes each card an its functionality
    • CfControlExtended.gd: General game singleton class in charge of loading cards database, running the game, etc
    • GameData.gd: The overlord of the game, centralized singleton that knows almost everything about the game
    • GhostCard.gd: A type of card (extends CardTemplate) specific for "Make the call" to play other players' cards
    • OVUtils.gd: Utility functions specific to gameplay and scripting the cards
    • PhaseContainer.gd: The class in charge of moving phases through the game, going from player phase to villain phase, etc...
    • SP.gd: aka ScriptProperties. Additional functionality for Scripts targets, etc...
    • WCUtils.gd: utility functions for generic purpose (reading json files, array/dictionary utilities, etc...)

Developers: Test suite

Running the Test suite

No code should be submitted without running the test suite. The test suite is a simple feature in the game that runs basic gameplay scenarios to ensure the overall engine isn't broken. It is an integration test mechanism that tests both cards and the engine.

The test suite needs to be run twice: once as a single player, and a second time in a 2-player multiplayer game.

  • To run the single player test suite, start a single player game (e.g. with spider-Man against Rhino). Once the game has loaded, click on options > Tests, then wait until the test suite has run
  • To run the multiplayer test suite, start a 2 player multiplayer game (run Godot Twice), e.g. with spider-Man for player 1 and Captain marvel for player 2, against Rhino. On the host machine, click on options > Tests, then wait until the test suite has run.

For tests to be considered succesful, bot the single player and multiplayer tests need to display a "succesful" message at the end.

The "single player" test suite actually also run multi-hero tests on a single machine. The multiplayer tests run those multi hero tests as well, but with one player per hero.

Adding new tests

New tests can be added in the Test subfolder of the project. They are json files with a simple structure (TODO). Best way to create a new test is to copy/paste and exsiting one and modify it as needed. test file names need to start with "test_" to b automatically included in the test suite. Note: If a file named "_tests.txt" exists in the Test folder, it will be used in priority as a list of tests to run. One test file name per line. This can be used e.g. to run a single test to debug issues

Developers: Compiling for your platform

Any platform for which you have a Godot 3.x template should, generally speaking, be compatible with this game. Make sure to enable *.json, *.txt in the resources section, otherwise the game will not include necessary files to be able to start. As shown below: Compile resources

On Nintendo Switch, for performance reasons, in project settings, change Display/Window size to 1280x720 (instead of the default which is probably 1920x1080). Resolution has a massive impact on performance on the Switch.

Developers FAQ

  • Why Godot 3.x ?
    • The Card Framework I used was designed for Godot 3.5x. Additionally, Godot 3.5x has been ported to multiple homebrew consoles such as the Nintendo Switch, and I really like the idea of my game running on homebrew consoles.

Credits

Based on Card Game Framework

Warnel Chawpiovs, by Wololo (https://wololo.net)

Uses the Godot Engine (https://godotengine.org/)

Godot Switch port (https://github.com/Homebrodot) thanks in particular to fhidalgosola/utnad, Stary2001, cpasjuste, halotroop2288

Card data, for the most part, comes from MarvelCDB (https://marvelcdb.com/)

Card pictures are not included in the game, but can be acquired on sites such as MarvelCDB, Cerebro,MC4DB, and cgbuilder. When possible, the game will attempt to download pictures automatically from these locations.

Disclaimer

This is a fan-created work and is not affiliated with, endorsed by, or sponsored by Fantasy Flight Games. All characters, settings, and related elements are the property of their respective owners.

License

This software is licensed undel AGPL3.

About

Card game simulator

Resources

Stars

24 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages