Divinity: Original Sin
0 of 0

File information

Last updated

Original upload

Created by

Abraxas1990

Uploaded by

Abraxas1990

Virus scan

Safe to use

Tags for this mod

25 comments

  1. Revan7even
    Revan7even
    • premium
    • 13 kudos
    Are these the lines in Base.charScript that determine the idle movement frequency?
    Spoiler:  
    Show
    REACTION Idle_Combat, 4
    USAGE WAITING
    VARS
    FIXEDSTRING:_Animation
    FLOAT:_Wait
    ACTIONS
    GetRandomBetween(_Wait,9,10)
    Sleep(_Wait)
    IF "!c1"
    CharacterHasStatus(__Me, SNEAKING)
    THEN
    GetWeightedRandom(_Animation,"idle1",INT:10,"idle2",INT:10,"idle3",INT:10)
    CharacterPlayAnimation(_Animation)
    ENDIF
    INTERRUPT
    Reset()

    REACTION Idle_Peace, 4
    USAGE PEACE
    VARS
    FIXEDSTRING:_Animation
    FLOAT:_SleepTime
    ACTIONS
    IF "!c1"
    CharacterHasStatus(__Me, SNEAKING)
    THEN
    GetWeightedRandom(_Animation,"still",INT:50,"idle1",INT:30,"idle2",INT:30,"idle3",INT:30)
    IF "c1"
    IsEqual(_Animation,%PrevIdleAnim)
    THEN
    Goto("Start")
    ENDIF
    Set(%PrevIdleAnim,_Animation)
    CharacterPlayAnimation(_Animation)
    GetRandom(_SleepTime,0,2,3.5,6.8,9.3,11)
    Sleep(_SleepTime)
    ENDIF
    INTERRUPT
    Reset()
    If I want to double how often the move to 5 secs and halve how long they wait I would change GetRandomBetween(_Wait,9,10) to say 4,5 and GetRandom(_SleepTime,0,2,3.5,6.8,9.3,11) to say 0,1,2,3,4,5 ?
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Yes, to change the frequency of idle animations you need these two reactions ('Idle_Combat' for combat idles, the other reaction for idles out of combat).

      The two values in 'GetRandomBetween' determine the min. and the max. sleep time (= doing nothing), so 'GetRandomBetween(_Wait,4,5)' makes them sleep between 4 and 5 seconds, so double the frequency of combat idle animations, yes.
      The 'GetRandom' call in 'Idle_Peace' chooses one of the values, so 'GetRandom(_SleepTime,0,1,2,3,4,5)' means: one second, two seconds, three, four or five seconds of sleep time. You can also write: 'GetRandomBetween(_SleepTime,0,5)' to get sleep times between 0 and 5 seconds, but that would be too much. I'd leave peace idles as is.

      But you must also regard this event for combat idles (stops idle animations on damage for 10 seconds) and set the value in 'StartTimer' from '10' to '5':

      Spoiler:  
      Show

      EVENT InterruptOnDamage
      ON
      OnDamage(_,_,_,_)
      ACTIONS
      SetPriority("SleepOnWaiting",11)
      StartTimer("IdleAgain",10,0)
  2. Abraxas1990
    Abraxas1990
    • member
    • 15 kudos
    UPDATE:

    Fixed an engine related bug that occured in combat (mostly in the 'No Combat Idle' version) where character movement didn't stop when ending turn if characters didn't have a waiting behaviour. Now they will stay at their locations. Thanks to jonas367 and 1N07 for reporting this issue.

    Just install the mod with the new files. They will replace the old ones.
  3. jonas367
    jonas367
    • supporter
    • 0 kudos
    This is amazing. You should be getting a royalty from the studio, I was considering returning the game to GoG before I found it.

    I have one weird bug to report. I am using the no movement version with quietdayonthemarket (with appropriate file.) During combat, if I move a character and then pan the camera after they finish moving, when I go back to the character they have jumped forward in the direction they were facing pretty significantly. I never experienced this before using these mods. Any suggestions?

    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Sounds pretty weird. Player characters on turn can't be influenced by character scripts, but you say this happens while you're controlling this character on turn, right? Could you try to remove the mod folders and see if that still happens? I've never heard of that and, from your description, this can't be caused by scripting.

      I'll install the mod and see if that occurs in my game, too.

      EDIT: Tested it. I don't have this issue. You should verify the game files in Steam and see if that solves the problem.
    2. jonas367
      jonas367
      • supporter
      • 0 kudos
      Thanks for the response. Maybe this is just a bug in the game. I verified installation through Good Old Games Galaxy. So far it has only happened in two scenarios: the fight with the ghoul at the lighthouse and the fight in the matching caves outside Cyseal. Again, fantastic mod.
    3. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Looks like an anomaly, yes. If it happens again try saving and reloading and see if it's still there. In some cases this fixes spontaneous issues.

      Have a good time with the game
    4. 1N07
      1N07
      • member
      • 1 kudos
      Had the same problem after installing this mod.
      Never had a problem in the over 60 hours I've played the game before the mod, so I'm sure it's the cause.
      Due to this bug, the mod is unusable for me.
    5. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Are you also using the non-idle version? And did it occur at the same locations? I'll make two changes, maybe it's an unexpected side effect.
    6. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Okay, now I could reproduce the problem. That's actually a bug in the engine code, not in my script, but I can prevent that.

      The issue is:
      I removed the waiting behaviour of characters, so they don't have an action during this time. Actually this would mean they just stand there and play the default still animation. But if you let them walk to a location, move the camera away from the character, the run animation doesn't end when the character arrives and therefore 'moves on' (in the direction he's facing).
      I'll script a sleep behaviour instead of removing the reaction, this should fix the issue.
  4. kidfusion3000
    kidfusion3000
    • member
    • 0 kudos
    this is brilliant, i wish the devs had just setup a hitbox, but this is the perfect workaround. thank you sir.
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Thank you. Maybe this detail got out of sight towards so many things they had to think of. But randomizing idling too much was not the best idea. I'm sure D:OS 2 will be aware of this.
  5. katerinafm
    katerinafm
    • member
    • 3 kudos
    Does this mean that the enemies will freeze or just makes the more active animations to happen more sparingly?
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      If you choose the Standard Version 3 it means enemies make their 'more active' animations every 9 or 10 seconds, so you have enough time after every animation to attack the enemy. During that time the enemie's body has just a very slight movement (that is the 'still' animation), so enemies are not totally freezed but the hit box does not notably move. Version 3 also contains a function that resets the animation timeout for enemies on damage.

      If you choose NoCombatIdle there won't be any 'more active' animations, just the 'still' animation (slight body movement).

      Targeting and attacking works quite well with both versions. Just try it out and see if you like one of them. You can install and uninstall the mod easily (just follow the description).
    2. katerinafm
      katerinafm
      • member
      • 3 kudos
      Sounds good to me, thanks!
  6. zenblack
    zenblack
    • premium
    • 1 kudos
    Is this compatible with the new D:OS EE patch (v2.0.133.775)?

    (and your other mods)
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Yes, should work with the new Patch. I haven't noticed any issues.

      The Mod is compatible with GetRidOfQuestmarkers. If you want to use it with QuietDayOnTheMarket you should install the QuietDay-Patch to have the changes for the drunkenGoblins, too. But even without Patch it works fine. It would only affect the frequency of drunkGoblins displaying text in combat.
  7. refusedzero
    refusedzero
    • supporter
    • 60 kudos
    Thanks for mod and compatibility patch. =)
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Thanks for interest

      Update for Scales 1.9.32 is available now.
    2. refusedzero
      refusedzero
      • supporter
      • 60 kudos
      Thx for the super quick update!
  8. zenblack
    zenblack
    • premium
    • 1 kudos
    Based on the Description this is still incompatible with Scales? Have you been able to patch it to be compatible?
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Baardvark planned to integrate this Mod into Scales after a test. I guess he was quite busy the last time. I wanted to wait for his agreement before I use his 'Base'-script for a Patch. But, well, I'm sure he won't complain. So, Patch will be available in one hour.
    2. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Compatibility patches for both versions (NoCombatIdle and Standard) are available now!
  9. Aenra
    Aenra
    • member
    • 2 kudos
    Thanks, part iii

    And again for having the foresight to divide it in two!
    (in my humble opinion, drunken goblins are meant to act ..drunken.. so am glad i can choose)
    1. Abraxas1990
      Abraxas1990
      • member
      • 15 kudos
      Always a pleasure

      In this case I did not have to have any foresight. The goblins have their own combat-idling-section in their script with a higher priority than the 'base'-script reaction, so I had to 'split' this. In consequence, all drunken globlins fans can have their goblins as they love them.