I have confirmed that this is broken in the newest version. When my mod asks the game which bosses have been defeated it should provide a list but instead it is sending back "HilldarBoss3"
That's all it sends back. I don't know if this is a bug within the game, but I need to investigate it more. It kinda works in single player and does not work at all on servers. If I can't get that function to work then I will have to explore other ways to get this working. This would be a good time to strip out all the passive settings that I never wanted to put in.
---------------------------- Update 11/18/2024
Ok so there is a lot to unpack here. The game changed the way bosses are calculated. There is a now a calculation for both the player and the world. This means in theory that the player can have their own conquests different from other players. It's always been a complaint that if, on a server, some the other players kill a bunch of bosses without you, then you still got credit for the boss kill. It appears there is now a player specific count. I have not fully tested the ramifications of this in game but it creates a little bit of work for me. I need to recode my functions. This will take a few days to fully understand the new system and to code it.
I just confirmed this in the Valheim Modding community Discord as well. Several other modders are having to rework their mods.
So this also explains the multiplayer bug listed below. Ok give me a couple of days to work this out. Thanks again.
------------------------------ Updated 11/19/2024
I worked with this more last night have gotten most of the code written. There are several new issues that crop up due to this new layout. For instance the ability of the player to have their own stats is awesome but.... as soon as the player cycles through the bosses with F8, the game now considers that power has been earned. So just a quick cycle and your player now has all the bosses. Not good. I mean technically you should never have the "cycle through the bosses ability" so it's not like the devs thought it would be an issue.
Sure you can fix your player with console command resetkeys, but that will reset all keys for the entire world and the player. The only way really to do this cleanly is to continue using the world keys. It will work fine as it always has. I can probably fix the multiplayer thing too, but the complaint of not having individual boss settings still exists. That I can't fix and really don't want to try.
My only question would be if, the player chooses to use the cheat feature and enable all bosses, which then will automatically log all bosses as being defeated in the playerkeys... how does that affect the game? Does the raid system work by Global Keys or Player Keys? If is player keys then that is very bad. Mostly because a quick cycle through the bosses and the game thinks you, as a player, have defeated all the bosses and therefore your Level-1-ass living in a thatch hut will get goblin raids.. LOL not good. I would think that raids are based on Global keys, but I really don't know.
So there are options, but not really any that everyone will like. I will probably strip out most of the cheat features and bring this back to the original intent. Mostly because I don't really know how the keys are used and I don't want to mess up anyone's game.
--------------------------- Updated 11/20/2024
I figured out the Player keys and have confirmed these details with a few other modders. The Player Key's drive the new Player Raid System. This is a huge problem and essentially will cause issues with players.
I will add now that the changes below are not negotiable. There are other mods. I will also post the code on Github if you feel so inclined to modify or recreate a new mod, please feel free to do so. Not trying to be ugly, just stating my position.
The Problem:
When a user cycles through the Bosses (F8) each boss selection triggers the game to save the boss as completed in the Player Keys. Not a problem if you have actually earned that boss. The problems starts when players use the cheat feature of the mod and set "allow to use all bosses". So when they cycle through the bosses, it saves each boss into the player Key as completed. Then if the "Player Raid" feature is set in the game settings the raid will be determined by the Player Keys. Which means the raid will be harder because the player keys include every boss even though they may not have beaten that boss.
I can't keep that feature in. It will cause lots of anger and players will be pissed that their character is "broken" even though a few commands will fix the problem. I don't want to cause angst. I am a believer that the mod should "do no harm" to the game or player.
The Solution:
So here is the solution. I am prepared for the nasty comments but whatever.
1. This mod will be changed to only allow the bosses that have actually been earned. 2. It is not individualized as that causes problems, only the bosses earned in the current game will be counted (This is how it's currently handled so no changes)
These Features are Gone:
allow all bosses at once allow bosses that you have not yet defeated
I will finish up the mod tonight and probably post it tomorrow morning. Regardless a fix is coming. Thanks again for your patience while I worked through these new game changes.
I don't know about others, but my mod is broken. The update that came out on April 9 broke the system of changing the bosses' strength, they just stopped switching, when I press F8, nothing happens. I do not rule out that this is some kind of problem on my part, because the mod is not on vanilla, but on a build of several dozen mods. But before the update there were no problems. And if this is not some kind of easily solved problem, you can let me download the previous version of the mod, for example from Google Drive or something else. For my build, the functionality of your mod is very important, thank you.
Just to advise, this mod is still broken on servers specifically, resulting in a black screen when you log onto the server. Wish I knew this before rebuilding the server from scratch and batch testing mods lol
Whoa sorry I just saw this. It is due to the serversync version. I am updating my mods today.
Ok it's been updated. I forget to come by here and check the comments. I've been using discord for most support. Let me know if you have any problems. Thanks
Would you consider adding a config option to reset powers after sleeping? I like the idea of a once-per-rest use and it would be more immersive than manually resetting it each time. Either way thanks for the great mod
Honestly since the mod is broken in multiplayer, I am going to take it down. I have tried to fix it, but with the way the game operates on servers, it is broken. It's really hard for me to test multiplayer. Single player is ok, but multiplayer is broken.
Hitting F8 is not cycling the power while on my server. I have confirmed the reset option disabled as in description and the option is true for the ability to stack buffs at the bottom of the config file.
If I start single player the F8 functionality works just fine.
There is a problem with standing close to other players. The power won't activate. I've worked with it a few times and have not been able to fix it. I can take a look again if time permits. Try standing kinda far apart.
EDIT: Nope you are correct the cycling appears to be broken. I am looking at it now. Not sure it will be fixed tonight as it's late but I will work on the next few days.
I found the problem. This mod asks the game for the current keys (bosses) that the player has defeated. The game only has 7 bosses but there are 8 keys with one being blank. That blank key is causing an error that is resulting in a 0 key count which is why the bosses are not changing when selecting F8. I don't know why there is a blank item in the game table but there is. I would guess it might be a placeholder for future but really not sure. I need to work out a way to disregard that blank field by either checking for "blank" or a null value. That might fix it. I am working on this.
I wonder if instead of cycling through known keys using built in calls possibly make a manually populated array with global keynames the player killed and cycle through those. I know that method would cause you more work later if they update the game. Just thinking outloud. Appreciate you looking into this!
Yea, I am working on a few ideas. Really I am trying to figure out where the game is going wrong so I can report it. I can fix the cycling and hope to have it done in the next day or so.
Ok so there is a lot to unpack here. The game changed the way bosses are calculated. There is a now a calculation for both the player and the world. This means in theory that the player can have their own conquests different from other players. It's always been a complaint that if, on a server, some the other players kill a bunch of bosses without you, then you still got credit for the boss kill. It appears there is now a player specific count. I have not fully tested the ramifications of this in game but it creates a little bit of work for me. I need to recode my functions. This will take a few days to fully understand the new system and to code it.
I just confirmed this in the Valheim Modding community Discord as well. Several other modders are having to rework their mods.
So this also explains the multiplayer bug listed below. Ok give me a couple of days to work this out. Thanks again.
Thx for the deep dive! In my case my server is empty but me 90% of the time so I can still use the mod to its fullest :P Otherwise we just all pick different powers for the time being and hit each other with them :P
One idea I had (I'm a powershell scripter by day) was maybe create an item that eats a boss trophy and that stores what powers you are allowed to use. Just throwing ideas out there... maybe a staff we create and make more Forsaken as we go hehehe.
Adding assets to the game is way out of my knowledge base. I've thought about it but the time to learn has not been available. I worked with this more last night have gotten most of the code written. There are several new issues that crop up due to this new layout. For instance the ability of the player to have their own stats is awesome but.... as soon as the player cycles through the bosses with F8, the game now considers that power has been earned. So just a quick cycle and your player now has all the bosses. Not good. I mean technically you should never have the "cycle through the bosses ability" so it's not like the devs thought it would be an issue.
Sure you can fix your player with console command resetkeys, but that will reset all keys for the entire world and the player.The only way really to do this cleanly is to continue using the world keys. It will work fine as it always has. I can probably fix the multiplayer thing too, but the complaint of not having individual boss settings still exists. That I can't fix and really don't want to try.
My only question would be if, the player chooses to use the cheat feature and enable all bosses, which then will automatically log all bosses as being defeated in the playerkeys... how does that affect the game? Does the raid system work by Global Keys or Player Keys? If is player keys then that is very bad. Mostly because a quick cycle through the bosses and the game thinks you, as a player, have defeated all the bosses and therefore your Level-1-ass living in a thatch hut will get goblin raids.. LOL not good. I would think that raids are based on Global keys, but I really don't know.
you rock appreciate the communication and efforts.
I know that spawn that and custom raids, CLLC mods call on the keys which as keys get unlocked the spawns get harder and harder.
For example having the key "defeated_bonemass" could now start spawns or raids requiring that key to have a chance to be enabled so making the keys avail early (if thats what you were considering) would bork the logic tree in those big mods.
Missed your updates. Dont see how anyone would blame you for changes the devs made. Thanks a lot for the details on this! Also thx for understanding the side effect for other mods thar would go crazy with hard raids/spawns with exposed keys. 😀
I have confirmed that this is broken in the newest version. When my mod asks the game which bosses have been defeated it should provide a list but instead it is sending back "HilldarBoss3"
That's all it sends back. I don't know if this is a bug within the game, but I need to investigate it more. It kinda works in single player and does not work at all on servers. If I can't get that function to work then I will have to explore other ways to get this working. This would be a good time to strip out all the passive settings that I never wanted to put in. ---------------------------- Update 11/18/2024
Ok so there is a lot to unpack here. The game changed the way bosses are calculated. There is a now a calculation for both the player and the world. This means in theory that the player can have their own conquests different from other players. It's always been a complaint that if, on a server, some the other players kill a bunch of bosses without you, then you still got credit for the boss kill. It appears there is now a player specific count. I have not fully tested the ramifications of this in game but it creates a little bit of work for me. I need to recode my functions. This will take a few days to fully understand the new system and to code it.
I just confirmed this in the Valheim Modding community Discord as well. Several other modders are having to rework their mods.
So this also explains the multiplayer bug listed below. Ok give me a couple of days to work this out. Thanks again.
I can check. I am thinking of either trashing this mod or redoing it. I let it get so full of feature creep that I hate it now and don't use it. If it doesn't work I can update for the Bog Witch while I figure out what I want to do with it.
It was originally to allow any one of the buffs to be used one at a time. Basically not super overpowered and if you had earned the buff you could change it on the fly. Then players wanted chaining, and all of the bosses at once and the code got complicated and hard to manage. What I might do it bring it back to the original and release the code for anyone that want to keep up the full version. For now it's updated. I appreciate you using the mod and your feedback. Thanks again.
LOL, let me get the bugs under control and I can look at that. I actually had that feature in a testing version and the code is probably still in my test branch. I'll take a look.
I was using a combination of the edited version of Passive Forsaken Powers and Smoothbrain's Passive Powers to have them all active at once, but Passive Powers is throwing errors and causing problems with the latest version of BetterUI Reforged of all things, so now I'm back to the edited version of Passive Forsaken Powers and just grabbing the powers when I log in because they don't persist through logouts and quitting.
You are most welcome. There has been a flurry up updates today because a server group was reporting issues with other mods conflicting. I reworked the code a few times to fix the issue.
Hi, love your work. This mod was working fine until I added a couple more mods, so I know its something to do with some sort of incompatibility but I don't seem to be able to cycle through the bosses anymore suddenly. Its weird it worked for a while, then I died and now I cant.
I haven't added any mods that touch the forsaken powers, besides Valheim Plus (but this has been on since the start)
I tried using the new feature to enable all bosses at one time but it seems to actually be all the bosses at one time and not just the ones I have actually defeated.
Would it be possible to have a toggle for "All unlocked bosses at one time"
Oh very weird, I went back to the stones and activated the power I couldn't switch back to (Eikthyr) and now I can use F8 to go through them again, very odd.
@Lordbok If you play with other people and near them, you can't cycle through all the Forsaken Powers, I think it's a bug, just travel a little bit away from them and you can do it again.
Oh my, thats interesting. Thanks I will try that, I have noticed it working some times and sometimes not, this would explain it.
I also see in the log when it wasn't working it was firing the F8 button twice (two entries saying "ForsakenPowerPlus - Number of Bosses defeated = 2" at the same time, but when its working its just doing it once.
@Lordbok and @jamiesyyth1988 I will look at that multiplayer bug. I didn't know that bug was a thing. I have a server sync version that is in testing so I will look at this issue.
So the way it works is the mod queries the game database and asks it how many bosses you have defeated. This happens every time you hit the F8 button. That's the reason for the multiple logging you see. I haven't experienced the particular problem you described but appreciate the detailed report. I have this testing with a few server groups and will check in with them to see if they are having any issues. Thanks again.
My wife and I are having the same issue with multiplayer. If I go on singly, I have all 6 bosses to cycle through. When she joins me, I only have 4 bosses, seemingly selected at random. The selection sometimes changes in different biomes. If I separate from her -- go through a portal or explore someplace distant -- I get all 6 bosses back. Same happens with her.
I will have to look at this. It's hard for me to test multiplayer because my teenager rarely wants to play Valheim unless there is an update. I have a server but testing multiplayer is difficult. I'm sure this has to do with not properly checking for the local player before querying the defeated boss information.
I am working through a few bugs that crept up in the public test version and will address the ownership issue once those are fixed. The Valheim version in testing has may changes and I need to make sure the mod works. I will update the version soon. Thanks again.
So what's odd about this is that the "defeated bosses" is set in the game database and is a constant for all players. When a boss is defeated all players get "credit" for the defeat. It's not per player... it's set per world.
I need to look deeper into this problem, because it should not be a thing.
I'm seeing the same problem where, in multiplayer mode, I can't cycle through all defeated boss powers. My co-player and I have total coverage of the buffs between us, but this still seems unintended.
I started playing again recently. I had kept my mod configuration from last time. I was able to activate the Forsaken power concurrently of every boss I defeated, stacking them... until today. Today I defeated the Ashlands boss, Fader, and Immediately after doing so the [F8] hotkey became ineffective. After restarting the game, I am no longer able to cycle through and activate each of them (that I have defeated, which is all of them now). Binding it to another key made no difference. I guess that adding this new boss to the Forsaken powers array in the game has broken something in this mod. It no longer works as described. My issue has nothing to do with multiplayer; I have only ever played solo.
Yea, I have worked on this one and cannot find the bug. I am back in game and plan to update to the newest Valheim build tomorrow. I will see what I can find.
Heya, I have a bug a friend and I are having where we activate passive mode and use any amount of boss buffs and then go through a portal the ground goes purple and stays that way until restart. any idea what could cause it? Edit: even without using it without passive mode as soon as we cycle and activate or reset a power the bug occurs.
Love this mod. Just defeated Fader and now the cycling button f8 isn't working. I'm stuck on the Queen power, that's all I can enable or select. Reset just resets the Queen power. It was working fine up until I took out Fader. I've just downloaded and put in the newest version, it was the same as the one I had, file date 17MAY24. Am I missing something?
We need an update for the new boss. After the trophy is selected with cycling through the defeated bosses the cycling is not working anymore and hangs on the new boss.
Update: new version is out and a big thank you from me!
164 comments
I have confirmed that this is broken in the newest version. When my mod asks the game which bosses have been defeated it should provide a list but instead it is sending back "HilldarBoss3"
That's all it sends back. I don't know if this is a bug within the game, but I need to investigate it more. It kinda works in single player and does not work at all on servers. If I can't get that function to work then I will have to explore other ways to get this working. This would be a good time to strip out all the passive settings that I never wanted to put in.
---------------------------- Update 11/18/2024
Ok so there is a lot to unpack here. The game changed the way bosses are calculated. There is a now a calculation for both the player and the world. This means in theory that the player can have their own conquests different from other players. It's always been a complaint that if, on a server, some the other players kill a bunch of bosses without you, then you still got credit for the boss kill. It appears there is now a player specific count. I have not fully tested the ramifications of this in game but it creates a little bit of work for me. I need to recode my functions. This will take a few days to fully understand the new system and to code it.
I just confirmed this in the Valheim Modding community Discord as well. Several other modders are having to rework their mods.
So this also explains the multiplayer bug listed below. Ok give me a couple of days to work this out. Thanks again.
------------------------------ Updated 11/19/2024
I worked with this more last night have gotten most of the code written. There are several new issues that crop up due to this new layout. For instance the ability of the player to have their own stats is awesome but.... as soon as the player cycles through the bosses with F8, the game now considers that power has been earned. So just a quick cycle and your player now has all the bosses. Not good. I mean technically you should never have the "cycle through the bosses ability" so it's not like the devs thought it would be an issue.
Sure you can fix your player with console command resetkeys, but that will reset all keys for the entire world and the player. The only way really to do this cleanly is to continue using the world keys. It will work fine as it always has. I can probably fix the multiplayer thing too, but the complaint of not having individual boss settings still exists. That I can't fix and really don't want to try.
My only question would be if, the player chooses to use the cheat feature and enable all bosses, which then will automatically log all bosses as being defeated in the playerkeys... how does that affect the game? Does the raid system work by Global Keys or Player Keys? If is player keys then that is very bad. Mostly because a quick cycle through the bosses and the game thinks you, as a player, have defeated all the bosses and therefore your Level-1-ass living in a thatch hut will get goblin raids.. LOL not good. I would think that raids are based on Global keys, but I really don't know.
I did a video to better show what I mean. https://youtu.be/lQ4nIi3RchA
So there are options, but not really any that everyone will like. I will probably strip out most of the cheat features and bring this back to the original intent. Mostly because I don't really know how the keys are used and I don't want to mess up anyone's game.
--------------------------- Updated 11/20/2024
I figured out the Player keys and have confirmed these details with a few other modders. The Player Key's drive the new Player Raid System. This is a huge problem and essentially will cause issues with players.
I will add now that the changes below are not negotiable. There are other mods. I will also post the code on Github if you feel so inclined to modify or recreate a new mod, please feel free to do so. Not trying to be ugly, just stating my position.
The Problem:
When a user cycles through the Bosses (F8) each boss selection triggers the game to save the boss as completed in the Player Keys. Not a problem if you have actually earned that boss. The problems starts when players use the cheat feature of the mod and set "allow to use all bosses". So when they cycle through the bosses, it saves each boss into the player Key as completed. Then if the "Player Raid" feature is set in the game settings the raid will be determined by the Player Keys. Which means the raid will be harder because the player keys include every boss even though they may not have beaten that boss.
I can't keep that feature in. It will cause lots of anger and players will be pissed that their character is "broken" even though a few commands will fix the problem. I don't want to cause angst. I am a believer that the mod should "do no harm" to the game or player.
The Solution:
So here is the solution. I am prepared for the nasty comments but whatever.
1. This mod will be changed to only allow the bosses that have actually been earned.
2. It is not individualized as that causes problems, only the bosses earned in the current game will be counted (This is how it's currently handled so no changes)
These Features are Gone:
allow all bosses at once
allow bosses that you have not yet defeated
I will finish up the mod tonight and probably post it tomorrow morning. Regardless a fix is coming. Thanks again for your patience while I worked through these new game changes.
Ok it's been updated. I forget to come by here and check the comments. I've been using discord for most support. Let me know if you have any problems. Thanks
If I start single player the F8 functionality works just fine.
EDIT:
Nope you are correct the cycling appears to be broken. I am looking at it now. Not sure it will be fixed tonight as it's late but I will work on the next few days.
I wonder if instead of cycling through known keys using built in calls possibly make a manually populated array with global keynames the player killed and cycle through those. I know that method would cause you more work later if they update the game. Just thinking outloud. Appreciate you looking into this!
I just confirmed this in the Valheim Modding community Discord as well. Several other modders are having to rework their mods.
So this also explains the multiplayer bug listed below. Ok give me a couple of days to work this out. Thanks again.
One idea I had (I'm a powershell scripter by day) was maybe create an item that eats a boss trophy and that stores what powers you are allowed to use. Just throwing ideas out there... maybe a staff we create and make more Forsaken as we go hehehe.
Best wishes.
Sure you can fix your player with console command resetkeys, but that will reset all keys for the entire world and the player.The only way really to do this cleanly is to continue using the world keys. It will work fine as it always has. I can probably fix the multiplayer thing too, but the complaint of not having individual boss settings still exists. That I can't fix and really don't want to try.
My only question would be if, the player chooses to use the cheat feature and enable all bosses, which then will automatically log all bosses as being defeated in the playerkeys... how does that affect the game? Does the raid system work by Global Keys or Player Keys? If is player keys then that is very bad. Mostly because a quick cycle through the bosses and the game thinks you, as a player, have defeated all the bosses and therefore your Level-1-ass living in a thatch hut will get goblin raids.. LOL not good. I would think that raids are based on Global keys, but I really don't know.
I did a video to better show what I mean. https://youtu.be/lQ4nIi3RchA
I know that spawn that and custom raids, CLLC mods call on the keys which as keys get unlocked the spawns get harder and harder.
For example having the key "defeated_bonemass" could now start spawns or raids requiring that key to have a chance to be enabled so making the keys avail early (if thats what you were considering) would bork the logic tree in those big mods.
You rock dont forget that!
I have confirmed that this is broken in the newest version. When my mod asks the game which bosses have been defeated it should provide a list but instead it is sending back "HilldarBoss3"
That's all it sends back. I don't know if this is a bug within the game, but I need to investigate it more. It kinda works in single player and does not work at all on servers. If I can't get that function to work then I will have to explore other ways to get this working. This would be a good time to strip out all the passive settings that I never wanted to put in.
---------------------------- Update 11/18/2024
Ok so there is a lot to unpack here. The game changed the way bosses are calculated. There is a now a calculation for both the player and the world. This means in theory that the player can have their own conquests different from other players. It's always been a complaint that if, on a server, some the other players kill a bunch of bosses without you, then you still got credit for the boss kill. It appears there is now a player specific count. I have not fully tested the ramifications of this in game but it creates a little bit of work for me. I need to recode my functions. This will take a few days to fully understand the new system and to code it.
I just confirmed this in the Valheim Modding community Discord as well. Several other modders are having to rework their mods.
So this also explains the multiplayer bug listed below. Ok give me a couple of days to work this out. Thanks again.
I haven't added any mods that touch the forsaken powers, besides Valheim Plus (but this has been on since the start)
I tried using the new feature to enable all bosses at one time but it seems to actually be all the bosses at one time and not just the ones I have actually defeated.
Would it be possible to have a toggle for "All unlocked bosses at one time"
Thanks
I also see in the log when it wasn't working it was firing the F8 button twice (two entries saying "ForsakenPowerPlus - Number of Bosses defeated = 2" at the same time, but when its working its just doing it once.
So the way it works is the mod queries the game database and asks it how many bosses you have defeated. This happens every time you hit the F8 button. That's the reason for the multiple logging you see. I haven't experienced the particular problem you described but appreciate the detailed report. I have this testing with a few server groups and will check in with them to see if they are having any issues. Thanks again.
I am working through a few bugs that crept up in the public test version and will address the ownership issue once those are fixed. The Valheim version in testing has may changes and I need to make sure the mod works. I will update the version soon. Thanks again.
I need to look deeper into this problem, because it should not be a thing.
Edit: even without using it without passive mode as soon as we cycle and activate or reset a power the bug occurs.
I've just downloaded and put in the newest version, it was the same as the one I had, file date 17MAY24.
Am I missing something?
After the trophy is selected with cycling through the defeated bosses the cycling is not working anymore and hangs on the new boss.
Update: new version is out and a big thank you from me!