Valheim
0 of 0

File information

Last updated

Original upload

Created by

T3kla

Uploaded by

T3kla

Virus scan

Safe to use

Tags for this mod

7 comments

  1. kaptainirish
    kaptainirish
    • premium
    • 60 kudos
    What does this do
    1. T3kla
      T3kla
      • member
      • 5 kudos
      The same way people make their mods dependant on Jotunn, now they can make them dependant on this redistribution so the dll is not repeated all over the codebase.
  2. tykea
    tykea
    • supporter
    • 18 kudos
    Hey,

    the issue you are describing is not an issue at all in C#.
    Each mod has its own scope and knows the specific assemblies it references only, including the version.

    Or simply:
    assemblyA.GetType("type") != assemblyB.GetType("type")

    Also, I am not sure how you imagine this to work. Do you expect people to copy the dll into every mods folder ...?
    Mod authors SHOULD bundle everything their mod needs, so you can move the dll wherever and it will still work.

    Cheers.
    1. kaptainirish
      kaptainirish
      • premium
      • 60 kudos
      I 100% agree and I'm curious why they uploaded it. I'm intrigued but confused. Maybe it does something awesome that I would love but I don't know what it does due to the complete lack of a description.
    2. T3kla
      T3kla
      • member
      • 5 kudos
      ?the issue you are describing is not an issue at all in C#.
      The problem I am describing is called "Dependecy Hell" and is an active problem in the .Net community.

      ?Each mod has its own scope and knows the specific assemblies it references only, including the version.
      That is false. If that were the case, updating dependencies would render your mod unusable because the versioning it expects would be different.

      As far as I understand it, at runtime .Net generates a domain that contains every assembly the application needs. In case there are different versions of the same assembly it will choose the most adequate one, which often is the latest. It is probably fine because this libraries are usually very reliable and stable between versions, but you know what they say, better safe than sorry.

      ?Also, I am not sure how you imagine this to work. Do you expect people to copy the dll into every mods folder ...?
      I don't understand why you want users to copy the dll into every mod, since that is exactly what this redistribution aims to avoid.

      I use Json in various of my mods and I don't want to ship the Json assemblies with each of them. Now I can just mark this as a dependency and be done with it. Both will use the same version and it won't be repeated all over the codebase.

      ?Mod authors SHOULD bundle everything their mod needs,
      That is false. If that were the case dependencies wouldn't be a thing, but they are ¯\_(?)_/¯

      so you can move the dll wherever and it will still work.
      You could do that before (and after) the existence of this redistribution.
  3. xAfflict
    xAfflict
    • premium
    • 6 kudos
    The madlad did it..
    1. T3kla
      T3kla
      • member
      • 5 kudos