Possible collision with character bonuses being changed
Posted: Mon Dec 16, 2019 7:28 am
I'm playing with two mods that can change a bonus, and I'd like help in narrowing down an issue of "the changes/values aren't happening as expected".
One mod uses the rpg system, so I'd expect only when I add points or something is triggered in that mod, my crafting speed will change.
I'm trying to update an equipment mod that changes attributes, and if I have a +/- effect on craft speed, the additions always work, but rarely, the subtraction effect was more than expected (in this case, doubled). I've logged when the event triggers (on_player_removed_equipment), and the error only seemed to happen when I removed at least two of the equipments at once (only tried two). I did a log and the event always seems to fire once, and has the proper count (2), but randomly I'll get an extra subtraction. I went into a new game with /cheat in console, but I think because it makes crafting "instant" the crafting speed modifier is disregarded, and worse, gets set to 0, so even if it increases by a custom research, there is no change. I can equip the equipment and get +, but since I can't seem to go below 0, there's no way to tell if the extra subtraction triggers at all.
Other than logging the value every tick and trying to identify when it changed and go from there, I'm wondering if anyone has any suggestions (like a logger that can find when and what/how a single monitored value was changed).
I've yet do all the basic things: I didn't think of trying to set it to 10 while in /cheat mode and go from there, so I need to try that.
One mod uses the rpg system, so I'd expect only when I add points or something is triggered in that mod, my crafting speed will change.
I'm trying to update an equipment mod that changes attributes, and if I have a +/- effect on craft speed, the additions always work, but rarely, the subtraction effect was more than expected (in this case, doubled). I've logged when the event triggers (on_player_removed_equipment), and the error only seemed to happen when I removed at least two of the equipments at once (only tried two). I did a log and the event always seems to fire once, and has the proper count (2), but randomly I'll get an extra subtraction. I went into a new game with /cheat in console, but I think because it makes crafting "instant" the crafting speed modifier is disregarded, and worse, gets set to 0, so even if it increases by a custom research, there is no change. I can equip the equipment and get +, but since I can't seem to go below 0, there's no way to tell if the extra subtraction triggers at all.
Other than logging the value every tick and trying to identify when it changed and go from there, I'm wondering if anyone has any suggestions (like a logger that can find when and what/how a single monitored value was changed).
I've yet do all the basic things: I didn't think of trying to set it to 10 while in /cheat mode and go from there, so I need to try that.