PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 03-16-2008   #1
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
My monsters 'twitch' when hit

I'm having an odd problem with my map:

When monsters are being hit by units (which have a very small collision size (which was 1, but i raised it to 8 and that didn't fix anything) whether melee, ranged or even ranged towers, they 'twitch' and never complete a full swing.

They are effectively paralyzed.

As you can imagine, this makes the monster spawn much easier than it should be and I am having balancing woes.

Can anyone help me figure this out?
Aro2222 is offline   Reply With Quote
Old 03-16-2008   #2
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: My monsters 'twitch' when hit

Never heard of that symptom before. Any abilities on the unit there is attacking the creep?
Mr. Zero is offline   Reply With Quote
Old 03-16-2008   #3
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

No, the tower has no special abilities and the units also have no special abilities. ...here is a copy of my game. Play it and see.
Attached Files
File Type: w3m Defend the Temple 0.4.065.w3m (557.2 KB, 14 views)
Aro2222 is offline   Reply With Quote
Old 03-17-2008   #4
 
Join Date: Jan 2008
Location: *Don't look under the stairs*
Posts: 320
Typewriter has a spectacular aura about
Re: My monsters 'twitch' when hit

Thats kinda funny, i'm no expert, but maybe the units have too many targets or something? Its a longshot, but try having less but stronger temple defenders. Oh, Btw, good looking map =).


[Only registered and activated users can see links. ]
Typewriter is offline   Reply With Quote
Old 03-17-2008   #5
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: My monsters 'twitch' when hit

Hmm it looks like the AI can't choose it targets.
Mr. Zero is offline   Reply With Quote
Old 03-17-2008   #6
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

First of all, that's an interesting suggestion. I would never have thought of that.

If you played the map you will have noticed that I have shrunk all the temple defender units, so that the game looks like its in 'high res'. I also reduced the collision size, so the units get closer together (and can walk through tighter areas).

However, that has been the case for hundreds of versions and this twitch bug is 'relatively' new.

I have also reduced the monster collision size to 8.00, so that they could get closer together. Could this have something to do with the problem? I can't say for certain, but the twitch bug may have happened around the time I changed the monster collision size.

I need to figure this bug out as soon as possible as I can't balance the monsters until this bug is removed. I've made the level 9 monsters extremely powerful...except they don't seem that way since they just sit around twitching!

I will report back later...:P

Last edited by Aro2222; 03-17-2008 at 10:24 PM.
Aro2222 is offline   Reply With Quote
Old 03-18-2008   #7
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: My monsters 'twitch' when hit

I can't see how this is because of the creeps collision size. Try disable the AI?
Mr. Zero is offline   Reply With Quote
Old 03-18-2008   #8
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

How do you disable the AI?
Aro2222 is offline   Reply With Quote
Old 03-18-2008   #9
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

I did a test that might help shed light on this problem:

When I place a unit on the map (so the map starts with the unit), when it is being hit it DOES NOT TWITCH

When a unit that is being spawned and told to attack by my trigger comes down...IT DOES TWITCH.

Interesting. I am going to take a closer look at my spawn trigger.
Aro2222 is offline   Reply With Quote
Old 03-18-2008   #10
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: My monsters 'twitch' when hit

Quote:
Originally Posted by Aro2222 View Post
I did a test that might help shed light on this problem:

When I place a unit on the map (so the map starts with the unit), when it is being hit it DOES NOT TWITCH

When a unit that is being spawned and told to attack by my trigger comes down...IT DOES TWITCH.

Interesting. I am going to take a closer look at my spawn trigger.
It does sound like a AI problem. Often is it because of a feature Blizzard call "Creep Camp". Creep goes in camps and wont go too far away.

Try this:
Code:
Disable AI
    Events
        Map initialization
    Conditions
    Actions
        AI - Ignore the guard positions of all MyPlayer units
With the player that have the creeps.

Also if you have TFT try set Guard Distance in the Game Constants to 9999 same with return time under AI.
Mr. Zero is offline   Reply With Quote
Old 03-18-2008   #11
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

I did what you said, but they still twitch

I cleaned up my triggers, but that didn't help.

I don't know how to copy/paste my GUI code into this like you did...so here's what it looks like when I convert it to custom text.

Code:
function Trig_The_Main_Spawner_Copy_Func008C takes nothing returns boolean
    if ( not ( udg_iMonsterSpawnUnitPointer >= udg_aGameMaxSpawnedUnitCount ) ) then
        return false
    endif
    return true
endfunction

function Trig_The_Main_Spawner_Copy_Actions takes nothing returns nothing
    set udg_Temp_Point = GetRectCenter(gg_rct_Iblis)
    set udg_Temp_PointTemple = GetRectCenter(gg_rct_Temple)
    // Set Evil Power
    set udg_evilpower_real = ( udg_evilpower_real + 0.18 )
    set udg_evilpower = R2I(udg_evilpower_real)
    // Set Pointer
    if ( Trig_The_Main_Spawner_Copy_Func008C() ) then
        set udg_iMonsterSpawnUnitPointer = 1
    else
        set udg_iMonsterSpawnUnitPointer = ( udg_iMonsterSpawnUnitPointer + 1 )
    endif
    // Spawn Creatures
    call RemoveUnit( udg_uSpawnedMonsters[udg_iMonsterSpawnUnitPointer] )
    call ConditionalTriggerExecute( gg_trg_Random_Number_Picker )
    call CreateNUnitsAtLoc( 1, udg_uLevel[udg_evilpowerrandompick], Player(9), udg_Temp_Point, bj_UNIT_FACING )
    set udg_uSpawnedMonsters[udg_iMonsterSpawnUnitPointer] = GetLastCreatedUnit()
    call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", udg_Temp_PointTemple )
    // Remove Points
    call RemoveLocation (udg_Temp_Point)
    call RemoveLocation (udg_Temp_PointTemple)
endfunction

//===========================================================================
function InitTrig_The_Main_Spawner_Copy takes nothing returns nothing
    set gg_trg_The_Main_Spawner_Copy = CreateTrigger(  )
    call TriggerRegisterTimerEventPeriodic( gg_trg_The_Main_Spawner_Copy, 4.00 )
    call TriggerAddAction( gg_trg_The_Main_Spawner_Copy, function Trig_The_Main_Spawner_Copy_Actions )
endfunction
Aro2222 is offline   Reply With Quote
Old 03-18-2008   #12
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

the above trigger is not the problem.

i removed it completely and replaced it with a trigger that did nothing but spawn a unit and send it in to attack (two lines long)

the monsters still twitched.
Aro2222 is offline   Reply With Quote
Old 03-19-2008   #13
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: My monsters 'twitch' when hit

I can't see the problem in the map. I don't think it is a trigger that are causing the troubles.

I'm almost 100% sure it is the AI. Why?
  • Move the hero close to the creeps and they will instantly attack the hero, e.g. the AI is active.
  • When multiple enemy units comes within range of the creep it starts to swift between targets.
  • When hit it will try attack the enemy that hit it, yet it also want to attack the enemy with highest priority.

Hmm but I don't know how to fix it...
Mr. Zero is offline   Reply With Quote
Old 03-19-2008   #14
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

In the beginning of the map there are 5 generals out front that get attacked by the spawn.

They're all the same priority (all the same unit) and it still twitches.

I did some error checking and found an interesting result:

I deleted all the units in the game and then had only default setting units being created / being attacked. It still twitched.

So then, I created a new map and created a simple spawn attack trigger, and it didn't twitch. (So it's not an internal problem with my game)

So then, I deleted all my triggers and just created 1 simple spawn trigger...IT DIDNT TWITCH.

The problem is with one of my triggers. I'm going to delete them one by one until it stops and then I will have a good idea where the problem is.
Aro2222 is offline   Reply With Quote
Old 03-19-2008   #15
 
Join Date: Mar 2008
Posts: 13
Aro2222 is an unknown quantity at this point
Re: My monsters 'twitch' when hit

I fixed it!

I totally forgot I had this trigger...

Whenever an enemy unit is attacked it commands that unit to attack-move to the end position again. I originally put this in many many many versions ago to help the monsters from getting stuck. Since then, I have found better ways of doing this but, I never actually removed the trigger.

It's gone now. Nothing is twitching.

Hallaleuja!

Thanks for your help Mr. Zero, you got me thinking the right way!
Aro2222 is offline   Reply With Quote
Old 03-20-2008   #16
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: My monsters 'twitch' when hit

Oh, well glad I helped .
Mr. Zero is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug Report monsters from lothorien coming up? darkziel Bug Report Board 3 05-03-2008 09:23 PM
Israel says Hezbollah can hit Tel Aviv Halakbalakbalak News Submission 0 11-03-2007 06:32 PM
Unit editor basic guide Halakbalakbalak Submit a Tutorial [World Editor] 1 10-19-2007 02:18 PM
PoLlama theme song Lord_Asmodeus Po-Talk 44 08-17-2007 12:21 PM
Terms of super smash bros meele luigi_fan64 Super Smash Brothers 1 07-19-2007 09:47 PM


All times are GMT -5. The time now is 09:05 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165