HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

100 texttag limit?

05-29-2005, 04:50 PM#1
PitzerMike
It appears you can only have 100 texttags at the same time in a map.
To test it, copy this script and run it:

Code:
function H2I takes handle H returns integer
  return H
  return 0
endfunction

function dbg_TexttagTest takes nothing returns nothing
  local integer i = 0
  loop
    exitwhen i == 100
    call dbg_Print(I2S(H2I(CreateTextTag())))
    set i = i + 1
  endloop

  call dbg_Print(I2S(H2I(CreateTextTag())))
  call dbg_Print(I2S(H2I(CreateTextTag())))
  call dbg_Print(I2S(H2I(CreateTextTag())))
endfunction


You will see that texttag handle-references count down from 99 to 0 as they are created.
Therefore the output you will see is 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0

You see that the last 4 created texttags have the same reference. Fact is that only the last of those 4 texttags is now accessible, the reference to the other 3 texttags is lost.

Unfortunately I couldn't find any workaround for this
Any suggestions?


BTW, Vex, I guess this is what the other dude in the JASS-vault meant when he said another texttag would be destroyed or something.,...
05-30-2005, 10:05 PM#2
Guest
Here a attached map which will show you what I was talking about on the Jass Vault.
05-30-2005, 10:15 PM#3
Vexorian
Both things are unrelated.

We already knew there was a limit, dataangel was the first one reporting it, the only fix for this would be not using more than 100 texttags
05-30-2005, 10:20 PM#4
Taur
textags are.... floating texts?
05-30-2005, 10:24 PM#5
Vexorian
Quote:
Originally Posted by darkhorde
textags are.... floating texts?
Floating texts are texttags