• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[vJASS] Creating Floating Texts

Status
Not open for further replies.
Level 11
Joined
Jun 30, 2008
Messages
580
Hello Hivers,

What are the general rules when coding (with vJass) with Floating Texts? I read a post that stated that if you Create them locally and use them in a hashtable you will have desync problems?

I'm basically trying to create a good base system to track each players floating text in the game (Due to the 100 limit), IE it being Unit Name Tags, Damage Text, Etc..

I would like to make the floating texts an object stored in a hashtable and created locally based on conditions. Will I have problems?

Thanks!

ShadowFlare
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
As long as the things different players do not interact you should have no problem. The problems comes when something created locally for player A interacts with anything of another player.

As I know floating texts and visual effects are a some of the few things which do not cause desinc if used locally. Although if you try to store any of the local data into anything available to other players, you will have problems.

Pls, Correct me if wrong !
 
One important thing when using text tags - do NOT use the SetTextTagColor() native to set its color, since this function is bugged and might cause the text to not show up at all. Instead, use the normal color hex tags you use when making tooltips.

I don't think saving a locally created texttag in a hashtable is a good idea though, since the other players will be saving a null value instead, and i am not sure how the client handles this (for instance, GetHandleId(null) might cause you some issues).
 
Status
Not open for further replies.
Top