All Projects → andburn → hs-art-extractor

andburn / hs-art-extractor

Licence: MIT license
A tool to extract Hearthstone card art from the game files

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to hs-art-extractor

Searchstone
🃏 Hearthstone's cards search engine built with algolia instantsearch.
Stars: ✭ 117 (+457.14%)
Mutual labels:  card, hearthstone
Sunwell
Canvas-based high quality Hearthstone card renderer
Stars: ✭ 93 (+342.86%)
Mutual labels:  card, hearthstone
Hearthstone Deck Tracker
A deck tracker and deck manager for Hearthstone on Windows
Stars: ✭ 4,496 (+21309.52%)
Mutual labels:  card, hearthstone
Uicard
Generic UI for card games like Hearthstone, Magic Arena and Slay the Spire...
Stars: ✭ 142 (+576.19%)
Mutual labels:  card, hearthstone
Reswipecard
a light lib for swipe the cards implemented by RecyclerView
Stars: ✭ 230 (+995.24%)
Mutual labels:  card
React Ui Cards
Ready to use card components for React
Stars: ✭ 162 (+671.43%)
Mutual labels:  card
Chameleonmini Rebootedgui
Windows based GUI for Chameleon Mini, the contactless smartcard emulator (NFC/RFID)
Stars: ✭ 159 (+657.14%)
Mutual labels:  card
Scheduler Card
HA Lovelace card for control of scheduler entities
Stars: ✭ 154 (+633.33%)
Mutual labels:  card
flip view
A Flutter app with flip animation to view profiles of friends. 🌟
Stars: ✭ 69 (+228.57%)
Mutual labels:  card
tripreader-data
“读卡识途”项目公开数据
Stars: ✭ 58 (+176.19%)
Mutual labels:  card
Cardslidepanel
enable users to slide card to the left or right smoothly and continuously
Stars: ✭ 2,377 (+11219.05%)
Mutual labels:  card
Android Swipecards View
Android library to implement cards stack view with swipe to remove feature
Stars: ✭ 162 (+671.43%)
Mutual labels:  card
Keydecoder
KeyDecoder app lets you use your smartphone or tablet to decode your mechanical keys in seconds.
Stars: ✭ 236 (+1023.81%)
Mutual labels:  card
Vue Info Card
Simple and beautiful card component with an elegant spark line, for VueJS.
Stars: ✭ 159 (+657.14%)
Mutual labels:  card
LeetCode-Stats-Card
Show your dynamically generated LeetCode stats on your GitHub profile or your website!
Stars: ✭ 207 (+885.71%)
Mutual labels:  card
Material
A UI/UX framework for creating beautiful applications.
Stars: ✭ 11,870 (+56423.81%)
Mutual labels:  card
Zlayoutmanager
Some custom LayoutManager .Such as SwipeCard、FLowLayout。一些自定义的LayoutManager,仿探探、人人影视 炫动滑动 卡片层叠 和流式布局等。
Stars: ✭ 2,404 (+11347.62%)
Mutual labels:  card
Mercenaries-Hearthstone-game-bot
bot for hearthstone mercenaries mode
Stars: ✭ 59 (+180.95%)
Mutual labels:  hearthstone
Chameleonmini Rebooted
Chameleon Mini revE rebooted - Iceman Fork, the ChameleonMini is a versatile contactless smartcard emulator (NFC/RFID)
Stars: ✭ 208 (+890.48%)
Mutual labels:  card
Androidpilelayout
An abnormal horizontal ListView-like pile layout with stretch and contraction effects.
Stars: ✭ 2,104 (+9919.05%)
Mutual labels:  card

Archived This Project has been archived, works only for Hearthstone patch 8.0.0.18336 and below. See UnityPack as an alternative for current Hearthstone versions.


HsArtExtractor

A tool for windows to extract hearthstone card art from the unity game files. The project includes a partial port of Disunity, it also utilizes the DDSReader project.

Features

  • Extract all card art.
  • Extract available card bars (deck list images).
  • Extracts the card xml text files.
  • Extracted cards can be filtered by set and card type, they can also be named by card name rather than by id.

Usage

When Hearthstone is running the necessary game files cannot be accessed. Therefore, you need to quit out of Hearthstone for the program to work correctly.

Command line interface

extractor.exe cardart [options] <hearthstone directory>

Examples

Extract the card art including card bars to C:\CardArt directory, this excludes enchantments and miscellaneous sets.

extractor.exe cardart -o "C:\CardArt" "C:\Hearthstone"

Extract the full card art images only (no bars) and disable all default filtering on sets and card type.

extractor.exe cardart --full-only --no-filters -o "C:\CardArt" "C:\Hearthstone"

Extract the card bars with "hidden" areas cropped off, and set the output height to be 34 pixels. Also, use the supplied CardArtDefs.xml to create bars for tokens.

extractor.exe cardart -o "C:\CardArt" --crop-hidden --bar-height 34 --bar-only -m CardArtDefs.xml C:\Hearthstone

Other available options:

--full-only                  Extract only the full size card art.

--height                     Specify the height of full size card art (height
                             == width).

--image-type                 Specify the image type; png or jpg (or dds not
                             compatible with height or flip).

--without-bar-coords-only    Only output images without any card bar
                             coordinates.

--bar-only                   Extract only the card bar images.

--bar-height                 The desired height of the card bar images.

-a, --keep-alpha             Keep the alpha channel in the exported images
                             (removed by default).

-f, --no-flip                Do not flip the full images over the y-axis
                             (does not effect card bar images).

-g, --group-by-set           Group the images into directories by card set.

-n, --name                   Add the card name to the exported file names.

-s, --include-sets           Include cards from the specified sets only.

-t, --include-types          Include cards of the specified types only.

--no-filters                 Exports all cards, ignores default filtering.

--save-map-file              Save the generated card to texture mapping file
                             (ignored if using a map file as input).

-m, --map-file               Use a previously generated card to texture
                             mapping file.

-o, --output-dir             The directory where the extracted files will be
                             saved to.

--crop-hidden                Remove parts of the card bar that are hidden by
                             the bar frame in the game.

--help                       Display this help screen.

--version                    Display version information.

Programming interface

  • Include a reference to HsArtExtractor.dll in your .NET project.
using HsArtExtractor;
using HsArtExtractor.Hearthstone;
using HsArtExtractor.Util;

class Program
{
  private static void Main(string[] args)
  {
    // set the logging level and location
    Logger.SetLogLevel(LogLevel.WARN);
    Logger.SetLogLocation(@"C:\CardArt");

    // do the extraction
    Extract.CardArt(new CardArtExtractorOptions() {
      HearthstoneDir = @"C:\Program Files\Hearthstone",
      OutputDir = @"C:\CardArt",
      MapFile = "CardArtDefs.xml",
      Height = 256,
      BarHeight = 35
    });
  }
}

Build

  • Clone the repository.
  • Install the dependencies. On the command line (in the repository directory) run:
.paket\paket.bootstrapper.exe
.paket\paket.exe install
  • Open the solution in Visual Studio and build as normal.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].