I had a go at doing it manually, then I turned to the program...
It's cool! Thanks for making it - I've not seen python done properly, it's very nice.
Unfortunately, for me it causes the game to come up with an error when it attempts to apply a negative quirk during the dungeon exploration, like this:
To restore the quirks file to it's original state I could have used steam to check the files (I think), but instead I changed these lines: if quirk["random_chance"] > 0: quirk["random_chance"] = 0to if quirk["random_chance"] < 1: quirk["random_chance"] = 1 and ran the code again.
Hey there, I'm sorry if my mod caused a break in your game :(. I haven't played in a few years but it was very stable the last time I played. Maybe double check for any other mod incompatibilities, but if it's the not that then I think your approach of adding in a "good" negative quirk sounds like a likely fix!
Hello again. I did a bit of learning. You can do a mod that instead of messing with the quirks themselves, changes one of the rules in the rule file(s).
So you make a file called myname.rules.json which contains this: { "quirks_max_negative": 0 }Then copy that file to the following locations in your mod's folder structure; DarkestDungeon/mods/modname/shared DarkestDungeon/mods/modname/modes/radiant/shared DarkestDungeon/mods/modname/new_game_plus/shared DarkestDungeon/mods/modname/dlc/580100_crimson_court/features/crimson_court/modes/bloodmoon/shared
Hey, I was not able to get the file or the mod to work at all. I throw the mod file to the required location, a window appears and closes immediately. Can you tell me how I should activate the mod?
If you're using the python code, then you want to follow the instructions on the details page of this mod to install it. You will pick `Main Files` version `1.0.0` (or a later version if exists), and follow instructions using that.
If you want the mod only and don't want to use code to make changes, then you'll want to look under Miscellaneous Files for `Mod Form` and download that. But do note that this was made on an older version, and while it will likely still work, it is not maintained.
The point of the python script version is that you don't need to maintain it across versions, just rerun it. Hope this explains it.
While not always, my game seems to crash occasionally whenever I am suppose to get a negative perk. I have no SC of it, but the game says something about line 75 and quirk not found or so. Do you have any idea how I can fix this? Thank you
I don't know what is causing that, maybe a mod conflict? Looking at quirk_library.json within the game files, I just see this: "incompatible_quirks": [ "hard_skinned" ], so maybe one of your characters has hard_skinned and it's crashing on that? Or maybe they have "soft" which is the quirk that owns that code. Other than that I have no ideas.
If you use the mod, you can toggle it. If you use the script, easiest way to revert it is to delete the changed files, and then do a force sync from steam to redownload them.
I tried to cover it in the mod description but here's another guide I found online: https://geekflare.com/how-to-run-python-scripts/
I'll go ahead and also upload the actual files for those that can't get it to work, but I won't be updating it if additional changes come out for the game.
21 comments
It's cool! Thanks for making it - I've not seen python done properly, it's very nice.
Unfortunately, for me it causes the game to come up with an error when it attempts to apply a negative quirk during the dungeon exploration, like this:
To restore the quirks file to it's original state I could have used steam to check the files (I think), but instead I changed these lines:
if quirk["random_chance"] > 0:
toquirk["random_chance"] = 0
if quirk["random_chance"] < 1:
quirk["random_chance"] = 1
and ran the code again.
Keeping the mod, I have altered one negative quirk so it does the same as it's positive counterpart, and enabled that one negative quirk:
[edit]
Thanks again!
So you make a file called myname.rules.json
which contains this:
{
Then copy that file to the following locations in your mod's folder structure;"quirks_max_negative": 0
}
DarkestDungeon/mods/modname/shared
DarkestDungeon/mods/modname/modes/radiant/shared
DarkestDungeon/mods/modname/new_game_plus/shared
DarkestDungeon/mods/modname/dlc/580100_crimson_court/features/crimson_court/modes/bloodmoon/shared
If you want the mod only and don't want to use code to make changes, then you'll want to look under Miscellaneous Files for `Mod Form` and download that. But do note that this was made on an older version, and while it will likely still work, it is not maintained.
The point of the python script version is that you don't need to maintain it across versions, just rerun it. Hope this explains it.
Thanks in advance!
"incompatible_quirks": [
so maybe one of your characters has hard_skinned and it's crashing on that? Or maybe they have "soft" which is the quirk that owns that code. Other than that I have no ideas."hard_skinned"
],
I'll go ahead and also upload the actual files for those that can't get it to work, but I won't be updating it if additional changes come out for the game.
Hope this helps.