My Jumpers are problematic

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
User avatar
manstie
Posts: 310
Joined: Wed Jun 17, 2009 9:27 am
Account: manstie
Location: Perth, Australia
Contact:

My Jumpers are problematic

Unread post by manstie »

Hello 3ICE,

I come to you to ask for your assistance in a problem I am encountering.
I'm not sure what it is, but my jumpers are sick :cry:.
Whenever I jump from this jumper:
Image
In single player, it jumps perfectly fine...
When testing with others, It jumps probably half the height.

My assumptions of what it could be:
My jumper isn't MUI?
The hill is somehow affecting the jump?
Vexorian's map optimizer somehow screwes it up?

Heres my jumper:

Code: Select all

function Trig_Jumper_Conditions takes nothing returns boolean
    if(not(IsUnitInGroup(GetTriggerUnit(),udg_H) == true))then
        return false
    endif
    return true
endfunction

function Trig_Jumper_Actions takes nothing returns nothing
    local unit u=GetTriggerUnit()
    local real x=GetUnitX(u)
    local real y=GetUnitY(u)
    if(GetUnitFlyHeight(u)<1)then
        set udg_LastTerrain[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))+1] = GetTerrainType(x,y) 
        call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 500.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 400.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 300.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 200.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 100.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 100.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 200.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 300.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 400.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 500.00 )
        call TriggerSleepAction( 0.05 )
        call SetUnitFlyHeight( GetTriggerUnit(), 0, 500.00 )
    endif
endfunction

function InitTrig_Jumper takes nothing returns nothing
    set gg_trg_Jumper = CreateTrigger(  )
    call TriggerAddCondition( gg_trg_Jumper, Condition( function Trig_Jumper_Conditions ) )
    call TriggerAddAction( gg_trg_Jumper, function Trig_Jumper_Actions )
endfunction
By the way:
Image
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: My Jumpers are problematic

Unread post by 3ICE »

Just a guess, but maybe the problem is the product of too many short sleeps after each other and the lag /delay /latency of Battle.net.
Try using SetUnitFlyHeight() only two times, gives you a nicer arch too.
ImageImageImageImageImage
Image
ImageImage

User avatar
manstie
Posts: 310
Joined: Wed Jun 17, 2009 9:27 am
Account: manstie
Location: Perth, Australia
Contact:

Re: My Jumpers are problematic

Unread post by manstie »

But that means it wont have a realistic fly up / down... I tried to improove on just 1 then 2, because I saw yours and it looked horrible...
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: My Jumpers are problematic

Unread post by 3ICE »

But then you will be stuck with the bug in your map...
ImageImageImageImageImage
Image
ImageImage

User avatar
manstie
Posts: 310
Joined: Wed Jun 17, 2009 9:27 am
Account: manstie
Location: Perth, Australia
Contact:

Re: My Jumpers are problematic

Unread post by manstie »

Fine, I'll do it half-half.
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: My Jumpers are problematic

Unread post by 3ICE »

Excellent. Problem solved :)
ImageImageImageImageImage
Image
ImageImage

User avatar
manstie
Posts: 310
Joined: Wed Jun 17, 2009 9:27 am
Account: manstie
Location: Perth, Australia
Contact:

Re: My Jumpers are problematic

Unread post by manstie »

3ICE wrote:Excellent. Problem solved :)
Hopefully... Still havent tried it on battle.net yet.
Image

samtre
Posts: 82
Joined: Thu Nov 27, 2008 6:43 am

Re: My Jumpers are problematic

Unread post by samtre »

i was wondering, if you could use flying heights on ground units.... for some skill effects

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: My Jumpers are problematic

Unread post by 3ICE »

Wtf?
ImageImageImageImageImage
Image
ImageImage

Thurst4blood
Posts: 39
Joined: Fri May 21, 2010 6:50 pm
Account: Thurst4blood

Re: My Jumpers are problematic

Unread post by Thurst4blood »

WHY use that many flying height changes!?!?!

use the attachment provided for better results.

any errors? reply back to me
Attachments
testjump.w3x
testjump, no need for mass set heights
(26.88 KiB) Downloaded 449 times
Last edited by 3ICE on Sat Mar 19, 2011 2:38 pm, edited 1 time in total.
Reason: removed huge quote

Post Reply

Who is online

Users browsing this forum: No registered users and 111 guests