Documentation: Modding

Learn about the game mechanics and modding functionality.
Locked
User avatar
Ludovic
Site Admin
Posts: 124
Joined: Sun Feb 28, 2016 7:23 pm

Documentation: Modding

Post by Ludovic » Tue Mar 20, 2018 9:56 am

Place a subfolder below /Mods/ in the user data folder.

An example of where this could be found:
C:\Users\<myusername>\AppData\LocalLow\Valravn Games\Wizards and Warlords\Mods\

The Mods dialog in the game menu should indicate this location to you.

Placing various files and folders in this folder will determine the behavior of the mod.

You can place a toc.txt file. The first line in this file will be read as the name of the mod. Otherwise the folder name will be used.

If you create a UnitIcon folder, it will be scanned for png files with names matching those from the following list:

sword
archer
light_cvalary
heavy_cavalry
heavy_infantry
pikeman
shield_infantry
irregular
bear_paw
wolf_paw
monster_claw
air
fire
water
earth
runestone
savage_tusk
headstone
cogs
monster_wing
questionmark
wisp

They should be rectangular and ideally power of 2 in size (32, 64, 128, etc.). They will be scaled to the relevant size by the game, but be aware that using extremely large textures may cause memory issues.

Any found will be used to replace the default unit icon. So if you add archer.png and earth.png, those two files will replace the default ones when the mod is loaded, and all other icons will remain as normal.

If you create a MapGfx folder, it will be scanned for png files with names matching those from the following list (note that image size should match the size listed or they will be scaled incorrectly):

(1024x1024):
savage_village
savage_town
savage_city
generic_village
generic_town
generic_city
wizard_tower_2

(64x64):
tower
keep
fortress
castle
shrine
dungeon2c
dungeon2
pyramid
farm
mine

(16x16):
mana_node
ruins

(256x256):
pyramid

Additional graphics and various constants used in game mechanics will be exposed in future updates, and UI improvements will be made for managing/creating mods. "Locked" image sizes are also planned to addressed in future updates.

Locked

Who is online

Users browsing this forum: No registered users and 1 guest