Surferkid993
God surferkid993 = new God(awesome.me);
- Reaction score
- 16
I have 5 cameras set up in my game. And when I run my game I get an error menu that appears telling me there is an expected variable name on the red line. It is all in JASS yet I do understand some programing languages JASS is not one of them, so obviously I am not using in in my map. What I got out of it is that there seems to be a proplem with the Camera 001. Yet there is no Camera 001 in my game. So somehow this camera got made with no name and not deleted, and now I can't delete it.
Am I even cose to right?
Please help I am using this in a contest and need it to be done by July 24th.
Thanks in advance.
Code:
//===========================================================================
//
// Just another Warcraft III map
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sat Jul 22 20:53:43 2006
// Map Author: Unknown
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
trigger gg_trg_Spin_to_Start = null
camerasetup gg_cam_Fourth = null
camerasetup gg_cam_Sixth = null
camerasetup gg_cam_Fifth = null
camerasetup gg_cam_Third = null
camerasetup gg_cam_Second = null
camerasetup gg_cam_First = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Cameras
//*
//***************************************************************************
function CreateCameras takes nothing returns nothing
[COLOR=Red]set gg_cam_Camera_001 = CreateCameraSetup( )[/COLOR]
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_ROTATION, 132.5, 0.0 )
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_ANGLE_OF_ATTACK, 327.4, 0.0 )
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_TARGET_DISTANCE, 3890.6, 0.0 )
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Camera_001, 366.5, -212.2, 0.0 )
set gg_cam_Fourth = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_ROTATION, 45.0, 0.0 )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_ANGLE_OF_ATTACK, 335.0, 0.0 )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_TARGET_DISTANCE, 3400.0, 0.0 )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Fourth, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Fourth, 99.7, -273.2, 0.0 )
set gg_cam_Sixth = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_ROTATION, 135.0, 0.0 )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_ANGLE_OF_ATTACK, 335.9, 0.0 )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_TARGET_DISTANCE, 1650.0, 0.0 )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Sixth, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Sixth, -285.1, 152.6, 0.0 )
set gg_cam_Fifth = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_ROTATION, 135.0, 0.0 )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_ANGLE_OF_ATTACK, 340.0, 0.0 )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_TARGET_DISTANCE, 3400.0, 0.0 )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Fifth, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Fifth, 99.7, -273.2, 0.0 )
set gg_cam_Third = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_ROTATION, 315.0, 0.0 )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_ANGLE_OF_ATTACK, 330.0, 0.0 )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_TARGET_DISTANCE, 3400.0, 0.0 )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Third, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Third, 99.7, -273.2, 0.0 )
set gg_cam_Second = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_ROTATION, 225.0, 0.0 )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_ANGLE_OF_ATTACK, 325.0, 0.0 )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_TARGET_DISTANCE, 3400.0, 0.0 )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Second, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Second, 99.7, -273.2, 0.0 )
set gg_cam_First = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_ROTATION, 135.0, 0.0 )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_ANGLE_OF_ATTACK, 320.0, 0.0 )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_TARGET_DISTANCE, 3400.0, 0.0 )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_First, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_First, 99.7, -273.2, 0.0 )
endfunction
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************
//===========================================================================
// Trigger: Spin to Start
//
// Default melee game initialization for all players
//===========================================================================
function Trig_Spin_to_Start_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Spin_to_Start takes nothing returns nothing
set gg_trg_Spin_to_Start = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Spin_to_Start, 0.01 )
call TriggerAddAction( gg_trg_Spin_to_Start, function Trig_Spin_to_Start_Actions )
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Spin_to_Start( )
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( -1280.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -1536.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 1280.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 1024.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -1280.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 1024.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 1280.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -1536.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "IceCrownDay" )
call SetAmbientNightSound( "IceCrownNight" )
call SetMapMusic( "Music", true, 0 )
call CreateCameras( )
call InitBlizzard( )
call InitGlobals( )
call InitCustomTriggers( )
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, -384.0, -256.0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction
Am I even cose to right?
Please help I am using this in a contest and need it to be done by July 24th.
Thanks in advance.