Difficulty help with a certain mod

Users who are viewing this thread

So i need a bit of a help. There's a certain discontinued mod which i wont name that is forcing you to play a certain way. I changed many things to my liking and for personal use by tinkering with the files but i can't figure out this last problem.

For example, damage to player/friend is always on "Normal", combat and campaign AI is always "Good" and combat speed is always on "Fastest". If you lower it in settings it just reverts it back to the highest values above. My question is, well how do i change it? Is it a script or something that's forcing it to revert or what? Which file should i be tinkering with? Any help would be highly appreciated.
 
This is hilariously shady.

I have a million questions, but, you should be able to open triggers.txt or simple_triggers.txt and search for operations ids 261 263 265 267 269 271. These are difficulty set operations.

When you find them it should read as like 269 1 4 which is setting the combat speed to 4 (fastest) when it is called.

In simple trigger's you would do something like
Code:
1.000000  19 1230 1 648518346341351627 501 3 648518346341351445 27 0 1096 2 432345564227567630 0 4 0 31 2 144115188075856931 0 2133 2 144115188075856931 1 2124 1 100 729 2 0 7050 730 2 0 7200 1626 2 648518346341351633 0 3 0 32 2 144115188075856177 0 32 2 144115188075856166 0 30 2 144115188075856174 1 2270 1 1224979098644774912 31 2 144115188075856173 0 30 2 1224979098644774912 144115188075856178 2147485921 0 1030 3 0 0 0
# change to
1.000000  20 31 2 0 1 1230 1 648518346341351627 501 3 648518346341351445 27 0 1096 2 432345564227567630 0 4 0 31 2 144115188075856931 0 2133 2 144115188075856931 1 2124 1 100 729 2 0 7050 730 2 0 7200 1626 2 648518346341351633 0 3 0 32 2 144115188075856177 0 32 2 144115188075856166 0 30 2 144115188075856174 1 2270 1 1224979098644774912 31 2 144115188075856173 0 30 2 1224979098644774912 144115188075856178 2147485921 0 1030 3 0 0 0
I think I have never done manual text edits, but from my understanding, after the time for a simple trigger is the number of operations, so we went from 19 to 20, and added 21 2 0 1 which should read as equal (2 inputs) 0 1 which should always return false

For triggers.txt you would just need to do
Code:
0.000000 0.000000 24.000000  0  17 1492 1 100 1490 1 150 6 3 72057594037927938 360287970189640330 360287970189640352 2121 3 1224979098644774912 72057594037927938 360287970189640330 2105 2 1224979098644774912 648518346341351445 2204 2 1224979098644774913 1224979098644774912 1513 4 72057594037927938 1224979098644774913 13 16 1513 4 72057594037927938 1224979098644774913 12 16 1513 4 72057594037927938 1224979098644774913 14 8 1513 4 72057594037927938 1224979098644774913 15 4 1510 2 72057594037927938 30 1511 1 72057594037927938 2149 2 72057594037927942 72057594037927938 2147483678 2 72057594037927942 2000 2136 3 1224979098644774914 800 1000 1 3 936748722493063585 72057594037927938 1224979098644774914 3 1 0
to
0.000000 0.000000 100000000.000000  0  17 1492 1 100 1490 1 150 6 3 72057594037927938 360287970189640330 360287970189640352 2121 3 1224979098644774912 72057594037927938 360287970189640330 2105 2 1224979098644774912 648518346341351445 2204 2 1224979098644774913 1224979098644774912 1513 4 72057594037927938 1224979098644774913 13 16 1513 4 72057594037927938 1224979098644774913 12 16 1513 4 72057594037927938 1224979098644774913 14 8 1513 4 72057594037927938 1224979098644774913 15 4 1510 2 72057594037927938 30 1511 1 72057594037927938 2149 2 72057594037927942 72057594037927938 2147483678 2 72057594037927942 2000 2136 3 1224979098644774914 800 1000 1 3 936748722493063585 72057594037927938 1224979098644774914 3 1 0
Setting the reset timer to an infinitely high number, making it never refire after the first time
 
I'm at a certain age where i have made it a point in my life not to argue with few mod developers that act like spoiled brats with god complex, so i'd rather be shady than to lose my nerves arguing with them or asking for their help which i won't get anyway.

So what you proposed, to me it looks complicated but if i do it correctly i should be able to freely change the settings in game as in native?

I'll try to do it later when i come home from work and post the results. Thanks a lot for your help and quick response.
 
Ok so i can't figure this out, of all the things you posted i only found this one and nothing else you mentioned.
Code:
-75.000000  5 261 1 2 263 1 2 269 1 4 265 1 0 267 1 0

I figured out that:

261-Damage to player 2(Normal), 1(Easy), 0(Easiest)

263-Damage to friends 2(Normal), 1(Easy), 0(Easiest)

269-combat speed 4(fastest), 3(Fast), 2(Normal)

265-Combat AI 0(Good), 1(Average), 2(Poor)

267-Campaign AI 0(Good), 1(Average), 2(Poor)

Couldn't find the 271, no idea what it does anyway.

I changed those values hoping that even if it "reverts" it will do so to the values i set in the file but yet again it goes to the highest possible difficulty :xf-cry:
 
271 is to set the battle size, so makes some sense it wasn't with the rest.

Based on your snippet shared, your changes should stick. -75.000000 means it is triggered every time you switch to the worldmap, so your changes should be applied just going from inside the options menu and back.

The only thing I can think of is they have multiple triggers applying the effect, with a script obfuscating it. You might need to through scripts.txt and look for something similar to the above and make sure this modder didn't have a back up trigger with slightly different timing calling a script.

Happy hunting! We should get to the bottom of this soon!
 
For the life of me i can't figure it out. It works how i set it in tournaments, tavern fights, village fights, when you fail the disguise and have to fight the guards, in night ambushes but the moment i enter a "real" battle or a siege it reverts to highest settings. Strangest thing ever, i'm loosing my mind 😭.

I'm used to editing easier to understand files, these numbers are giving me a headache...
 
Last edited:
Sounds like they further enforced it inside mission_templates.txt in every battle template.

When scripting it's easy to set up mission_template triggers to be used across multiple templates, but in the compiled text file it will be separated, so when text editing you will need to find the first instance of the trigger that reverts it, edit it, then paste it over all the other identical mission_template triggers.
 
Back
Top Bottom