- Joined
- Jan 28, 2013
- Messages
- 94
I have been making maps now and then for the last few years. The maps has always saved properly without any problems. The computer I uses has always had a earlier version of the Editor. Recently I updated Warcraft III to the latest patch, v.1.26. Things worked fine until yesterday. The mapmaking were going well but my computer crashed several times. The computer isn't the best but it can run Warcraft 3: 2GB RAM, 2.2 single-core CPU, 256 MB Graphics Card ATI Radeon HD 3200, DirectX 9, 320 GB HardDrive. I think it crashed due to over-heating or that the Single-Core CPU couldn't keep up. It happens now and then that my computer crashes, mostly because of too high graphics options.
However since yesterday every time I try to save a map, I get a Script Error window during "Compiling of map archive". I can't even make a basic, very simple, map! I don't know what to do. Is there anybody who could give me some solution on this problem please? All I can think of is to uninstall and re-install everything.
Edit:
Here's the Script Error Window for a Basic 1vs1 map with a few Neutral Hostiles (2 Ogre Warrior, 1 Ogre Magi, 1 Ogre Mauler, 1 Ogre Lord) in the middle:
The errors are:
Line 40: Invalid number of arguments
Line 41: Invalid number of arguments
Line 42: Invalid number of arguments
Line 43: Invalid number of arguments
Line 44: Expected '
Line 132: Invalid number of arguments
Line 161: Invalid number of arguments
However since yesterday every time I try to save a map, I get a Script Error window during "Compiling of map archive". I can't even make a basic, very simple, map! I don't know what to do. Is there anybody who could give me some solution on this problem please? All I can think of is to uninstall and re-install everything.
Edit:
Here's the Script Error Window for a Basic 1vs1 map with a few Neutral Hostiles (2 Ogre Warrior, 1 Ogre Magi, 1 Ogre Mauler, 1 Ogre Lord) in the middle:
JASS:
//===========================================================================
//
// Just another Warcraft III map
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Wed Jan 30 18:17:32 2013
// Map Author: Unknown
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
trigger gg_trg_Melee_Initialization = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateNeutralHostile takes nothing returns nothing
local player p = Player(PLAYER_NEUTRAL_AGGRESSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'nogr', -334,2, -138,4, 196,409 )
set u = CreateUnit( p, 'nogr', -70,0, -123,1, 56,944 )
set u = CreateUnit( p, 'nomg', -240,8, 5,2, 130,763 )
set u = CreateUnit( p, 'nogm', -173,3, -307,5, 314,691 )
set u = CreateUnit( p, 'nogl', -8,9, -268,3, 274,029 )
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreatePlayerBuildings( )
call CreateNeutralHostile( )
call CreatePlayerUnits( )
endfunction
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************
//===========================================================================
// Trigger: Melee Initialization
//
// Default melee game initialization for all players
//===========================================================================
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeStartingAI( )
call MeleeInitVictoryDefeat( )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Melee_Initialization( )
endfunction
//===========================================================================
function RunInitializationTriggers takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Melee_Initialization )
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_002
call SetPlayerTeam( Player(0), 0 )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -3328,0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -3584,0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 3328,0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 3072,0 - GetCameraMargin(CAMERA_MARGIN_TOP), -3328,0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 3072,0 - GetCameraMargin(CAMERA_MARGIN_TOP), 3328,0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -3584,0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "LordaeronSummerDay" )
call SetAmbientNightSound( "LordaeronSummerNight" )
call SetMapMusic( "Music", true, 0 )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
call InitCustomTriggers( )
call RunInitializationTriggers( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "Just another Warcraft III map" )
call SetMapDescription( "Nondescript" )
call SetPlayers( 1 )
call SetTeams( 1 )
call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )
call DefineStartLocation( 0, -704,0, -3136,0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction
The errors are:
Line 40: Invalid number of arguments
Line 41: Invalid number of arguments
Line 42: Invalid number of arguments
Line 43: Invalid number of arguments
Line 44: Expected '
Line 132: Invalid number of arguments
Line 161: Invalid number of arguments