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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Forgotten natives

Discussion in 'The Lab' started by Aniki, Jul 4, 2016.

  1. Aniki

    Aniki

    Joined:
    Nov 7, 2014
    Messages:
    518
    Resources:
    4
    Spells:
    1
    JASS:
    3
    Resources:
    4
    I wanted to find some natives that Blizzard forgot to declare in common.j and common.ai so I tried to do a
    diff on the two files (see attachments) to see if I find something... And I did, but the natives were rather disappointing/useless :/

    Code (vJASS):

    native DebugBreak takes integer i returns nothing

    native DialogSetAsync takes dialog d returns nothing

    native SetStackedSound takes string s, real r1, real r2 returns nothing
    native ClearStackedSound takes string s, real r1, real r2 returns nothing
    native SetStackedSoundRect takes string s, rect r returns nothing
    native ClearStackedSoundRect takes string s, rect r returns nothing
     


    Maybe you can find something more exciting? =)
     

    Attached Files:

  2. DracoL1ch

    DracoL1ch

    Joined:
    Dec 12, 2010
    Messages:
    1,758
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    DebugBreak is removed from the final build and does nothing. rest functions do something but cant say what exactly
     
  3. Aniki

    Aniki

    Joined:
    Nov 7, 2014
    Messages:
    518
    Resources:
    4
    Spells:
    1
    JASS:
    3
    Resources:
    4
    Someone should add this to the "patch wish list", i.e Blizzard should release some documentation about their natives...

    PS: the only thing I like about GUI are the little "hints" at the bottom when an event/action is selected like:
    "Only the first 64 destructables within the region when this event is registered are monitored for death. It is best to use this event for regions containing only a few destructables."
     
  4. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,666
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    DialogSetAsync removes the delay in battle.net? or what?

    I found a page referencing it way back in 2002.

    http://www.wc3c.net/showthread.php?t=5051

    and this

    Code (Text):

    Native "DialogSetAsync" located at 0x6F3C9F20 with parameters "(Hdialog;)V"
     
    Someone should look into it.
     
  5. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,666
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Bump. Found two more:

    Code (vJASS):
    native GetPlayerStartLocationX takes player whichPlayer returns real
    native GetPlayerStartLocationY takes player whichPlayer returns real

    Funny thing is, they exist in Blizzard.j too. They work though, so why did blizzard create their own JASS function for it?
     
  6. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,666
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Well it's odd that those natives aren't declared in common.j and are hidden, and that they exist in Blizzard.j instead.

    They also seem to work perfectly fine if you declare them in your map.
     
  7. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,666
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Yes my whole point is that these existed in the engine without anyones knowledge. The thread is titled "Forgotten Natives", you know.
     
  8. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,666
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Except those are declared in the common.j? You really are missing the point.

    As far as I know those two natives are one of their kind. Undefined natives that have pseudo-functions in Blizzard's JASS file. It's at least worth noting, simple as that.

    and if it weren't for the fact that you have to overwrite the Blizzard.j to use them, they would actually be pretty useful. Unless of course you don't mind importing a blank script.
     
    Last edited: Apr 13, 2017
  9. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    What do these do?

    Unsummon
    VersionCompatible
    VersionGet
    VersionSupported
     
  10. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,666
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    They are related to detecting game version (ROC/TFT). But they don't relate to this thread because they are in the common.j