# CardForger

## CardForger Plugin – Step-by-Step Tutorial & User Guide
This tutorial will guide you through the setup, usage, and customization of the CardForger Plugin inside Unreal Engine.

---

## 1. Plugin Installation & Activation
Locate the CardForgerPlugin folder under your project's `/Plugins` directory.
In Unreal Engine, go to **Edit > Plugins > Installed > CardForgerPlugin** and make sure the plugin is enabled.
Restart Unreal Engine after activation to ensure all systems initialize correctly.

---

## 2. Opening the Plugin
Access the plugin via **Window > CardForge Plugin**.
The plugin tab will open inside the Unreal Editor.
**Recommended:** Dock the tab and stretch it across your screen. This ensures the full UI layout is visible, especially when previewing front and back of the card simultaneously.

---

## 3. Creating a Card

Use the provided fields and selectors to define:

- Card Name, Type, ATK/DEF, Cost, Buff Text
- Element Type, Border Color, Main Image, Icons, etc.

Inputs are dynamically updated in real-time, showing a live preview of both front and back.
Buffs support visual markup (e.g. `+10%` = green; `-5%` = red) automatically.
Stars, S-Rank icon, element border/background and other visual overlays are preconfigured and appear based on your input.

---

## 4. Using Custom Icons or Images

### Option 1: Image Browser (Recommended)

- Place your images in this path: `/Game/cardSystem/userCardImages/`
- Subfolders for icons and backgrounds are automatically scanned.
- Use only square images (1:1) for proper scaling.
- Select assets from the image browser within the plugin – they will apply immediately.

**Note:** For element icons and cost icons, assigning a new image replaces the previous one.

### Option 2: Manual Blueprint Editing (Advanced Users)

- Open the `mainMenuWidget` UMG Blueprint (and optionally `WBP_CardFront`, `WBP_CardBack`).
- Manually update Image components or modify layout elements.

Advanced use cases include:

- Unique placement
- Animated effects
- Custom layouts
- Alternative logic

**Warning:** Do not rename any core widget variables unless you update all dependent logic in the plugin.

---

## 5. Exporting Cards

When ready to export, choose from:
- Blueprint Actor (2D or 3D)
- Image Export (PNG or JPG)

All exports are saved inside:
- `/Game/cardSystem/userCards/` for card Blueprints
- `/Game/cardSystem/userDecks/` for 3D decks

Export features:
- Automatic naming based on card title
- Asset duplication from templates
- Cards remain editable post-export
- Clean actor setup with front/back widget components

---

## 6. Important Behavior Notes
- Star Rank Icons must be replaced manually in the Widget Blueprint.
- S-Rank Icon position is toggleable; styling changes require manual edits.
- Element styles are predefined – editing requires UMG changes.
- Promoted Variables are injected but not auto-generated.
- Always **close and reopen** the plugin after manual Widget Blueprint changes.

---

## 7. Troubleshooting – Image Browser Not Updating?
- Close the plugin tab
- Reopen via `Window > CardForge Plugin`

This triggers a fresh image scan.
If the plugin window is open during project load, scan may fail.
---

## 8. Advanced Topics – Promoted Variables
All card data is stored in a `FCardDataStruct` and injected into the widget and actor Blueprints.
You can access and use these variables in gameplay logic.
A full list is under the menu: **Promoted Variables**.

---

## 9. Best Practices & Marketplace Submission Note
- Backup `WBP_CardFront`, `WBP_CardBack`, `mainMenuWidget` before editing.
- No hardcoded paths – full user flexibility.
- Blueprint-only plugin – no C++ knowledge required.
- Editor-only tool – no runtime code unless extended.

Assets are saved under `/cardSystem/userCards/` and `/cardSystem/userDecks/`.

---

## 10. Technical Info & Support

**Plugin Name:** CardForgerPlugin  
**Version:** 1.0.0 – Initial Marketplace Release  
**Engine Compatibility:** Unreal Engine 5.3 & 5.4  
**Platform:** Editor-only

**Developer:** EminentWeb  
**Support:**  
- General: support.cfp@eminentweb.ch  
- Development: dev@eminentweb.ch  
- Docs: [https://eminentweb.ch/cardForgerPlugin/index](https://eminentweb.ch/cardForgerPlugin/index)

---

## Summary
CardForger is a modular card generation plugin for Unreal Engine. Design and export 2D/3D cards easily with Blueprint integration.
Perfect for TCGs, RPGs, or skill systems.

---

## Visual Assets Notice
All placeholder images and icons used in this plugin were created by the developer and are fully licensed.
You're free to use them for prototypes or personal use, but it is **strongly recommended** to replace them for final games.
This plugin is about **functionality** and **workflow support** – not final game visuals.

---

## Legal & Disclaimer

This plugin does **not** sell or distribute commercial graphic packs.  
All assets are original or purely functional placeholders. No third-party material is included.
Users are responsible for respecting copyright and platform guidelines.
The plugin is provided "as is" – no warranties. Always back up your assets.

### Licensing & Distribution Rights
Licensed to one user or team per project. Use across your own team is allowed.

**Sharing, selling, or redistributing this plugin is prohibited.**  
To transfer the plugin to a different party, you need written permission from **EminentWeb**.

## Important Integration Notice
**CardForgerPlugin** is designed as a **project-level plugin**. While it can be migrated into other Unreal Engine projects, the full functionality depends on a pre-defined structure (`/cardSystem/`) including templates, assets, and widget logic.
Users wishing to use it in their own project must either:

- Work within the provided **CardForger project base**, or  
- Migrate the entire `/cardSystem/` content structure and ensure all dependencies remain intact.

> The plugin does **not integrate automatically** as a drop-in asset into unrelated projects.
