• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Can't test map

Status
Not open for further replies.
Level 7
Joined
Oct 10, 2009
Messages
111
Yesterday I get that I'm making my map in WE in version of Warcraft 1.21b ( i hope you get what i talking about)
I deleted that version, just this one left (1.24a).
Today, I enter to edit something in my map, I start to test..
It's error that whole my script map is wrong...
Here is the part of the text
JASS:
   call MoveRectToLoc( gg_rct_Einsten, GetRectCenter(gg_rct_Region_mover) )
endfunction

//===========================================================================
function InitTrig_Einstein takes nothing returns nothing
    set gg_trg_Einstein = CreateTrigger(  )
    call TriggerRegisterEnterRectSimple( gg_trg_Einstein, gg_rct_Einsten )
    call TriggerAddCondition( gg_trg_Einstein, Condition( function Trig_Einstein_Conditions ) )
    call TriggerAddAction( gg_trg_Einstein, function Trig_Einstein_Actions )
endfunction

//===========================================================================
// Trigger: Goodies
//===========================================================================
function Trig_Goodies_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'e000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Goodies_Actions takes nothing returns nothing
    call CreateNUnitsAtLoc( 1, 'E001', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Hero_spawn), bj_UNIT_FACING )
    call RemoveUnit( GetEnteringUnit() )
    call RemoveUnit( gg_unit_E001_0025 )
    call MoveRectToLoc( gg_rct_Godies, GetRectCenter(gg_rct_Region_mover) )
endfunction

//===========================================================================
function InitTrig_Goodies takes nothing returns nothing
    set gg_trg_Goodies = CreateTrigger(  )
    call TriggerRegisterEnterRectSimple( gg_trg_Goodies, gg_rct_Godies )
    call TriggerAddCondition( gg_trg_Goodies, Condition( function Trig_Goodies_Conditions ) )
    call TriggerAddAction( gg_trg_Goodies, function Trig_Goodies_Actions )
endfunction

//===========================================================================
// Trigger: HammerGod
//===========================================================================
function Trig_HammerGod_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'e000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_HammerGod_Actions takes nothing returns nothing
    call CreateNUnitsAtLoc( 1, 'H000', GetOwningPlayer(GetEnteringUnit()), GetRandomLocInRect(gg_rct_Hero_spawn), bj_UNIT_FACING )
    call RemoveUnit( GetEnteringUnit() )
    call RemoveUnit( gg_unit_H000_0026 )
    call MoveRectToLoc( gg_rct_Hammer_God, GetRectCenter(gg_rct_Region_mover) )
endfunction

//===========================================================================
function InitTrig_HammerGod takes nothing returns nothing
    set gg_trg_HammerGod = CreateTrigger(  )
    call TriggerRegisterEnterRectSimple( gg_trg_HammerGod, gg_rct_Hammer_God )
    call TriggerAddCondition( gg_trg_HammerGod, Condition( function Trig_HammerGod_Conditions ) )
    call TriggerAddAction( gg_trg_HammerGod, function Trig_HammerGod_Actions )
endfunction

//===========================================================================
// Trigger: AuraGod
//===========================================================================
function Trig_AuraGod_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'e000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_AuraGod_Actions takes nothing returns nothing
    call CreateNUnitsAtLoc( 1, 'E003', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Hero_spawn), bj_UNIT_FACING )
    call RemoveUnit( GetEnteringUnit() )
    call RemoveUnit( gg_unit_E003_0053 )
    call MoveRectToLoc( gg_rct_AuraGod, GetRectCenter(gg_rct_Region_mover) )
endfunction

//===========================================================================
function InitTrig_AuraGod takes nothing returns nothing
    set gg_trg_AuraGod = CreateTrigger(  )
    call TriggerRegisterEnterRectSimple( gg_trg_AuraGod, gg_rct_AuraGod )
    call TriggerAddCondition( gg_trg_AuraGod, Condition( function Trig_AuraGod_Conditions ) )
    call TriggerAddAction( gg_trg_AuraGod, function Trig_AuraGod_Actions )
endfunction

//===========================================================================
// Trigger: Spell God
//===========================================================================
function Trig_Spell_God_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'e000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Spell_God_Actions takes nothing returns nothing
    call CreateNUnitsAtLoc( 1, 'H00F', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
    call RemoveUnit( GetEnteringUnit() )
    call RemoveUnit( gg_unit_H00F_0042 )
    call MoveRectToLoc( gg_rct_Spell_Caster, GetRectCenter(gg_rct_Region_mover) )
endfunction

//===========================================================================
function InitTrig_Spell_God takes nothing returns nothing
    set gg_trg_Spell_God = CreateTrigger(  )
    call TriggerRegisterEnterRectSimple( gg_trg_Spell_God, gg_rct_Spell_Caster )
    call TriggerAddCondition( gg_trg_Spell_God, Condition( function Trig_Spell_God_Conditions ) )
    call TriggerAddAction( gg_trg_Spell_God, function Trig_Spell_God_Actions )
endfunction

And like that... I try to rr computer and stuffs like that, try to wait a little, but it isn't f' working.
Is there anyway that I can edit my map like this ? I think, I can edit it, but I can't save it or test it.
It's realy stupid ... and it's anoying me.....
+ Rep who helps
 
Level 1
Joined
Nov 6, 2009
Messages
1
had the same problem just uninstallled and deleted every single thing in my wc3 folder and then my map editor worked :cool:
 
Level 2
Joined
Nov 7, 2009
Messages
11
Did you delete the trigger ''melee intialization''? :p

EDIT: I just realize that is for winning the game instantly. Ignore this post.
 
Level 9
Joined
Jun 7, 2008
Messages
440
Do you have any custom scripts??? You may have the wrong variable name. I had that problem happen. One "()" missing causes a massive error. Even when missing only one. If that doesnt work. Post your map - if you don't mind. And get one of us to look into it.
 
Status
Not open for further replies.
Top