• 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.

Cast spell & players click buttons & get a 20sec-2mi

Status
Not open for further replies.
Level 4
Joined
Sep 26, 2005
Messages
40
I have a spell that is like a Jump. when i do the jump, not long after a some players cannot click buttons.. or rather, there is really a delay on the clicking. so that player may try to cast a spell.. or buy an item or revive and when they click the icon.. they have to wait often 20 seconds up to 2minutes before it responds. sometimes it even happens to the character that does the jumping!

Now, this only happens when this "jump" ability is done online.

how i do the jump is basically like this: i target an area with a dummy spell (dispel).. a dummy unit is then created at my location and is ordered to cast cluster rockets (another dummy spell.. no damage.. no targets with a differnt graphic) on that same target area. then after a timer goes off, my character does is made invunerable, paused and loses his collision and then is made hidden.. the distance from him to the location is measured and set in a Variable.. it then estimates when the graphic finishes and instantly moves that hidden hero to that spot and then unpauses, vunerable again and has collision again and another dummy caster is created that Warstomps the ground, stunning all units around.

now, i dont see what the problem could be.. i've done many spells where i hide units and play with collision, invunerablity and dummy spells.. i've rewritten the code for it like 4 times.. and i have gone over it and over it for leaks. i must have spent like 30 hours working on this thing over the course of a week trying to figure out what is causing that.

it's driving me nuts.

is that the sign of a leak? the only thing that i think has the potential to leak in my trig are the points.. but i var them and then custom script destroy each. i'm very good at covering that and closing things properly. i'm so careful, that i even create backup way of clearing junk up.

now when someone picks that character everyone asks him to Please not jump!

lets say i jump.. what will happen is.. like soon after one of the people that are playing will say something like "what the !@#$#, i can't click on any buttons!" then i'll say "oops, sorry, i used it again".. "quit that!"

when they click the button, they can go grab a drink and come back to finally find it doing what it was told to do.

if you want to see it in action or look at the code, my map is unprotected. it's the "Leap" spell and the hero at the hero select is "Juggernaut". he's a grunt.
Code:
http://www.4shared.com/file/1217560/3071e1fc/treeelderofancients_115b.html
thanks for your time. =)
 
Level 7
Joined
Jul 30, 2004
Messages
451
no idea, i didn't actually run the map but i briefed through the triggers

i don't trust 'wait' actions myself besides in cinematics, but if you've used them before then i can't comment much on em

but i have exams, so i can't take a further look, sorry
 
Level 4
Joined
Sep 26, 2005
Messages
40
thanks for looking at least.

Yeah, i know what you mean. i dont trust them much either. Especially the ones that just state an exact time to wait. However, the ones that are "wait until condition" seem to be quite solid from what i've observed. I've used them in many trigs. I trust timers so much more.. so i have a wait until timer is less than or equal to a certain amount and it will never stop checking. so, even if lag causes it to miss somehow, the next .10 sec check, it will do it again. and with waiting an additional .10 sec, you'd probably never notice the difference.

But still. it makes NO SENSE how anything in that code could have ANYTHING to do with other players! That's what is driving me nuts! I've revized that code like 3-4 times and it never fails...making it tighter each time. I don't see how it can get any more solid.

i had an idea that maybe it was the invisibility modifiers.. that was the only thing i've never used in spell reactions before. so.. i tried taking those out and instead have a none.mdl sentry ward apear in each place (must have some visibility while he is hidden during the graphic run). However that didn't change anything. =(

i thought for sure that had to be it since it was the ONLY new thing i tried in a custom spell.

that map you looked at, is the finished copy. (version just before i took those modifiers out, but doesn't matter since still dont work).

Try playing it online and picking the grunt hero (juggernaut). keep jumping .. especially near heroes is when i notice it the most. you'll get a lot of compaints from peeps when some start to realize they can't click buttons.


it's too bad, cuz i find it looks so nice. almost anime-styled sorta jump.


i wish wc3campaigns.com had not closed. there seemed to be more people in those forums than here. this forum doesn't seem to cater as much to GUI trigs. it's only you that ever replies.
 
Status
Not open for further replies.
Top