Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

Dtry

Uploaded by

dTry

Virus scan

Safe to use

Tags for this mod

28 comments

  1. kinkorajany
    kinkorajany
    • member
    • 0 kudos
    How many DAR folders?5
    equal chance? [Y/N]n
    input real probability expectation for DAR folders, starting from top folder(smallest number)
    40
    inputted 1 probabilities
    15
    inputted 2 probabilities
    15
    inputted 3 probabilities
    15
    inputted 4 probabilities
    15
    inputted 5 probabilities
    Error: sum of expected probabilities cannot be bigger than 1.
    1. kinkorajany
      kinkorajany
      • member
      • 0 kudos
      nevermind
  2. Tsaxaman
    Tsaxaman
    • premium
    • 389 kudos
    My head spins trying to figure this one out.

    I have 10 folders. They replace the same animation. I want them to happen 20% of the time but equally distributed.

    How do I calculate this? :S
  3. timstertimster
    timstertimster
    • member
    • 3 kudos
    if anyone is interested in trying to make this work, I think this can be done with a simple .bat file inside the DAR folder. 

    it's unfinished because the count needs to be converted to decimal and i'm sure i screwed up the echo by not correctly escaping the brackets and fractional slash. 

    for /D /R "%rootPath%" %%G in (*) do ( set "filePath=%%G\conditions.txt"
    echo Random(1/!count!) > "!filePath!"
    set /A count+=1
    )

    by the way... I literally "wrote" this using ChatGPT because I have no experience at all with windows scripting and haven't got a clue about the syntax.

    I'm guessing someone who  actually knows windows scripting can make this work without much effort. 
    1. timstertimster
      timstertimster
      • member
      • 3 kudos
      two more minutes on chatGPT, and now i have this:


      echo off

      setlocal enabledelayedexpansion

      set "rootPath=C:\Your\Root\Path"

      set count=1

      for /D /R "%rootPath%" %%G in (*) do (
      set "filePath=%%G\conditions.txt"
      set /A fraction=1000 * 1 / count
      echo Random(!fraction:~0,-1!.!fraction:~-1!) > "!filePath!"
      set /A count+=1
      )
  4. MeridianoRus
    MeridianoRus
    • premium
    • 269 kudos
    So if I want to use 20% random for 5 folders then I should set
    folder 1 - 100%
    folder 2 - 80%
    folder 3 - 60%
    folder 4 - 40%
    folder 5 - 20%
    Am I right? Isn't it obvious if you read DAR description carefully?
    1. Tyuan
      Tyuan
      • premium
      • 981 kudos
      Having descending probabilities helps, but the result is not accurate. The real probabilities  for equal randomness for 5 folders should be:
      100
      50
      33.3
      25
      20
    2. MeridianoRus
      MeridianoRus
      • premium
      • 269 kudos
      Oh, got it, thank you a lot. Nice research.
    3. timstertimster
      timstertimster
      • member
      • 3 kudos
      it was me filmed above in someone's post. you want the decimal version of the fractions starting with 
      1/1 - 1.0

      then 1/2 - 0.5

      then 1/3 - 0.33

      and so on, so at folder 12 it's 1/12 - 0.083

      at 40 folders you're doing 1/40 - 0.025
  5. kevinwar2
    kevinwar2
    • member
    • 0 kudos
    I have to add quite a few numbers to many folders and they are different. any ideas to streamline the work? before I had used a file duplicator that copied the same file in all the folders now that each one is different is a long work
    1. timstertimster
      timstertimster
      • member
      • 3 kudos
      i imagine you could write a .bat script that physicallly writes the contents of each conditions.txt
  6. darksynth0
    darksynth0
    • premium
    • 37 kudos
    wonder if anybody knows a tool that lets you sort out all conflicting DAR mods and "fix" them by auto changing folder structures with a given "priority", akin to LOOT or MO2 plugin/mod ordering.
    1. igloo4
      igloo4
      • supporter
      • 0 kudos
      No, but DAR is pretty straightforward to tweak. Change priority by changing folder numbers (higher number = higher priority) and change _conditions.txt with random() for probability. E.g. from one of the sneak idles in Underdog Animations
      IsSneaking() AND
      NOT IsInCombat() AND
      Random(0.2)
    2. darksynth0
      darksynth0
      • premium
      • 37 kudos
      Thanks, that's helpful!
    3. Dash200017
      Dash200017
      • member
      • 4 kudos
      Might not "Fix" it but try Dar Explorer. Hopefully developer will update it so we can fix it
  7. OlasMarz
    OlasMarz
    • premium
    • 9 kudos
    so..
    when I calculate for 10 folders, equally...i get the following:

    How many DAR folders?10
    equal chance? [Y/N]y
    probability to put into Random(), starting from top folder(smallest number):
    1.000001
    0.5000002
    0.3333334
    0.2500001
    0.2
    0.1666667
    0.1428572
    0.125
    0.1111111
    0.1


    I thought that the values could not be greater than 1?
    Am I doing it wrong? ..or should I just round that first value down to 1?


    1. igloo4
      igloo4
      • supporter
      • 0 kudos
      Just a rounding error due to the code calculating the bottom value first and then working its way up with each value relying on the previous one. Round it to 1.
  8. urbon
    urbon
    • premium
    • 796 kudos
    This save lifes
  9. Averoze
    Averoze
    • member
    • 9 kudos
    For those who doesnt want the hazzle

    1. 1/1 or 1
    2. 1/2 or 0.5
    3. 1/3 or 0.333
    4 1/4 or 0.25
    and so on

    Put that in your Dar conditions (1,0.5,0.333 etc). 
    Example : Folder 3000 Use 1, Folder 3001 Use 0.5
    Why like that ?. because DAR use Priority function. Folder 3001 Will have More priority than 3000, Thats why if you set all conditions to be 0.25, it is not equal probability.
    I have tested this and also asked DAR author felisky, he confirmed that this is the correct way.
    1. shiholude
      shiholude
      • premium
      • 145 kudos
      The "hazzle" (hassle) you refer to is most likely because this is an EXE file, and Windows does not like users downloading EXE's from locations outside of their short-list of trusted sites.

      I, personally, found this helpful. Sure, I could've done a quick calculation in my excel file that has all the animations I'm using (because I'm awesome like that), but this does the same thing and it is helpful to many.  
    2. dTry
      dTry
      • premium
      • 981 kudos
      This is for equal chance yes. But if you want a higher priority folder to have a slightly higher chance, you'd still need the calculator.
  10. Rayden
    Rayden
    • premium
    • 68 kudos
    I'll forever be greatful for this!