How would I create a Hero?

I want to edit/create a new hero for each of the players in a session.

Is this possible with VCMI? I know in the original game it was really difficult but I assume with VCMI it at least streamlines the process? If it is possible I’d love to know where to start.

Edit:
I have attempted to create a new hero using the documentation, but it doesn’t appear in-game under Castle, even though I’ve set the class as “knight” I’ve also attached the heroes.json file, and pictures of how the folders are structured.

Hi.
Don’t see anything clearly wrong at a glance.

Try starting VCMI_Client.exe directly (instead of going through launcher) and check for any warnings in console related to your mod.

Also, try using unique paths. For example, instead of config/heroes.json use config/maethedoctor/heroes.json or anything else that definitely won’t appear in other mods.

Loading it from the client let me see that it failed to load the mod.

I did also give it a unique path like you reccomended, is there any steps I might’ve missed?

Scroll console window a bit - there should be other error messages above.

Or you don’t see any?
Can you upload Documents\My Games\vcmi\VCMI_Client_log.txt?

Sorry my bad, it mentions that the text file was not found even though it is there?
image

Here is the client log also. Sorry about the jump between upload sites, I’m a new user so I have to use the work-around sites until I get permission to upload files.

Remove conten/ from filepath. Should begin with config/

This unfortunately did not work, it gave me the same “file not found” error.

Filepath should be "config/maethedoctor/heroes.json" if you have maethedoctor folder under config folder or "config/heroes.json" like in your first post. Game must know exact location of you heroes.json file

image

In mod.json I added this also,

“heroes” :
[
“config/maethedoctor/heroes.json”
]

This should be laid out right then, no?
But it still doesnt work

Can you attach your mod here, even without graphics?

I have to send you to a file upload site but here is the mod

Here’s fixed mod
Custom Heroes.zip (9.3 KB)

Thank you for the fixed inferno specialty, but VCMI_client.exe still fails to locate heroes.json, did I lay out the file path in mod.json wrong? (I did try setting it like you did for the 2 graphics in the heroes.json file, but that also failed)

First I created content folder and put inside it config and data folders. Just compare your and my version.

And filepaths to .json file must beggin from config/
but
Data folder and Sprites folder are default for graphics, so filepath should look: "large" : "big.png" not "large" : "data/big.png"

Okay that works now, thank you very much.

Now I’m working on the custom class, am I able to entirely skip the map object and just attach a different classes battle anims?

I don’t know what exactly you mean about custom class. But check neutral-heroes mod or tok-heroes for reference.

How do I access their data? They don’t show up in the mods folder.

image

image
You have to refresh repository and install them

I reloaded and then installed them, but they still haven’t appeared in the mods folder, are they stored elsewhere?

Edit: They are stored in “My Games” found them!

So they use their own animations and sprites, which I can’t do right now/possibly ever, is there a way to use the vanilla ones?