Thanks. I'm glad that it is still working for everyone. I myself have been away from the community for a good while. Gonna have to see how the game is with all of these updates.
Sorry for the huge delay in responding. Just getting back to playing again. Yes. It should work for you with the latest patches. At least I haven't had any problems with it.
yeah .. your mod is pretty cool in that. I like the syncing configs. But for those that don't have JVL and for those of us that just want the bronze recipe to make sense, this was all that is needed.
I've never used it before, to be honest. I've looked at what you have and it is interesting, but I run a server with friends and family and they are not keen on changing things from how we have it.
For me personally, I don't like having to download 2 extra mods (JVL itself and whatever the other one is) just to get one mod to work. And since I don't use JVL for anything else, I kinda like the idea of just using one mod for one specific purpose.
Just trying to keep things simple, so less mods to keep up to date etc.
With your mod you need Jotunn, which then needs HookGenPatcher. Both good mods, and give people more choice as yours has the extra recipes at bench if you need it :-)
Getting an interesting bug where the output continues to multiplied by three after every log out/log in. For example, 2 copper and 1 tin did create 3 ingots, then after a relog it was 9, 27, 81, etc. Same thing with the 5x recipe. Mod is installed client side, logging into a dedicated server without it installed.
thanks .. I'll look at it in a few minutes and see if I can fix it
Edit: So apparently, if you log out but do not restart your client, the client holds your instance in memory. So the way that the code works is that it goes through off of the recipes of the instance, finds the bronze recipes and multiplies the output. that was it.. it only runs when the character logs in. If you restart the client, everything resets back to default.
Not sure if there is a way to get the original recipe values. Going to do some trouble shooting and see what happens.
@Digitalroot Aye .. I realized that after seeing how the client is behaving. I changed the routine to default to a base of 1 or 5 depending on what the current result amount is (I have two recipes, in my game, for 1 bar and 5 bars). Did some cleanup as well. It should be good to go now.
22 comments
Take a look at https://www.nexusmods.com/valheim/mods/1463, It is a port of Triple Bronze to JVL.
The JVL version has Server SyncAble configs to disable smelting at the forge.
But for those that don't have JVL and for those of us that just want the bronze recipe to make sense, this was all that is needed.
Good job!
With your mod you need Jotunn, which then needs HookGenPatcher. Both good mods, and give people more choice as yours has the extra recipes at bench if you need it :-)
Keep it up!
Edit: So apparently, if you log out but do not restart your client, the client holds your instance in memory. So the way that the code works is that it goes through off of the recipes of the instance, finds the bronze recipes and multiplies the output. that was it.. it only runs when the character logs in. If you restart the client, everything resets back to default.
Not sure if there is a way to get the original recipe values.
Going to do some trouble shooting and see what happens.
https://github.com/Digitalroot-Valheim/KaceCottam-TripleBronze/blob/ae16c421738250b0a4b7c5ac1c1c9a5867db79f2/src/TripleBronzeJVL/Main.cs#L85
It is not enough to take the current amount and x3 it.
?instanceMRecipe.m_amount *= 3;