Recent content by Tar-Quaeron

  1. T

    Hashtables

    Yeah, ok, I see. So it's really important, to save memory usage, to call RemoveSavedReal/RemoveSavedHandle/FlushTable after use, else the hashing function will have to call another function which reallocates the data to another index, so as to avoid collision. @Bribe, in the jass manual...
  2. T

    Hashtables

    Oh okay, yeah, I was wondering that too, if after use you had to be like: call SaveEffectHandle(bla, bla, bla, null). Still, they take up RAM, just like any other variable. Especially if they're global, that memory is never freed while the map runs. For example a global integer array in JASS...
  3. T

    Hashtables

    Does anyone know how much RAM a global hashtable takes up? Because if it's an array representing 2.1 billion (about the possible range of an integer) * 2.1 billion handles in a table, that's 4*10^18*4 bytes (because the hashtable would store a pointer to the handle in question, i.e. an...
  4. T

    HELP: fatal error-memory could not be written

    Sorry I realize that this belongs more into the JASS section. I thought I was there (I just followed what firefox proposed). I don't know how to move it though (I guess only admins can do that?). I hope someone is still able to help me.
  5. T

    HELP: fatal error-memory could not be written

    Hello, There seems to be a problem with my function corrosive acid. Every time, and on different computers (at first I thought it was a ram problem on my old computer) when the buff for corrosive acid should be removed there comes a fatal error. Warcraft closes and the message I get is: fatal...
  6. T

    Two questions-ifs

    Oh right I've been wondering, what happens if you add several TriggerAddAction and TriggerAddConditions to one trigger? Do all of the conditions have to return true for all of the action functions to be called?
  7. T

    Two questions-ifs

    Oh so you have to use DisableTrigger, Remove Action/Condition, FlushHandleVars before you destroy a trigger to remove all memory leaks? I mean unnecessary use of a trigger? What does flush handle vars do exactly? Remove all the handles in the Actions and Condition functions? Or just destroy the...
  8. T

    Two questions-ifs

    Why does every thing have to NewGen, or is this vJass (I can't remember which one is scopes and which is structs)? I don't feel like learning or even downloading all those, well I guess you have to choose one. My question applies specifically to vanilla Jass (is that the term for classic...
  9. T

    How can I check if any unit of a type are within X range of another unit?

    Probably (I'm not sure it's the most efficient way): function IsUnitUnitType takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == yourunittype endfunction function check takes nothing returns boolean return FirstOfGroup(GetUnitsInRangeOfLocMatching(yourrealradius...
  10. T

    Two questions-ifs

    I have two related questions. 1st: Do triggers which are triggered when something related to a specific unit happens get destroyed when the specific unit gets destroyed? I'm talking about TriggerRegisterUnitEvent and TriggerRegisterUnitInRange. I mean obviously (hopefully) the trigger won't...
  11. T

    how to autobuild?

    The trigger suggested by Nherwyziant should work like you want. Once the building in question (== barracks in his example) is finished it should automatically start building a footman (in his example). If you want summoned buildings like undead all you need to do it give the summon ability (you...
  12. T

    Capture Point System (Like Warhammer)

    Or the TriggerRegisterUnitInRange event function? If your using GUI, this event is not available but you can use custom script to do it. It would simplify your life a lot (as opposed to picking up every unit every second, checking the distance to your flag, etc) Edit:Actually picking up every...
  13. T

    Bouncing attack + Slow poison on a tower

    For all my towers that do splash/bounce and that I want to give a special attack (ex. ice slow, poison etc) I use a trigger to create a dummy unit at the point of unit attacked (or unit damaged if you want to go for a safer damage detection system), give it the slow ability I want and then order...
  14. T

    Arena Custom Hero Arena (Remade)

    Hey, I'm a huge fan of CHA. I've only played up until version 6.2, the really old one, still by Slayerdragon I believe. It's very hard to find games on the Northrend server (in fact I think I've seen one in like 6 months and I play pretty regularly) although probably that's also because you're...
  15. T

    Error

    Marvelous it works. ^^ Thx. Haha, thx for the suggestions. The reason I don't use any of those "cracked" (are they all "cracked"?) is that I don't know about them/understand what they do. Scopes, Libraries, what else is there, structs? is all gibberish to me. Even the names of the add ons I...
Top