0 of 0

File information

Last updated

Original upload

Created by

ZeraphimaZekerasy4

Uploaded by

vikpr

Virus scan

Safe to use

Tags for this mod

About this mod

This is a hack/fix for the mod for DawnOfMan which you can find here: https://www.nexusmods.com/dawnofman/mods/1
All kudos etc. go to the original mod author, ZeraphimaZekerasy4. I just tweaked it a bit to make it working with the current version.

Permissions and credits
Changelogs
[Update 07/08/2020] Relased the updated mod for the game version 1.6.1, and also managed to fix that animal spawn multiplier that was cut out in the first mod fix version. Also, according to this issue the fix version 1.1.1 doesn't work with the game 1.5.1; since the game 1.5.1 isn't available anymore I couldn't reproduce the issue and test it, so I had to compile a fix "in blind" and I can't guarantee it to work.

[Update 20/07/2020] The new game version 1.6.0 that is currently in the experimental branch had some changes in the raid management methods. Also, as it's still in experimental the mod may stop working if they change something again. I've uploaded the fix but it probably will not work for the previous game versions. So if you're using the game version 1.5.x or earlier downoad the mod version 1.1.1.
The fix contains the dll and the Info.json file, the latter only contains the version number update to make it evident in the logs/UI that you have the updated version.

TL;DR instructions:
  • Install Unity Mod Manager from https://www.nexusmods.com/site/mods/21/
  • Download the original mod from https://www.nexusmods.com/dawnofman/mods/1 and install it in the Unity Mod Manager. Check the mod manager page for instructions on how to install mods
  • Download this fix, unpack it somewhere (there should be two files) and copy them to .\DawnOfMan\Mods\DoMJustSomeCheatMod , overwriting the files that are there.
  • When the game is started and you see the main menu the unity mod manager window should pop up with all the loaded mods and their settings. Adjust the settings to your liking and start/load a game. To call the mod manager during the game press CTRL+F10.





This is a fix of the original mod, done by some hacking/refactoring of the original dll. You're welcome to follow my instructions from the mod's comments, which I quote:

The fix for the "ERROR: MissingMethodException: Method not found: 'DawnOfMan.RaidParameters.getMin'." is pretty easy (well, it is if you
have some experience with .NET/dnSpy, the sources of this mod don't seem
to be available so you'll have to do some hacking).
Get the dnSpy if you don't have it (it's free, on GitHub), open the
steamapps\common\DawnOfMan\Mods\DoMJustSomeCheatMod\DoMJustSomeCheatMod.dll
, in the left tree navigate to
DoMJustSomeCheatMod.dll->DoMJustSomeCheatMod->RaidMod->PostFix,
the problem is on the line that looks like
int num = Singleton<RandomGenerator>.Instance.range(__result.getMin(), __result.getMax() + 1);
The problem is that the getMin() and getMax() methods in the game are now private and take an additional parameter.
To fix it first you need to add to dnSpy all DLLs from
DawnOfMan\DawnOfMan_Data\Managed\ and
DawnOfMan\DawnOfMan_Data\Managed\UnityModManager to avoid the compile
errors (just open them like you did with the mod dll). Then just right
click on that line and select "Edit method (C#)", change that whole line
to "int num=1;" (without quotes), click the compile button (right
bottom) and save the changes. This will remove some randomness from the
"force raid" cheat but who cares as long as it works.

UPDATE: Apparently there's another issue, after the "hack" given above the
AnimalMult cheat stops working (probably falut of dnSpy, I have no clue
how typeof(int) can become null but it does happen). To solve it remove
the HarmonyPatch attribute from the AnimalMult class in the
DoMJustSomeCheatMod, you'll lose the animal spawn multiplier but the
rest should be working.


If you can't do it for whatever reason and you still trust me (which you shouldn't, I might be an evil hacker for all you know) you can download the fixed dll, I tested it on v 1.1.1 in May 2019 and it seemed to work fine.