Valheim

Valheim

Upgradeable Dyrnwyn (fire sword)
Does someone know of a mod to make Dyrnwyn upgradeable, or how to make such a mod? Please let me know!
< >
Zobrazeno 1630 z 40 komentářů
Malthar původně napsal:
Wariat117 původně napsal:
you can, but only with mods :D
went and checked the spawning thing, youre right on that my bad
the whole Only with mods thing is the problem tho. i have no way to know wether or not op is using mods or even wants to use mods in most cases. i respond to posts like this with only vanilla in mind
Except my question is litterally about mods to upgrade the sword or if someone can make one.
Antoine původně napsal:
Malthar původně napsal:
went and checked the spawning thing, youre right on that my bad
the whole Only with mods thing is the problem tho. i have no way to know wether or not op is using mods or even wants to use mods in most cases. i respond to posts like this with only vanilla in mind
Except my question is litterally about mods to upgrade the sword or if someone can make one.
notice the "in most cases"
Wariat117 původně napsal:
Malthar původně napsal:
you cant craft it at all right now
you can, but only with mods :D

simple change
Class: public class ObjectDB : MonoBehaviour
Method: public void CopyOtherDB(ObjectDB other)
Code:
foreach (Recipe current in this.m_recipes) { if (current.m_item != null) { current.m_enabled = true; } }
(just add it at the end of method, under everything that there is)
and stone pickaxe + flame sword (and potentially other hidden recipes if devs added any recently) will become avaible to craft

buildings are on different code, so for hallowen/christmas buildings you need to do other stuff

I have no clue how to make mods, anyway you can share your mod for that? I already have bepinex and a few other mods to fix things I find annoying. does it make it upgradable too?
Malthar původně napsal:
Antoine původně napsal:
I haven't cheated it in, I'm still working on getting the blast furnace going to smelt the flametal ores I gathered, I have all the mats to make the sword, but the only problem is, it's not ingame yet.
you are literally spawning it in... you cant craft it at all right now
I meant yet, I tested it on another game, but I don't want to cheat, I farmed the mats to make it. If I can't make it, I'll spawn it and destroy the mats in exchange as if I had crafted it. If there's a mod to implement the sword ingame, I'd be really happy about it. The only problem I have for now, is the fact I can't upgrade the sword. I play solo or with my brother, I don't go on public servers doing cheats and using mods.
Antoine původně napsal:
does it make it upgradable too?
yes, up to the level the devs set as "max upgrade" (which I forgot already, but probably 3 or 4)


Antoine původně napsal:
anyway you can share your mod for that? I already have bepinex and a few other mods to fix things I find annoying
I don't have nexus account and don't plan to make one, so nah
I can't download this bepex so I didn't bother checking it's API ;d I mod directly in the game files (side effect >mod is lost during game update<, but that's not a problem since game rarely updates and just copy paste few lines isn't problem at all)



Antoine původně napsal:
I have no clue how to make mods,
if you wanted bepex mod... you would need to check it's API

But for simple mod, you can just edit the game file directly
\Steam\steamapps\common\Valheim\valheim_Data\Managed\assembly_valheim.dll
-Open it with any program that edits C# (For example I use DNspy)
-Then in the search panel type the class you want, (the objectDB one I said earlier, just name is enough, can skip this "public class" thingie)
-Then look for the method I mentioned
-Right click it and "edit method"
-Copy paste the code
-Right click anywhere and "compile"
-In the left top corner file -> save all
-You are done, start game




other way to mod it... would be simply adding your own recipe for sword and there you can set all costs and max upgrade lvl too
but code is much longer then
Naposledy upravil Wariat117; 9. dub. 2021 v 14.12
Wariat117 původně napsal:
Antoine původně napsal:
does it make it upgradable too?
yes, up to the level the devs set as "max upgrade" (which I forgot already, but probably 3 or 4)


Antoine původně napsal:
anyway you can share your mod for that? I already have bepinex and a few other mods to fix things I find annoying
I don't have nexus account and don't plan to make one, so nah
I can't download this bepex so I didn't bother checking it's API ;d I mod directly in the game files (side effect >mod is lost during game update<, but that's not a problem since game rarely updates and just copy paste few lines isn't problem at all)



