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

Map doesn't load

Status
Not open for further replies.
Level 2
Joined
Aug 15, 2011
Messages
7
Hello everyone, my first post and probably not my last.

I've got a problem, I am kinda new to editing Warcraft 3 maps and I've gotten myself stuck.

Well here's the huuuge error code, if anyone can help me I would be really happy.

If anyone is able to help me with this problem I would be really happy!
:vw_sad:

JASS:
//***************************************************************************
//*
//*  Global Variables
//*
//***************************************************************************

globals
    // Generated
    rect                    gg_rct_Nelthar_Gate_1      = null
    rect                    gg_rct_Nelthar_Spell       = null
    trigger                 gg_trg_Hades               = null
    trigger                 gg_trg_Hades_Copy_2        = null
    trigger                 gg_trg_Hades_Copy_3        = null
    trigger                 gg_trg_Hades_Copy_4        = null
    trigger                 gg_trg_Hades_Copy_5        = null
    trigger                 gg_trg_Hades_Copy_6        = null
    trigger                 gg_trg_Hades_Copy_7        = null
    trigger                 gg_trg_Hades_Copy_8        = null
    trigger                 gg_trg_Hades_Copy_9        = null
    trigger                 gg_trg_Hades_Copy_10       = null
    trigger                 gg_trg_Hades_Copy_10_Copy  = null
    trigger                 gg_trg_Hades_Copy_10_Copy_2 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_3 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_4 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_5 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_6 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_7 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_8 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_9 = null
    trigger                 gg_trg_Hades_Copy_10_Copy_9_Copy = null
    trigger                 gg_trg_Level_1_Durability  = null
    trigger                 gg_trg_Level_2_Durability  = null
    trigger                 gg_trg_Level_3_Durability  = null
    trigger                 gg_trg_Level_4_Durability  = null
    trigger                 gg_trg_Level_5_Durability  = null
    trigger                 gg_trg_Level_6_Durability  = null
    trigger                 gg_trg_Level_7_Durability  = null
    trigger                 gg_trg_Level_8_Durability  = null
    trigger                 gg_trg_Level_9_Durability  = null
    trigger                 gg_trg_Level_10_Durability = null
    trigger                 gg_trg_Level_11_Durability = null
    trigger                 gg_trg_Level_12_Durability = null
    trigger                 gg_trg_Level_13_Durability = null
    trigger                 gg_trg_Level_14_Durability = null
    trigger                 gg_trg_Level_15_Durability = null
    trigger                 gg_trg_Level_16_Durability = null
    trigger                 gg_trg_Level_17_Durability = null
    trigger                 gg_trg_Level_18_Durability = null
    trigger                 gg_trg_Level_19_Durability = null
    trigger                 gg_trg_Level_20_Durability = null
    trigger                 gg_trg_Nelthar_test        = null
    trigger                 gg_trg_Enter_Region_start_boss_fight = null
    trigger                 gg_trg_Summon_Nelthar      = null
    trigger                 gg_trg_Spells              = null
    unit                    gg_unit_u002_0011          = null
    destructable            gg_dest_ATg3_0000          = null
    trigger                 gg_trg_Under_15000_life    = null
    trigger                 gg_trg_Under_15000_life_Copy = null
    rect                    gg_rct_Summon_Zombies      = null
    trigger                 gg_trg_instant_death       = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_Instant_death_1_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Conull = null
    rect                    gg_rct_instant_death_spell_12 = null
    rect                    gg_rct_Instant_daeth_spell_22 = null
    rect                    gg_rct_Instant_Death_spell_32 = null
    rect                    gg_rct_Summons_1           = null
    rect                    gg_rct_Summons_2           = null
    rect                    gg_rct_Summons_3           = null
    trigger                 gg_trg_Summon_Small_Zombies = null
    trigger                 gg_trg_Summon_Small_Zombies_Copy = null
    trigger                 gg_trg_Summon_Small_Zombies_Copy_2 = null
    trigger                 gg_trg_Summoners_die       = null
    trigger                 gg_trg_Summoners_die_Copy  = null
    trigger                 gg_trg_Summoners_die_Copy_Copy = null
endglobals

function InitGlobals takes nothing returns nothing
endfunction

//***************************************************************************
//*
//*  Unit Item Tables
//*
//***************************************************************************

