Auto-translated
Map name: dueliki
Author: me
Basically, I decided to add something that would be interesting for those who would like to use the duel option, duel 3*3, but the standard one has become quite boring.
The main idea is more or less borrowed from the "The Last Stand" multiplayer, thanks for that. However, the above-mentioned map still requires some tweaking and preparation (i.e., time, if you want to quickly create a random battle); you can't add mini-arts and sworn enemies automatically, you can't give a hell wolf and a chain – it's not the author's fault, the game just doesn't allow it... But here, even orcs can do it :)
So, I made something that will solve the above-mentioned problem. I don't have much time, only yesterday evening and this morning, so it's a bit rough, but it works. When I have more time, I'll add a configuration for the number of troops in a text file + I might fix the spells, as it's too random now, and maybe add some other skills for levels lower than 40, reduce the randomness of stats a bit, and add the patterns that exist in the original races (sometimes you get a level 40 orc with 11 attack). I also plan to add support for NCF creatures – again, when I have time.
As for what I definitely won't do: the hero icons remain the same. I don't know and don't want to deal with it; I want people to appreciate the functionality. If there are comments specifically about the functionality, that's fine; unfortunately, I can't and don't want to spend time on the visuals.
Regarding balance, the goal is not to create perfectly balanced heroes. Firstly, it's more difficult, and secondly, playing with roughly equal heroes will be uninteresting, especially if the opponent is the AI. If something really wild comes up, well, okay.
The creature growth is slightly different from the original.
Two archives are attached – one of them is the map. The map itself won't appear; just put it in the Maps folder, and the duel heroes will be replaced; no single-player or multiplayer map will be added.
When you get tired of the heroes you have, or you don't like the distribution, you can regenerate the map. Install Python if you don't have it, go to the unpacked duel_generator folder, and run python duel_generator.py. You will get a new map, dueliki.h5m, put it in the Maps folder (of the game, not a folder you create inside), and you will get a new set of heroes.
Suggestions are welcome on how to make a hero be able to use, for example, Lay on Hands (the skill appears in the spellbook, but it's red and can't be used), how to increase the limit to 3 heroes of each race, and any bugs you find.
Updated – download duel_gen2.zip
1) Bloodlust has been removed from orcs so that a more useful spell can fit in the spellbook.
2) An error in the generation of rune spells has been fixed.
3) The Mighty Roar skill is now granted correctly.
UPDATE. :smile14: (re-uploaded, the IS_USE_EXCLUDED option works correctly)
I made a version for NCF. The generator automatically searches in a copy of the "heroes/data" folder, looks for pak files and creature growth. It only searches among those that are in the data folder (it doesn't search in usermods h5u), which are correctly formatted (they have a scripts folder with a Lua file that defines the creature).
The map (dueliki.h5m) is created by the generator based on the contents of my data folder. If yours is different, some heroes may have an incomplete army or some standard creature with stats of one.
For convenience, it's easier to regenerate it for each player. Install Python if you don't have it, go to the unpacked duel_generator folder, and run python duel_generator.py. You will get a new map, dueliki.h5m, put it in the Maps folder (of the game, not a folder you create inside), and you will get a new set of heroes.
There are two configuration files inside. It is recommended to change them before generating and customize them to your liking.
1. creatures.json. It is opened and edited with any text editor, preferably not Notepad.
It has several sections.
The STANDARD_CREATURES section is for standard creatures; the first number is its string code (e.g., CREATURE_PEASANT), and the second is the growth. If you don't like the standard growth in the balance, change it to your liking. If you do, don't touch it. You can use decimal numbers, for example, 2.5.
The BAD_FORMED section is for manually defined NCF creatures. If a creature is described here, its final parameters will be taken from here, not from the Data folder. For manual parameter specification. If you like it, don't touch it.
The EXCLUDED section is a list of questionable NCF creatures that can be disabled with one setting.
2. config.json. It is opened and edited with any text editor, preferably not Notepad.
It has several sections.
CREATURES_FILE – the file from which we read the list of creatures above; I recommend not touching it.
IS_USE_NCF – if set to 0, it will work like a standard map. To avoid keeping both in the Maps folder, enable or disable NCF creatures in/from the generation.
IS_GIVE_RANDOM_MASS_SPELLS – if 1, it gives heroes random mass spells. I recommend not disabling this for the sake of interest.
IS_USE_BADFORMED_ONLY – if 1 (enabled), only the creatures described in the BAD_FORMED section of creatures.json will be available for NCF generation. If this option is enabled, it will not create a copy of Data and search in it. In case someone doesn't trust the generator or there are creatures that are not standard, without a scripts folder or something else.
COUNT_GROWTHES – in the generation, each hero will have this many standard creature growths. For example, by default, with 100, you get an average of 100 level 7 creatures, 200 level 6 creatures, etc.
DATA_FOLDER_PATH – copy the path to your data folder with pak files here for automatic creature search.
DONT_COPY_PAK_FILES – a list of files in the folder above that definitely don't have new creatures and will not be copied during map creation.
IS_USE_EXCLUDED – if set to 0 (disabled), creatures from the EXCLUDED section of creatures.json will be excluded from random generation. For example, if there is a buggy creature that likes to crash, and you're tired of it, add it here so that it doesn't appear.
For creatures of level 8 and higher, the growth is automatically set to 0.5 (with an average of 100 standard creatures, instead of them, 50 level 8+ creatures may appear in the distribution). If you don't like it (you need to make it less or more), add your own growths in the BAD_FORMED section of creatures.json.
Screenshot of an example distribution – https://c2n.me/48ypbeL (Remember, the hero icons remain the same, but the heroes themselves are different, and their specializations too – only the appearance is the same)
The main signs that something went wrong:
1) an empty army slot
UPD2 24.08.2020
Updated. I took the skills from the list; I noticed it myself earlier, but no one said that instead of the banshee's scream, the undead have the archer summoning skill. The update fixes the skills, and now the banshee's scream is not given as a dark perk for all other races and does not leave a free slot in dark magic. To use, download duel_gen_NCF2.zip
Author: me
Basically, I decided to add something that would be interesting for those who would like to use the duel option, duel 3*3, but the standard one has become quite boring.
The main idea is more or less borrowed from the "The Last Stand" multiplayer, thanks for that. However, the above-mentioned map still requires some tweaking and preparation (i.e., time, if you want to quickly create a random battle); you can't add mini-arts and sworn enemies automatically, you can't give a hell wolf and a chain – it's not the author's fault, the game just doesn't allow it... But here, even orcs can do it :)
So, I made something that will solve the above-mentioned problem. I don't have much time, only yesterday evening and this morning, so it's a bit rough, but it works. When I have more time, I'll add a configuration for the number of troops in a text file + I might fix the spells, as it's too random now, and maybe add some other skills for levels lower than 40, reduce the randomness of stats a bit, and add the patterns that exist in the original races (sometimes you get a level 40 orc with 11 attack). I also plan to add support for NCF creatures – again, when I have time.
As for what I definitely won't do: the hero icons remain the same. I don't know and don't want to deal with it; I want people to appreciate the functionality. If there are comments specifically about the functionality, that's fine; unfortunately, I can't and don't want to spend time on the visuals.
Regarding balance, the goal is not to create perfectly balanced heroes. Firstly, it's more difficult, and secondly, playing with roughly equal heroes will be uninteresting, especially if the opponent is the AI. If something really wild comes up, well, okay.
The creature growth is slightly different from the original.
Two archives are attached – one of them is the map. The map itself won't appear; just put it in the Maps folder, and the duel heroes will be replaced; no single-player or multiplayer map will be added.
When you get tired of the heroes you have, or you don't like the distribution, you can regenerate the map. Install Python if you don't have it, go to the unpacked duel_generator folder, and run python duel_generator.py. You will get a new map, dueliki.h5m, put it in the Maps folder (of the game, not a folder you create inside), and you will get a new set of heroes.
Suggestions are welcome on how to make a hero be able to use, for example, Lay on Hands (the skill appears in the spellbook, but it's red and can't be used), how to increase the limit to 3 heroes of each race, and any bugs you find.
Updated – download duel_gen2.zip
1) Bloodlust has been removed from orcs so that a more useful spell can fit in the spellbook.
2) An error in the generation of rune spells has been fixed.
3) The Mighty Roar skill is now granted correctly.
UPDATE. :smile14: (re-uploaded, the IS_USE_EXCLUDED option works correctly)
I made a version for NCF. The generator automatically searches in a copy of the "heroes/data" folder, looks for pak files and creature growth. It only searches among those that are in the data folder (it doesn't search in usermods h5u), which are correctly formatted (they have a scripts folder with a Lua file that defines the creature).
The map (dueliki.h5m) is created by the generator based on the contents of my data folder. If yours is different, some heroes may have an incomplete army or some standard creature with stats of one.
For convenience, it's easier to regenerate it for each player. Install Python if you don't have it, go to the unpacked duel_generator folder, and run python duel_generator.py. You will get a new map, dueliki.h5m, put it in the Maps folder (of the game, not a folder you create inside), and you will get a new set of heroes.
There are two configuration files inside. It is recommended to change them before generating and customize them to your liking.
1. creatures.json. It is opened and edited with any text editor, preferably not Notepad.
It has several sections.
The STANDARD_CREATURES section is for standard creatures; the first number is its string code (e.g., CREATURE_PEASANT), and the second is the growth. If you don't like the standard growth in the balance, change it to your liking. If you do, don't touch it. You can use decimal numbers, for example, 2.5.
The BAD_FORMED section is for manually defined NCF creatures. If a creature is described here, its final parameters will be taken from here, not from the Data folder. For manual parameter specification. If you like it, don't touch it.
The EXCLUDED section is a list of questionable NCF creatures that can be disabled with one setting.
2. config.json. It is opened and edited with any text editor, preferably not Notepad.
It has several sections.
CREATURES_FILE – the file from which we read the list of creatures above; I recommend not touching it.
IS_USE_NCF – if set to 0, it will work like a standard map. To avoid keeping both in the Maps folder, enable or disable NCF creatures in/from the generation.
IS_GIVE_RANDOM_MASS_SPELLS – if 1, it gives heroes random mass spells. I recommend not disabling this for the sake of interest.
IS_USE_BADFORMED_ONLY – if 1 (enabled), only the creatures described in the BAD_FORMED section of creatures.json will be available for NCF generation. If this option is enabled, it will not create a copy of Data and search in it. In case someone doesn't trust the generator or there are creatures that are not standard, without a scripts folder or something else.
COUNT_GROWTHES – in the generation, each hero will have this many standard creature growths. For example, by default, with 100, you get an average of 100 level 7 creatures, 200 level 6 creatures, etc.
DATA_FOLDER_PATH – copy the path to your data folder with pak files here for automatic creature search.
DONT_COPY_PAK_FILES – a list of files in the folder above that definitely don't have new creatures and will not be copied during map creation.
IS_USE_EXCLUDED – if set to 0 (disabled), creatures from the EXCLUDED section of creatures.json will be excluded from random generation. For example, if there is a buggy creature that likes to crash, and you're tired of it, add it here so that it doesn't appear.
For creatures of level 8 and higher, the growth is automatically set to 0.5 (with an average of 100 standard creatures, instead of them, 50 level 8+ creatures may appear in the distribution). If you don't like it (you need to make it less or more), add your own growths in the BAD_FORMED section of creatures.json.
Screenshot of an example distribution – https://c2n.me/48ypbeL (Remember, the hero icons remain the same, but the heroes themselves are different, and their specializations too – only the appearance is the same)
The main signs that something went wrong:
1) an empty army slot
UPD2 24.08.2020
Updated. I took the skills from the list; I noticed it myself earlier, but no one said that instead of the banshee's scream, the undead have the archer summoning skill. The update fixes the skills, and now the banshee's scream is not given as a dark perk for all other races and does not leave a free slot in dark magic. To use, download duel_gen_NCF2.zip