Dominions 5

Dominions 5

Lets say Im wanting to mod a units
So Im wanting to mod and add units to my game.
Is their a way to unpack the units in the game as textfiles?
I know you can make a mod and create a txt file and edit units in the mod.
Im wanting the text files of the units So I can just copy and paste all of the unit stats.
Is this possible?
I seen in the pinned threads a file with units txt with what seems to be all of them.
Is this file updated for the newest patches?
Last edited by MindЯewind; Oct 3, 2022 @ 9:14pm
< >
Showing 1-5 of 5 comments
Mormacil Oct 4, 2022 @ 3:16pm 
No. The game itself and mods use different systems you can't copy between 1:1. You can do your things only partially.

You can copy between mods 1:1. Alongside the modding manual this should give you 99% of what you can do. So find mods that do stuff you like and read that code.

You can extract the stats of units through the Dom Inspector. This does extract all the unit information and converts it into a system that's usable to users and even has an option to show what it thinks the closest mod commands are. This however isn't a 100% accurate.

There's also files with the sprites of units extracted. So the image files the game uses for ingame graphics. None of that has unit stats in it. But the modding starter pack has some lists of values from things like spell effects and projectile particles. Again not unit stats.

Combining all this should allow you to do what you want by creating it by hand but you can't just copy game code into mods. Mods and the game use entirely parallel systems that create the same results.
MindЯewind Oct 4, 2022 @ 9:35pm 
that makes sense, Ok ill try to extract stats from inspector, I didnt know you could do that but was thinking about that you should be able too.
Thanks

Seems like the inspector could just extract all the data to a mod then you could edit what you want in 1 place.
Last edited by MindЯewind; Oct 4, 2022 @ 9:37pm
Red_Rob Oct 5, 2022 @ 12:19am 
Originally posted by Baboonnnnn:
that makes sense, Ok ill try to extract stats from inspector, I didnt know you could do that but was thinking about that you should be able too.
Thanks

Seems like the inspector could just extract all the data to a mod then you could edit what you want in 1 place.
I still don't think you are quite clear on what Mormacil was saying.

The game files include unit data for all the units in the game, but these are just stored as byte values with no connection to the modding commands in the manual. The inspector can read these and display them, but again even if extracted you just get a list of numbers. If you're hoping for a complete list of all the units in the game with the format #str 10 #hp 10 #att 12 #def 13 etc. that you can then go in and just change a few values, that isn't something that is realistically possible.

To modify a unit you need to use #selectmonster XXX and then use the modding commands in the manual to set the values you want to change to new values. The Inspector is however a fantastic resource for finding the ID numbers and the stats of a unit so you know what to change.
MindЯewind Oct 5, 2022 @ 1:53pm 
Originally posted by Red_Rob:
Originally posted by Baboonnnnn:
that makes sense, Ok ill try to extract stats from inspector, I didnt know you could do that but was thinking about that you should be able too.
Thanks

Seems like the inspector could just extract all the data to a mod then you could edit what you want in 1 place.
I still don't think you are quite clear on what Mormacil was saying.

The game files include unit data for all the units in the game, but these are just stored as byte values with no connection to the modding commands in the manual. The inspector can read these and display them, but again even if extracted you just get a list of numbers. If you're hoping for a complete list of all the units in the game with the format #str 10 #hp 10 #att 12 #def 13 etc. that you can then go in and just change a few values, that isn't something that is realistically possible.

To modify a unit you need to use #selectmonster XXX and then use the modding commands in the manual to set the values you want to change to new values. The Inspector is however a fantastic resource for finding the ID numbers and the stats of a unit so you know what to change.

Hello I modded Dom 4 with dom editor so I have an idea of how modding works.
With dom 5 I have to use only text editor so its a bit different.

he said this:
"You can extract the stats of units through the Dom Inspector. This does extract all the unit information and converts it into a system that's usable to users and even has an option to show what it thinks the closest mod commands are. This however isn't a 100% accurate."

How to extract from inspector? Only copy and paste the values is this what you mean?
Mormacil Oct 6, 2022 @ 12:20am 
You can extract the stats of units datamined from the executable through the Inspector but you can't move them from the Inspector into a modding file wholesale. You'll have the copy and paste the values individually. However typing over would probably be vastly superior, especially as some of the commands the Inspector displays aren't the valid modding command so all that's usable is the value.

You can't automatically get unit templates, you'll have to construct those yourself one way or another.
< >
Showing 1-5 of 5 comments
Per page: 1530 50