function Unit000001_DropItems takes nothing returns nothing
    local widget  trigWidget = null
    local unit    trigUnit   = null
    local integer itemID     = 0
    local boolean canDrop    = true

    set trigWidget = bj_lastDyingWidget
    if (trigWidget == null) then
        set trigUnit = GetTriggerUnit()
    endif

    if (trigUnit != null) then
        set canDrop = not IsUnitHidden(trigUnit)
        if (canDrop and GetChangingUnit() != null) then
            set canDrop = (GetChangingUnitPrevOwner() == Player(PLAYER_NEUTRAL_AGGRESSIVE))
        endif
    endif

    if (canDrop) then
        // Item set 0
        call RandomDistReset(  )
        call RandomDistAddItem( 'I003', 3 )
        call RandomDistAddItem( 'I004', 6 )
        call RandomDistAddItem( -1, 91 )
        set itemID = RandomDistChoose(  )
        if (trigUnit != null) then
            call UnitDropItem( trigUnit, itemID )
        else
            call WidgetDropItem( trigWidget, itemID )
        endif

        // Item set 1
        call RandomDistReset(  )
        call RandomDistAddItem( 'I003', 7 )
        call RandomDistAddItem( -1, 93 )
        set itemID = RandomDistChoose(  )
        if (trigUnit != null) then
            call UnitDropItem( trigUnit, itemID )
        else
            call WidgetDropItem( trigWidget, itemID )
        endif

        // Item set 2
        call RandomDistReset(  )
        call RandomDistAddItem( 'I004', 10 )
        call RandomDistAddItem( -1, 90 )
        set itemID = RandomDistChoose(  )
        if (trigUnit != null) then
            call UnitDropItem( trigUnit, itemID )
        else
            call WidgetDropItem( trigWidget, itemID )
        endif

    endif

    set bj_lastDyingWidget = null
    call DestroyTrigger(GetTriggeringTrigger())
endfunction


//***************************************************************************
//*
//*  Unit Creation
//*
//***************************************************************************

//===========================================================================
function CreateUnitsForPlayer0 takes nothing returns nothing
    local player p = Player(0)
    local unit u
    local integer unitID
    local trigger t
    local real life

    set u = CreateUnit( p, 'U000', -25125.4, 24810.4, 227.220 )
    call SetHeroLevel( u, 150, false )
    call UnitAddItemToSlotById( u, 'I004', 0 )
    call UnitAddItemToSlotById( u, 'I002', 1 )
    set u = CreateUnit( p, 'U001', -25412.0, 25001.3, 69.790 )
    call SetHeroLevel( u, 100, false )
    call SetHeroStr( u, 999, true )
    call SetHeroAgi( u, 999, true )
    call SetHeroInt( u, 999, true )
    call SetUnitState( u, UNIT_STATE_MANA, 5000 )
    set u = CreateUnit( p, 'H001', -25305.8, 24755.2, 131.880 )
    call SetHeroLevel( u, 150, false )
    call UnitAddItemToSlotById( u, 'I003', 0 )
    call UnitAddItemToSlotById( u, 'I000', 1 )
    call UnitAddItemToSlotById( u, 'I001', 2 )
    set u = CreateUnit( p, 'H002', -25191.8, 24657.1, 100.480 )
    call SetHeroLevel( u, 100, false )
    call SetUnitState( u, UNIT_STATE_MANA, 1090 )
    call UnitAddItemToSlotById( u, 'I000', 0 )
    call UnitAddItemToSlotById( u, 'I003', 1 )
    call UnitAddItemToSlotById( u, 'I002', 2 )
    call UnitAddItemToSlotById( u, 'I005', 3 )
endfunction

//===========================================================================
function CreateUnitsForPlayer10 takes nothing returns nothing
    local player p = Player(10)
    local unit u
    local integer unitID
    local trigger t
    local real life

    set u = CreateUnit( p, 'n00M', -25405.9, 23084.7, 90.000 )
    set u = CreateUnit( p, 'n00M', -25284.1, 23082.6, 90.000 )
    set u = CreateUnit( p, 'n00M', -25341.5, 23132.8, 90.000 )
    set u = CreateUnit( p, 'n00L', -25337.2, 23008.5, 90.000 )
    call SetUnitState( u, UNIT_STATE_MANA, 0 )
    set u = CreateUnit( p, 'n00L', -25360.5, 21482.4, 90.000 )
    call SetUnitState( u, UNIT_STATE_MANA, 0 )
    set u = CreateUnit( p, 'n00M', -25426.1, 21592.1, 90.000 )
    set u = CreateUnit( p, 'n00M', -25295.4, 21550.5, 90.000 )
    set u = CreateUnit( p, 'n00L', -24144.6, 23452.0, 270.000 )
    call SetUnitState( u, UNIT_STATE_MANA, 0 )
    set u = CreateUnit( p, 'n00L', -24056.3, 23389.9, 270.000 )
    call SetUnitState( u, UNIT_STATE_MANA, 0 )
    set u = CreateUnit( p, 'u002', -25189.1, 20136.0, 90.000 )
    call SetUnitAcquireRange( u, 200.0 )
    set t = CreateTrigger(  )
    call TriggerRegisterUnitEvent( t, u, EVENT_UNIT_DEATH )
    call TriggerRegisterUnitEvent( t, u, EVENT_UNIT_CHANGE_OWNER )
    call TriggerAddAction( t, function Unit000001_DropItems )
    set u = CreateUnit( p, 'n00M', -24182.3, 23389.9, 270.000 )
    set u = CreateUnit( p, 'n00M', -24081.1, 23315.6, 270.000 )
    set u = CreateUnit( p, 'n00M', -24130.2, 23353.5, 270.000 )
    set u = CreateUnit( p, 'n00L', -23955.4, 24172.2, 300.000 )
    call SetUnitState( u, UNIT_STATE_MANA, 0 )
    set u = CreateUnit( p, 'n00M', -23953.5, 24055.1, 300.000 )
    set u = CreateUnit( p, 'n00M', -24009.8, 24093.3, 300.000 )
    set u = CreateUnit( p, 'n00M', -23897.4, 24091.6, 300.000 )
    set u = CreateUnit( p, 'n00M', -23852.0, 24164.0, 300.000 )
    set u = CreateUnit( p, 'n00M', -24057.7, 24134.8, 300.000 )