Antoine původně napsal:
I have no clue how to make mods,
if you wanted bepex mod... you would need to check it's API

But for simple mod, you can just edit the game file directly
\Steam\steamapps\common\Valheim\valheim_Data\Managed\assembly_valheim.dll
-Open it with any program that edits C# (For example I use DNspy)
-Then in the search panel type the class you want, (the objectDB one I said earlier, just name is enough, can skip this "public class" thingie)
-Then look for the method I mentioned
-Right click it and "edit method"
-Copy paste the code
-Right click anywhere and "compile"
-In the left top corner file -> save all
-You are done, start game


You telling me of hidden recipes made me think of looking up for a less specific mod, one that adds those and I found one, someone made a mod to add recipes for items that can't be crafted but should be, like chains, and such and included Dyrnwyn. Even though I didn't use your code, you gave me the idea that led to solving my problem, so thanks a lot!
Antoine původně napsal:
Even though I didn't use your code, you gave me the idea that led to solving my problem, so thanks a lot!
welp, as long as it works it's good :D

it seems you have managed to catch my comment before I edited it, because I added the ide about new recipes at the end
Wariat117 původně napsal:
other way to mod it... would be simply adding your own recipe for sword and there you can set all costs and max upgrade lvl too
but code is much longer then
Naposledy upravil Wariat117; 9. dub. 2021 v 14.21
Cool... now i know this is in game.

Thanks for ruining the surprise by cheating and not listing this thread as a major spoiler.
Ataxio původně napsal:
Cool... now i know this is in game.

Thanks for ruining the surprise by cheating and not listing this thread as a major spoiler.
>insert pathetic meme< >and some other meme where you laugh maniacally<

you realize that almost every thread out there is spoiler ;D?
even simple thread talking about first boss is already major spoiler~~
don't read internet if you don't want stuff spoiled ;d
Wariat117 původně napsal:
Ataxio původně napsal:
Cool... now i know this is in game.

Thanks for ruining the surprise by cheating and not listing this thread as a major spoiler.
>insert pathetic meme< >and some other meme where you laugh maniacally<

you realize that almost every thread out there is spoiler ;D?
even simple thread talking about first boss is already major spoiler~~
don't read internet if you don't want stuff spoiled ;d

What you just said is abjectly false on a few levels and frankly i lack the effort to explain why.

Thanks for the steam points tho.
Ataxio původně napsal:
Thanks for the steam points tho.
send thanks to the guy who gave you them :V
I gave you the points lol, you crying about something so trivial is exquisitely funny. And what Wariat117 said is true, most posts contain spoilers, don't read forums if you don't want to see spoilers, you nincompoop.
Naposledy upravil Beregor; 9. dub. 2021 v 14.30
Antoine původně napsal:
I gave you the points lol, you crying about something so trivial is exquisitely funny. And what Wariat117 is true, most posts contain spoilers, don't read forums if you don't want to see spoilers, you nincompoop.

If you cant tell the difference between any random forum post and one where somebody dug through the game files or console to unearth ♥♥♥♥ thats planned idk what to tell ya. The difference is significant and attempting to explain it sounds like an effort in futility.

Do I actually super care? No. But if your gonna go through that process of uncovering stuff thats not even released or announced a warning in the title is nice, thats all. Just simple common courtesy.

But your right, im in the wrong here. Gonna go make like a whale and go krill my self o/
Ataxio původně napsal:
If you cant tell the difference between any random forum post and one where somebody dug through the game files or console to unearth ♥♥♥♥ thats planned idk what to tell ya. The difference is significant and attempting to explain it sounds like an effort in futility.
erm... spoiler is spoiler
the fact taht you had to put more effort to find it doesn't change this fact...
At best you could call it "easter egg" just like it happens in other games when people find stuff that is hidden :D
I didn't dig through the files, I stumbled on the sword on the valheim wiki while comparing weapons because it's right there, alongside all the other weapons.
< >
Zobrazeno 1630 z 40 komentářů
Na stránku: 1530 50

Datum zveřejnění: 9. dub. 2021 v 8.33
Počet příspěvků: 40