Daggerfall Unity

File information

Last updated

Original upload

Created by

meritamas

Uploaded by

meritamas

Virus scan

Safe to use

Tags for this mod

45 comments

  1. bardyc
    bardyc
    • member
    • 0 kudos
    There's an infinite loop when luck is greater than 59 (happens when luck is 60 because 60-50 = 10, and 10/10 =1):

    int luckPointsToDistribute = (playerEntity.Stats.LiveLuck - 50) / 10; // (Luck - 50) / 10
    if (luckPointsToDistribute > 0)
    DistributePointsToEqualize(skillLevel, willpowerLevel, luckPointsToDistribute, out luckPointsToSkillLevel, out luckPointsToWillpowerLevel);

    The positive value of 1 hits the > 0 condition and is the first/only time DistributePointsToEqualize() gets called. The current method does this:

            public static void DistributePointsToEqualize(int level1, int level2, int pointsToDistribute, out int additionToLevel1, out int additionToLevel2)
            {
                int pointsLeft = pointsToDistribute;
                additionToLevel1 = 0;
                additionToLevel2 = 0;

                while (pointsToDistribute > 0)
                {
                    if (level1 + additionToLevel1 < level2 + additionToLevel2)
                        additionToLevel1++;
                    else
                        additionToLevel2++;
                    pointsLeft--;
                }
            }

    Subtracts from pointsLeft, but the condition checks whether pointsToDistribute > 0 which it always is because it never gets modified. Infinite loop is triggered and the game spins out forever (hang/crash with CPU still trying to calculate things revving out).

    The corrected code is
    ...
                while (pointsLeft > 0)
    ...

    Check for pointsLeft instead, and everything works. I recompiled from source and tested with 100 luck. This fixes the crashes for LUCK being above 59.

    I know this is 4 years old by now, so if the original author pleases, I can clone and re-upload this mod with the fixes.
    1. bardyc
      bardyc
      • member
      • 0 kudos
      I fixed this, and fixed the issue of falling out of the sky when exiting a building. This was compiled and tested against rc 1.1.0

      I'll keep fixing what I find, and since I have no permissions on the project I cloned and uploaded here.
      https://www.nexusmods.com/daggerfallunity/mods/718

      Meritamas, if you want, I will remove the updated version and feel free to incorporate these minor bugfixes.
  2. RagnarAri
    RagnarAri
    • member
    • 0 kudos
    Luck goes above 59 and the mod breakes.
  3. ejseto
    ejseto
    • member
    • 2 kudos
    I fixed it. Still get this weird "houses inside houses" bug sometimes (if you anchor outdoors you won't be affected) but otherwise it works.
    https://file.io/j17Hu5L5DMuO
    Bah, file.io is a one time link?
    https://www.dropbox.com/s/070b8jz335pgrmg/advanced%20teleportation.dfmod?dl=0
    1. Nimbby
      Nimbby
      • member
      • 0 kudos
      Kudos for the mod fix! It's very much appreciated.
    2. RebornZA
      RebornZA
      • member
      • 10 kudos
      Thanks <3
    3. Rodderick90
      Rodderick90
      • member
      • 5 kudos
      It's been deleted.
    4. enderandrew
      enderandrew
      • member
      • 3 kudos
      Can you re-upload?
    5. TheKidsNextDoor
      TheKidsNextDoor
      • member
      • 0 kudos
      hello, please reupload the file :D
    6. Gigabitbob
      Gigabitbob
      • member
      • 1 kudos
      PLEASE reupload this is one of the best mods that make you FEEL like a wizard
    7. RagnarAri
      RagnarAri
      • member
      • 0 kudos
      Reupload please?
  4. AxelNexus
    AxelNexus
    • member
    • 1 kudos
    Another mod that sounds awsome and then you read the comments, pitty.

    Since current version of DFU it´s supposed to be mostly final one would hope most mods would be up to date, here´s hoping that just like someone mentioned if not og author at least someone can come up with something that does what this promises.
  5. KingOfAllSporks
    KingOfAllSporks
    • member
    • 0 kudos
    Great concept. Be nice if someone could put out a new mod that does the same thing and gets updated as new versions of DFU come out. This one has been buggy for a long time. It's not the mod author's obligation to maintain, but I think the community would be enriched by a version of this that works properly, in case anyone ever wants to take up the torch.
  6. deleted116234
    deleted116234
    • account closed
    • 0 kudos
    Set an anchor at the dungeon entrance, but the mod won't let me teleport back. I click the option, cast animation triggers, nothing happens.
  7. JokeDeity
    JokeDeity
    • supporter
    • 1 kudos
    Can confirm, having high luck makes your game crash when trying to use teleport.  Really weird way to be broken, hope we get a fix soon.  :(

    EDIT:  I have the fix for this ladies and gents.  It appears to be an issue with integers at or over 1.0 for your luck in the math.  Open the dfmod in a text editor (luckily it's just numbers so we can do this) and find line 81 and change it from "- 50" to "/ 10".  This way we should be getting less than 1.0 decimal integers and everything is kosher. I haven't tested with over 99 LCK stat however and that might end up breaking it all over again.
    1. Arneb
      Arneb
      • member
      • 2 kudos
      Hey JokeDeity,
      would you be able to PM me the modified .dfmod file? I tried to follow your instructions, but wasn't able to. It would be greatly appreciated.
      Thanks in advance.
    2. JokeDeity
      JokeDeity
      • supporter
      • 1 kudos
      Absolutely, but instead I'll share it with everyone who comes looking instead of just PMing you:
      https ://file. io/9Jej7xrO4rkk
      (I don't know how Nexus does with outside links so I broke this up, you'll have to remove the spaces to use the link.)

      If OP of this mod requests I'll remove this immediately, but hopefully they come back and fix their mod first.
    3. Arneb
      Arneb
      • member
      • 2 kudos
      Thank you very much!
      Honestly I don't think he will ever patch this up, since he has now released a new mod with Advanced Teleportation included (if you're interested, you should find it searching on the DFU forums). I tried to use that, but I don't seem able to make it work with my old save (no surprises, taken into account my tech-unsavvyness).

      Edit: ok, I guess you had to remove it. No prob, thanks for trying.
    4. JokeDeity
      JokeDeity
      • supporter
      • 1 kudos
      Is the link not visible in my comment for you?  It still works for me when I just tried it.
    5. Arneb
      Arneb
      • member
      • 2 kudos
      The link is visible, but when I remove the spaces and reach file.io it tells me the file was deleted :/

      No prob, in the meantime I was able to open the .dfmod in Unity and correct the C# code. Now everything’s fine.
  8. zidon42
    zidon42
    • member
    • 0 kudos
    Hi, I found that mod stops working (game freeze when you try to set anchor or teleport) in case that your luck attribute goes over 59. Last good value is 59. When I lowered value in savegame and remove all Luck enchantment artifacts, mod start working again. So maybe this will help someone.
    In all cases, this is amazing mod, thank you for it very much.
  9. SenseiMewtwo12345
    SenseiMewtwo12345
    • supporter
    • 8 kudos
    This mod is unfortunately not functioning properly. I cannot teleport to my set anchors. Check to make sure that the mod has been updated after the date of this comment before downloading, because it probably needs to be updated to the latest version of DFU.
  10. blackraven3000
    blackraven3000
    • member
    • 1 kudos
    Seems that with daggerfall unity version 0.11.1 this break/removes the teleport spell.

    Please Update! This mod is unique and special!