endfunction

//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
endfunction

//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
    call CreateUnitsForPlayer0(  )
    call CreateUnitsForPlayer10(  )
endfunction

//===========================================================================
function CreateAllUnits takes nothing returns nothing
    call CreatePlayerBuildings(  )
    call CreatePlayerUnits(  )
endfunction

//***************************************************************************
//*
//*  Regions
//*
//***************************************************************************

function CreateRegions takes nothing returns nothing
    local weathereffect we

    set gg_rct_Nelthar_Gate_1 = Rect( -24736.0, 22464.0, -24608.0, 23232.0 )
    set gg_rct_Nelthar_Spell = Rect( -25696.0, 19968.0, -24608.0, 20576.0 )
    set gg_rct_Summon_Zombies = Rect( -25376.0, 20576.0, -25056.0, 20928.0 )
    set gg_rct_instant_death_spell_12 = Rect( -25536.0, 19648.0, -24800.0, 21408.0 )
    set gg_rct_Instant_daeth_spell_22 = Rect( -25088.0, 20352.0, -24480.0, 21504.0 )
    set gg_rct_Instant_Death_spell_32 = Rect( -25792.0, 20448.0, -24544.0, 21120.0 )
    set gg_rct_Summons_1 = Rect( -24960.0, 20576.0, -24768.0, 20768.0 )
    set gg_rct_Summons_2 = Rect( -25632.0, 20608.0, -25440.0, 20800.0 )
    set gg_rct_Summons_3 = Rect( -25312.0, 20992.0, -25120.0, 21184.0 )
endfunction

//***************************************************************************
//*
//*  Players
//*
//***************************************************************************

function InitCustomPlayerSlots takes nothing returns nothing

    // Player 0
    call SetPlayerStartLocation( Player(0), 0 )
    call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
    call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(0), true )
    call SetPlayerController( Player(0), MAP_CONTROL_USER )

endfunction

function InitCustomTeams takes nothing returns nothing
    // Force: TRIGSTR_006
    call SetPlayerTeam( Player(0), 0 )

endfunction

//***************************************************************************
//*
//*  Main Initialization
//*
//***************************************************************************

//===========================================================================
function main takes nothing returns nothing
    call SetCameraBounds( -25856.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -26112.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 25856.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 25600.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -25856.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 25600.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 25856.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -26112.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
    call SetDayNightModels( "Environment\\DNC\\DNCAshenvale\\DNCAshenvaleTerrain\\DNCAshenvaleTerrain.mdl", "Environment\\DNC\\DNCAshenvale\\DNCAshenvaleUnit\\DNCAshenvaleUnit.mdl" )
    call NewSoundEnvironment( "Default" )
    call SetAmbientDaySound( "AshenvaleDay" )
    call SetAmbientNightSound( "AshenvaleNight" )
    call SetMapMusic( "Music", true, 0 )
    call CreateRegions(  )
    call CreateAllUnits(  )
    call InitBlizzard(  )
    call InitGlobals(  )

endfunction

//***************************************************************************
//*
//*  Map Configuration
//*
//***************************************************************************

function config takes nothing returns nothing
    call SetMapName( "TRIGSTR_001" )
    call SetMapDescription( "TRIGSTR_003" )
    call SetPlayers( 1 )
    call SetTeams( 1 )
    call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )

    call DefineStartLocation( 0, -15616.0, 17728.0 )

    // Player setup
    call InitCustomPlayerSlots(  )
    call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
    call InitGenericPlayerSlots(  )
endfunction
 
Last edited:
Level 2
Joined
Aug 15, 2011
Messages
7
Definitely, but you can still save it. Just disable every trigger in the map and then save it. You can use Pastebin to upload it, in case you are not familiar with the site's features. Just post the generated link afterwards.

Still can't save it after I've disabled them all.
I'll try removing the regions, they seem to be the cause.

EDIT: Could it be that the problem is that I removed several regions at the same time?
They seem to be hidden everywhere except in the error code.

EDIT2: I seemed to have fixed the problem in some weird way.

Thank you very much for your help and for not giving up :p
Can be closed.
 
Level 2
Joined
Aug 15, 2011
Messages
7
Well, it would be nice if you told us what went wrong :p

Well, I removed every region and I was about to give up so I closed the map, then it asked me to save it and basically I tried to save and it still closed.

Regions had to be replaced and reintroduced into the triggers but the problem was solved.
No hidden regions anymore :D

Thats how I solved it.
 
Status
Not open for further replies.
Top