Recent content by the Immortal

  1. T

    Map Configuration

    Really, guys.... Disable half of the triggers. Does it still occur? If so then its in the enabled, if no its in the disabled. Take the half where the trigger is, rinse and repeat. Hard? Extremely. Binary search solves everything /discuss. PS. Someone's gotta write a guide to...
  2. T

    Hashtables

    Read on them? JASS may have nothing to do with Cpp. For example the arrays we use in JASS are indeed dynamic, but they seem not to be as C++'s vectors (did a small test somewhere, gonna find it if u want). First, hashtables use (Surprise!) a hash function on the keys and then store the...
  3. T

    System Status

    Percentages 1% - 511%? +30% IAS would be modAttackSpeedBonus(30)
  4. T

    J4L's "Damage" breaking the thread ?!

    Yeah, found a flaw. What I wrote about it being "fixed" when using mass-killing AoE abilities would be wrong, as if you kill a unit that doesn't give XP and one that does with, let's say, a thunder clap, it would most probably run the damage events instantly one after another, the 1st unit will...
  5. T

    A question on Trigger Creation

    globals hashtable ht //created in the GUI variable editor if you aren't using vJASS, or even substituted by Table by Vexorian if you do endglobals function TestFunction1_Conditions takes string a returns nothing local string a if GetUnitTypeId(GetTriggerUnit()) == 'hfoo' then...
  6. T

    Null?

    > the unit is technically not null. Why? I don't know. Because it exists. A dead unit is still an unit nonetheless. It just has one classification more- UNIT_TYPE_DEAD. On your problem, try debugging more. Obviously you are sending a null unit (the reasons may be many - incorrectly indexed...
  7. T

    J4L's "Damage" breaking the thread ?!

    On lethal damage pick all heroes allied to the damage source, suspend their XP gain, start a 0 sec timer, and on expire revert the change (if it should be reverted). Shouldda work, neither tested nor anything but.. try it. native SuspendHeroXP takes unit whichHero, boolean flag returns nothing...
  8. T

    Can(Will) Anyone Teach Me DotA?

    > Every str-hero is good except Pit Lord Yeah, he is awesome. Turtle, initiate, tank, disable, massive creep killing capacity. You won't probably get beyond with him, but played well, he may prove to be the backbone of the entire team. Garena is a gaming platform where for PUBs you gotta...
  9. T

    Discussion N-Dimensional Arrays, Useful?

    Wait, if I got it properly, you have the main object, with a linked list on it; then every child node of that object gets added to the list. So if you write arr[1][2][3] then the 1 is attached to the main list, 2 is attached as 'next' of 1 i.e. in the same list and so on. Then you save into...
  10. T

    Discussion N-Dimensional Arrays, Useful?

    Really cool as a concept (and realization) but really can't seem to find a use for it anywhere. Also, at its current state .destroy() doesn't work - stops the thread. Though I'm not quite sure if I understand your recycling mechanism, I suppose it comes from the .allocate() instead of...
  11. T

    Unit that visible to one player

    Using JASS' GetLocalPlayer() in a Custom Script line, either set their scaling value (and/or transparency) to the lowest possible, or set their z-height (after exploting the fly bug from medivh's raven form - easiest is by pasting this in your map) to extremely high. The custom script for...
  12. T

    Remove Commands from Unit?

    Adding the "Locust" ability to an unit will make it unselectable and uncontrollable. Another but kinda non-clean way to make an unit selectable but uncontrollable would be to make a trigger fire when an order is issued and either stop the unit, or re-issue the last given order (using some kind...
  13. T

    Structs extends, what can they all be used for ? :S

    Erm, you can't extend native types. Only other structs and "arrays", although the latter simply means the struct will act as an array and not create automatically allocate/deallocate methods. Structs extending arrays are used when you don't use (de)allocates - when indexing objects, when...
  14. T

    [Useless] Array allocation

    That is how Cpp vectors work and that's why I tested first allocating index 4100 (>4096), and only after that - 8100(<8192). As 4100 > 4096, if it was working as you described (and as C vectors work, as I mentioned), it would allocate all the memory at that point so when I used index 8100 no...
  15. T

    [Useless] Array allocation

    Erm, being kinda homesick, having plenty of free time, blahblah.. in short decided to test how array allocation works. Conclusion: Arrays are resized (surely reallocated) when a size request is issued. In other words, the size of an array (and correspondingly the memory it takes) depends on...
Top