Dawn of Magic 2 Guide

Modding Dawn of Magic 1 for Dawn of Magic 2

Modding Dawn of Magic 1

Overview

How to create new: items, rune words, materials and balance: spells, characters etc!

How to Use the extractor tool

Tool is here: [link]

Here’s how to get all the files out of the media.bm:

1) open the tool.exe.
2) do “open” get the .bm file
3) extract all to some folder

Here’s how to compile those files into a new media.bm:
1) edit the files in that folder to your liking
2) open the tool.exe again
3) do “add files”, select folder you extracted the files to and edited them
4) do save bm. Save as media.bm in the game dir

Remember to keep a copy of the original media.bm in case you screw up something. I also recommend a copy of all the extracted files.

Editing .mui and .json files

The files are simple, but not nice to read. First line shows you what each element means.

For example:
@head;name;cost
apple;Apple;5

@head is usually the identifier, name is the name of it in game.

A more realistic example is:
@head;name_eng;droprate
amulet_medium_013;Cold Eye;0.001

To edit it you have 4 options that i know of:

* read the file in notepad++. This is not recommend for large files like items.mui but for smaller ones you can do this
* use a program to open and save the file as a .csv file, then rename it to .mui. Make sure you set the delimiter to “;” without the “. Probably excel or a free alternative
* Use my program[treborx555-gmail.visualstudio.com] to load it into code and manipulate the data or just to turn it into json for easy editing. Though it’s not perfect.
* make your own program to edit it

Last 2 options are recommended if you want to automatically create variations of items for example. Say there’s 200 items and you want 50 variations of each. That’s 10.000 items. Not to mention doing this by hand means any mistake sets you back minutes or even hours to fix it, and you’ll probably be playing the game and suddenly notice an item has the wrong name, or absurd stats because of a mistake.

Files you want to edit

First of all, you want to edit the .mui files. Search for .mui and copy all of them to a folder somewhere to pick which ones you want to edit.

I personally am editing these ones:

* characters.mui > this seems to have all the entities in the game: your heroes, enemies, your summons etc. I used this to buff the earth elemental skill.
* item_sets.csv > it seems some csv files are used too, but i didn’t yet try edit this one.
* item_subclasses.mui > here you edit rune slot amounts. Every item has a subclass that determines it’s rune slots and where it’s worn
* items.mui > here you can do what most people want, add new unique items!
* rune_words.mui > here you add the stats of the unique items. But that’s not all, here are the stats for most things that use stats, like: tattoos, morphing, item sets, materials and yes rune words.
* rune_stats.mui > all the stats in the game. they seem hard coded, you can’t seem to add new stats even if you wanted to say make a stat that has a higher maximum and make it rare. But you can edit their values.
* spell.mui > edit nearly all values of spells like their mana cost, secondary dmg or even amounts of certain things like bones, twisters etc.
* version.txt > edit the game version so you can be sure you’re using your mod.
* rune_sets.csv > another .csv file. Edit this to add new rune words, then add their stats to rune_words.mui

Editing Items.mui

  • Always_highlight > means it shows on the screen even if you aren’t clicking the show items button.
  • Unique > all i know is that it means the name is yellow
  • generate_by_name > probably stops it from being dropped randomly, like totem of the fire termite. So only fire termites drop it. (but i don’t think you can edit this if it’s true, unless you can decompile .lua files
  • Item_lit_name > the name
  • use_char_required > whether it’s a lvl, int, str or vit requirement
  • Use_char_value > the amount of the required stat/lvl
  • Available_from_level > means mobs and shops start dropping it at map that lvl
  • RuneWord_socketed > this is the stats of the item. Usually it’s to give unique items stats, but some items like earrings have this too (tho it just adds +weight)

.lua files

These files contain some logic, the most important one is [link] . Unfortunately they are compiled and i didn’t have luck to be able to decompile them from available tools online, (and i have zero experience with this kind of stuff) so i’m putting this here in case someone actually does know how to do it. Would be really appreciated!

SteamSolo.com