1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.
Last Activity:
Aug 26, 2015
Oct 11, 2012


Well-Known Member

Geshishouhu was last seen:
Aug 26, 2015
    1. 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
      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
      Np. Happy modding! :cgrin:
    4. Mythic
      Howdy Geish? [IMG]
    5. Malhorne
      I'm still around but less until summer :)
    6. 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
      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
      Thanks for the +rep :)
    9. Malhorne
      Ahah no problem xD
    10. 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
      set u = FirstOfGroup(g)
      exitwhen u == null
      call GroupRemoveUnit(g,u)
      set data[index] = u
      set index = index + 1
      //u will hold the random unit
      set u = data[GetRandomInt(0,index)]
    11. Malhorne
    12. Malhorne
      Okay :3
      But there is an ugly textmacro xD !
      Anyway feel free to ask questions :)
    13. Malhorne
      Ahah xD
      In the fear explosion I use it too :)
    14. 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
      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
      Exactly !
      And I only use circular linked list :D
    17. 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
      So what do you think of it ?
    19. Malhorne
      Uploaded !
    20. Malhorne
      We'll see if it fits well ^^
      Nearly done with the map.
  • Loading...
  • Loading...
  • About

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