The Witcher 3
0 of 0

File information

Last updated

Original upload

Created by

Alar

Uploaded by

alar73

Virus scan

Safe to use

Tags for this mod

About this mod

How to build a mod that allows gwent cards with modified attributes.

Requirements
Permissions and credits
Setting up the environment

  • Create a base directory for your mod (modDir) - D:\Mods\GwentCardsAttributes
    * you can choose other drives and directory names
  • Download the zipped gwent_attributes.xml file.
  • Unzip the downloaded file to modDir.
  • Layout of files and directories.
    D:\Mods\GwentCardsAttributes
    D:\Mods\GwentCardsAttributes\gwent_attributes.xml
    D:\Mods\GwentCardsAttributes\leaders_attributes.xml

Xml file editing

  • Open gwent_attributes.xml or leaders_attributes.xml for editing (Notepad++).
    * the encoding must be UTF-16 Little Endian

    The gwent_attributes.xml file has 2 modified cards - Villen (index=15) and Avallach (index=16).

    Villen is now ranged spy with power 2.
    Ranged - card/type_flags/flag[@name=TYPE_RANGED]
    Spy - card/type_flags/flag[@name=TYPE_SPY] and card/effect_flags/flag[@name=EFFECT_DRAW_X2]
    Power - power="2"

    Avallach has scorch effect and power 7.
    Scorch - card/effect_flags/flag[@name=CP_MELEE_SCORCH]
    Power - power="7"
  • Modify attributes.
    Attributes that could be changed: power, type_flags/flag/@name, effect_flags/flag/@name and summonFlags/card/@id

Original Villen

<card index="15" 
      title="gwint_name_villen" 
  description="gwint_desc_villen" 
  power="7" 
  picture="neu_villen" 
  dlcPictureFlag_name="dlc8" 
  dlcPicture="neu_villen_dlc" 
  faction_index="F_NEUTRAL">
<type_flags>
<flag name="TYPE_CREATURE"/>
<flag name="TYPE_MELEE"/>
</type_flags>
<effect_flags>
<flag name="CP_MELEE_SCORCH"/>
</effect_flags>
</card>


Original Avallach


<card index="16" 
      title="Mysterious elf" 
  description="gwint_desc_avallach" 
  power="0" 
  picture="neu_avallach" 
  dlcPictureFlag_name="dlc8" 
  dlcPicture="neu_avallach_dlc" 
  faction_index="F_NEUTRAL">
<type_flags>
<flag name="TYPE_CREATURE"/>
<flag name="TYPE_MELEE"/>
<flag name="TYPE_HERO"/>
<flag name="TYPE_SPY"/>
</type_flags>
<effect_flags>
<flag name="EFFECT_DRAW_X2"/>
</effect_flags>
</card>


Building a mod


  • Install Official ModKit
    Download -> Unzip -> Run setup.exe
    Note where the software was installed (modKitDir)
    * patched (faster) wcc_lite
  • Create a batch file in modDir - build.bat
  • Add content to the file.

    @echo off
    set copycmd=/Y
    set modDir=D:\Mods\GwentCardsAttributes
    set gameDir=D:\Games\The Witcher 3 Wild Hunt
    set modKitDir=D:\Programs\Witcher 3 Mod Tools
    set modName=modGwentCardsAttributes

    if not exist "%modDir%\Cooked\gameplay\items" mkdir "%modDir%\Cooked\gameplay\items"
    if not exist "%modDir%\Cooked\gameplay\items_plus" mkdir "%modDir%\Cooked\gameplay\items_plus"

    copy /Y gwent_attributes.xml "%modDir%\Cooked\gameplay\items\def_gwint_cards_final.xml"
    copy /Y gwent_attributes.xml "%modDir%\Cooked\gameplay\items_plus\def_gwint_cards_final.xml"
    copy /Y leaders_attributes.xml "%modDir%\Cooked\gameplay\items\def_gwint_battle_king_cards.xml"
    copy /Y leaders_attributes.xml "%modDir%\Cooked\gameplay\items_plus\def_gwint_battle_king_cards.xml"

    cd /d "%modKitDir%\bin\x64"

    .\wcc_lite pack -dir="%modDir%\Cooked" -outdir="%modDir%\Packed\%modName%\content"
    .\wcc_lite metadatastore -path="%modDir%\Packed\%modName%\content"

    robocopy "%modDir%\Packed" "%gameDir%\mods" /S

    pause

  • Check variables.
    modDir - your mod base directory
    gameDir - The Witcher 3 Wild Hunt base directory
    modKitDir - Official ModKit base directory
  • Save changes and run the file.
  • Check that your mod modGwentCardsAttributes has been copied to The Witcher 3 Wild Hunt mods directory.

Other mods

Gwent Cards and Textures
Gwent Cards and Strings