Recent content by WaterKnight

  1. W

    Map won't play when I add a globals block

    Which tool is it that displays the error? It sounds like you had not enabled vJass. Do other features of vJass work?
  2. W

    Help with controlling leaks, did I do this right?

    hx and gx should be nulled after you have removed their objects in case those are local variables. CreateNUnitsAtLoc can be replaced by native CreateUnit takes player id, integer unitid, real x, real y, real face returns unit You actually do not even need a location and there is...
  3. W

    How to virus in Warcraft III

    So I guess this still has not been fixed nor adressed after 1,5 years?
  4. W

    About TriggerAddAction

    A trigger condition cannot use waits. But independent from that, it's just some sort of organization to interconnect dynamic codes and for semantics. The worst thing, you can do, would be to replace TriggerAddAction by TriggerAddCondition directly inlined. Because that's not what it stands for...
  5. W

    [Ad] inWarcraft Mapping Wish List

    On inwarcraft.de, in the past month, we have collected some suggestions that would improve wc3 mapmaking. The requirements were that backwards compatibility should be maintained and that it should not stray too far away of the existing engine. The results were posted in blizzards suggestion...
  6. W

    Can vJass structs have integer value 0?

    By comparing it to -1 as suggested here? You can if you preallocate this -1 to where it belongs to. I guess you are referring to the default values of Wc3, game caches, hash tables and integer arrays returning 0 at unassigned keys. Suitable index allocation method depends on the situation...
  7. W

    Texttags recycle themselves ???

    You can have up to 100 texttags, their ids ranging from 99-0 (counting downwards). When you destroy a text tag/it's life span ends, its id is available again, being thrown at the top of the stack. This means, you will first get the latest released ids back. If all 100 texttag slots are used up...
  8. W

    Code Speed: Functions

    Functions without parameters cost nearly nothing. Else it has to declare the locals and assign them the incoming values. But it's nuts to make this priority. There are other interests mapmakers strive for like progress, modularity, not write the same things twice, build greater structures. Would...
  9. W

    Efficient way to trigger unit regeneration?

    I do not know if it is faster and it also depends on your exact situation but these are possibilities. Maybe SetState/GetState is faster than this.life=/SetState/this.life after all. Well, decreasing the frequency would of course help greatly. Regeneration is mostly a slow process in gameplay...
  10. W

    Efficient way to trigger unit regeneration?

    Not sure why you need the evaluation and return false. Instead of call SetUnitState(<unit>, UNIT_STATE_LIFE, <value>) you can use native SetWidgetLife takes widget whichWidget, real newLife returns nothing to save on parameter. Rather than reading out the same value 3 times from struct, you may...
  11. W

    System slows game down

    Why do you need own hashtables for each unit? They already reserve their space by integrating them in the keys. Also you can only have 255 hashtables, so this part alone allows no more than 127 registered units.
  12. W

    [ZINC] Condition Problem

    Group is not initialized and you seem to release the global group then.
  13. W

    Argh! This spells even hurting me!

    Never use "Unit - Damage Area". As you have noticed, you cannot properly filter the targets there and it may even create a problem for mac users as this function is not safe. Pick the units in a group (there is a "range around location" pick type) and you can add a condition function. Then use...
  14. W

    Would you be interested in Playing this type of map

    No, not generally. This means if the global gameplay is more self-sustaining like in GTA or Diablo, that's a plus. But it becomes quickly boring or the desultoriness seems like a huge waste of time. Since it has no ending, people will leave asynchronously and those that are really interested and...
Top