1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[1.32] Custom/modified unit classic blob shadows bug.

Discussion in 'Patch & Reforged Discussion' started by Dr Super Good, Feb 2, 2020.

  1. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,955
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Many people are claiming that Classic graphics is missing blob shadows. This is not correct as blob shadows do still exist and work. One can see this in the World Editor when running classic graphics and in melee games.

    However there is currently a bug with custom units and blob shadows. For custom units the shadow data fields are not being read/generated correctly in game. For copied unit data this results in all shadow fields being interpreted as 0 values even when defaults are meant to be inherited. For modified unit data this results in any modified shadow field being interpreted as a 0 value irrespective of what the user sets it to.

    Attached is a demonstration map showing this problem.

    The left Blood Mage (Standard Blood Mage) uses standard unmodified shadow data so has a working blob shadow.
    The right Blood Mage (Custom Blood Mage) is a copy and paste of the standard one. It appears to be missing its blob shadow in game.
    The top Mountain King (Modified Mountain King) is a standard unit with modified shadow data. It appears to be missing its blob shadow in game

    A screenshot is provided showing what can be experienced by running the map with 1.32 with Classic graphics. The correct behaviour would be that all 3 units have blob shadows visible, like in World Editor when running Classic graphics.

    Note the white square artefacts shown around the Blood Mages in the screenshot is a screenshot only bug. They appear visually fine during actual gameplay.
     

    Attached Files:

  2. tlstkwjr

    tlstkwjr

    Joined:
    May 29, 2013
    Messages:
    80
    Resources:
    0
    Resources:
    0
    Newly produced units(Units already placed on the map are normal. lol)
    also have a bug that projectile scaling is turned off.
    If you turn it back on using a new function(BlzSetUnitBooleanFieldBJ), it works fine.
    But shadows seem impossible. As a result of my testing
     
    Last edited: Feb 21, 2020
  3. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,758
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    You can actually intercept a units shadow upon creation to see that they are being created, just with zero width and height. You can replace the broken shadow with your own through code since shadows are just images, although I would prefer an actual fix.