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. The 15th Mini-Mapping Contest came to an end. The Secrets of Warcraft 3 are soon to be revealed! Come and vote in the public poll for your favorite maps.
    Dismiss Notice
  3. The 12th incarnation of the Music Contest is LIVE! The theme is Synthwave. Knight Rider needs a song to listen to on his journey. You should definitely have some fun with this theme!
    Dismiss Notice
  4. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  5. 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.
Geshishouhu
Last Activity:
Aug 26, 2015
Joined:
Oct 11, 2012
Messages:
710

Geshishouhu

Well-Known Member

Geshishouhu was last seen:
Aug 26, 2015
    1. Jicyphex
      Jicyphex
      Hey, for some reason I cannot send private messages. I've replied to you several days ago but I don't see anything in my "Sent" box. Add me on Steam if you want to continue our conversation.
    2. Malhorne
      Malhorne
      Hey,
      Yeah I'm a bit away those days ;)
      Anyway it's cool for you first spell :)
      I'm glad to see one of my student do something pretty nice and to see things that I have taught to you :D
    3. Mythic
      Mythic
      Np. Happy modding! :cgrin:
    4. Mythic
      Mythic
      Howdy Geish? [IMG]
    5. Malhorne
      Malhorne
      I'm still around but less until summer :)
    6. Malhorne
      Malhorne
      ----------
      So based on your explanation, the second one is no good?
      ----------
      The second one can be good if you destroy the struct before the end of the func and if you don't need the struct instance anymore.


      Infact create and allocate are the same. But in the tutorial I redefined the create method so to create an instance inside the struct I have to call the allocate :)
      But outside I want to use my create function which does more thing than the allocate function only.

      Linked list isn't that much useful.
      And btw Mag is a fan of extends array so don't really care of this until you fully understand :P
    7. Malhorne
      Malhorne
      Just saw your last thread : http://www.hiveworkshop.com/forums/triggers-scripts-269/difference-between-these-two-methods-253207/
      To explain better :
      In your first method you init your struct instance and then you return it and so you can do the work in the function which called the create method.

      In your second method you init your struct instance and then you do some stuff and at least you don't return your struct instance.
      So -> If you do this way you will lost the pointer to your struct instance. Infact it will be lost in the desert plains of vJASS XD !
      And more you will not be able to destroy it and so you will have an index non used anymore ^^
    8. Malhorne
      Malhorne
      Thanks for the +rep :)
    9. Malhorne
      Malhorne
      Ahah no problem xD
    10. Malhorne
      Malhorne
      Oh yes it leaks ^^'

      I've an idea to pick a random unit on a group.

      local group g = CreateGroup()
      local unit u
      local unit array data
      local integer index = 0
      //Pick your group
      loop
      set u = FirstOfGroup(g)
      exitwhen u == null
      call GroupRemoveUnit(g,u)
      set data[index] = u
      set index = index + 1
      endloop
      //u will hold the random unit
      set u = data[GetRandomInt(0,index)]
    11. Malhorne
    12. Malhorne
      Malhorne
      Okay :3
      But there is an ugly textmacro xD !
      Anyway feel free to ask questions :)
    13. Malhorne
      Malhorne
      Ahah xD
      In the fear explosion I use it too :)
    14. Malhorne
      Malhorne
      Linked List -> One sense of direction (don't know if it means the same as in french xD)
      Circular -> Two sense of direction. The first to loop through, the second to recycle !

      Thanks for the compliment !


      EDIT : But to be honest dunno how to do singly linked list to do recycle and loop ^^'
      EDIT2 : Maybe two singly linked list works like this . But this will looks like circular at one moment ^^
      EDIT3 : Ah yes ... I remember now, they are using the head/prev/next thingy.

      EDIT4 : Starting to going mad xD !
    15. Malhorne
      Malhorne
      Ahah when I got a bug on that spell I posted it in the WEHZ group to find help but nobody found the bug xD !
      I found it one hour ago and now uploaded :D
    16. Malhorne
      Malhorne
      Exactly !
      And I only use circular linked list :D
    17. Malhorne
      Malhorne
      Linked list is my style ;)

      My best style is circular linked list :)
      I'm the one who revived it I told you ^^
    18. Malhorne
      Malhorne
      So what do you think of it ?
    19. Malhorne
      Malhorne
      Uploaded !
    20. Malhorne
      Malhorne
      We'll see if it fits well ^^
      Nearly done with the map.
  • Loading...
  • Loading...
  • About

    WarCraft 3 Realm:
    Northrend (Europe)
    Favourite Race:
    Arakkoa
    Favorite Organization/Clan:
    Kirin Tor
  • Loading...