Dungeon Lords Steam Edition

Dungeon Lords Steam Edition

Error3 Dec 25, 2020 @ 7:27pm
Cheat Engine File and Item Name Fix
I recently dusted off this game for a full playthrough and spent a lot of time tinkering with how it worked under the hood.

This resulted in me creating an extensive cheat engine file which catalogs the locations in memory of quests, heraldries, key items, stats, skills, classes, etc.

I found this file to be very useful for testing the formulas of the game's various mechanics as well as deleting excess key items that are no longer necessary, and fixing various bugs one can encounter.

The inclusion I found most useful, is a small code injection option labeled "Detailed Tooltips" that alters/fixes the tooltips for several items in game.
A little background, numerous items in game have bogus names/tooltips.
For example, an item can be described as "Pro Ice" in the name without having any ice resistance. This is because a wrong bit is used to calculate the name of the item for display. Edit: I realized the nature of this bug is that resistance bonuses on armor are not shown on the tooltip, but do in-fact actually increase the resistance.

This fix I included will show all weapons/armor as "+ X" in their names, where X is the byte indicating the cost multiplier of the item (the same way white item (rarity 2) names are currently shown). This same byte is also used for weapons to determine how well they scale with Str (it's a linear relationship). Without the information made readily available in this fix, there was no way to visually tell how strong a melee weapon actually was, as it was impossible to know how well it would scale with Str without manually testing. By always having the +X after the name, it becomes easy. Notably, a large number of vendor items would previously appear indistinguishable from drops, but actually scale much better with high str.

I am happy to share my work here with the community, and if anyone has questions regarding the use of the file or how certain mechanics work, I will do my best to share any knowledge I found on them.

Cheat Engine File: https://drive.google.com/file/d/1SW-w0Rs_rYc8PtScErvE3I_M34jUlNZx/view?usp=sharing
This file requires cheat engine to use. Open the file in cheat engine, then hook into the Dungeon Lords executable and toggle the inejction(s) or modify the memory bits as desired.
Last edited by Error3; Jan 16, 2021 @ 9:58am
< >
Showing 1-7 of 7 comments
Anschluss Jan 15, 2021 @ 12:37pm 
uh, do you know how to add stats to current items?
Error3 Jan 15, 2021 @ 3:08pm 
Yeah.
Load the cheat engine file and attach to the dungeon lords process.
Place the item you want to modify in the top-left slot of the "Keys and Quest" bag. (this is the only bag slot I added extra memory address labels for).
Expand the Bags->"Keys and Quest"->"Key Item 1 Attributes" headers in cheat engine
From here, there are 2 values that you can modify for stats.
The first is "Mod Magnitude", this will determine how many of the stats will be gained.
The 2nd is "Mod Type", this will determine which stats are gained
Working values for Mod Type:
0 - No Effect
1 - Strength
2 - Intellect
3 - Dexterity
4 - Agility
5 - Vitality
6 - Honor
7 - Defense (grants armor)
8 - Prowess (grants parry)
9 - Striking
10 - Cunning - (grants critical strike rating, a terrible stat)
11 - Speed (grants 1% haste per mod magnitude)
12 - Might (grants +1 min and max damage per magnitude)
13 - Power (grants Power stat, I have no idea what this does)
14 - Prestige (Influence)

For the values higher than 14; the resistance will be granted by the item, but the magnitude won't show up on its tooltip. You can equip and check the character stats to check the difference and verify it is working though.
15 - Pro Magic
16 - Pro Fire
17 - Pro Ice
18 - Pro Poison
19 - Pro Petrify
20 - Pro Gas

Items with a rarity from 3-5 (Green/Blue/Purple) will show the name of the effect type in the name, but grey/white items that have effects will not. I don't know if it's possible for any non-rare items to be rolled with modifiers naturally.
Last edited by Error3; Jan 15, 2021 @ 3:10pm
bro Jan 16, 2021 @ 10:35am 
may be who know how to terminate or replace items in inventory? i have 20 stones from the castle of shadows and cant to remove this =(((
and more, for work with game now need work with .dat file, i used gameconquer with wine in linux for updating stats) but i not know adresses in inventory and keys for replace items
I miss the old unlimited inventory (
Last edited by bro; Jan 16, 2021 @ 10:40am
Error3 Jan 16, 2021 @ 2:45pm 
@bro

Yes, deleting items is very easy to do.
I indexed the memory addresses for the entire top row of the quest items bag.

After loading my CT file, place the items you want to delete in the top row of the quest item bags.
In CE, open the headers for "Bags"->"Keys and Quest".
Change the number for "Key Item 1", "Key Item 2", etc. to 0 to delete the items.

You can also change the number to that of any other item if you need to spawn in an item you need.

Here's a list of the hex item codes: http://dogecandy.com/cheats/dungeon-lords-mmxii-item-hex-codes/
For whatever reason, I always had to reverse the order of the 2 bytes though. For example, the first item "Punch" listed as 0100, had to be entered as 0010 for me.

It's also possible to hex-edit your save files. Search for the hex value of an item, and change it.
Last edited by Error3; Jan 16, 2021 @ 2:50pm
bro Jan 21, 2021 @ 1:11am 
ok i found adresses this rows in dat DLSteamEdition.dat
key 5 033B57BE
key 4 033B578E
key 3 033B575E
key 2 033B572E
key 1 033B56FE
thx
Last edited by bro; Jan 21, 2021 @ 3:11pm
浪人 Jan 27, 2021 @ 1:28pm 
there goes my lead on DL Steam Edition :steammocking:
is there a way we could get a old version up on steam ?
Quixotic Jun 30, 2023 @ 10:49pm 
Thanks for the post, I was able to help a friend complete a class quest that we screwed up!
< >
Showing 1-7 of 7 comments
Per page: 1530 50