找回密码
 点一下
查看: 1145|回复: 5

保存新做的地图出错X     新问题!!!——禁用右键和左键

[复制链接]
发表于 2010-8-26 20:08:37 | 显示全部楼层 |阅读模式
怎么才可以把鼠标右键使单位移动的功能无效
以及左键选择单位的功能也无效







=====================新旧分界==================
=
按保存,开始保存,结束时出现

换了另一地图去保存,WE直接崩溃了

貌似是保存脚本的时候出错了,我第一次用WE(以前用过,第一次用1.24的WE)

不知道是不是我自己把自己给忽悠了,我用的版本转换器把WAR3直接从1.20转到1.24的,再打1.24的新手助推UI补丁的



// 只是另外一张魔兽争霸III的地图
//
//   Warcraft III map script
//   Generated by the Warcraft III World Editor
//   Date: Thu Aug 26 20:05:57 2010
//   Map Author: 未知
//
//===========================================================================

//***************************************************************************
//*
//*  Global Variables
//*
//***************************************************************************

globals
    // User-defined
    unit                    udg_Man                    = null
    location                udg_UpPoint                = null

    // Generated
    trigger                 gg_trg________________u    = null
    camerasetup             gg_cam_Main_sight          = null
    trigger                 gg_trg_Move                = null
    unit                    gg_unit_Hpal_0000          = null
endglobals

function InitGlobals takes nothing returns nothing
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, 'Hpal', -157.6, 162.6, 343.344 )
endfunction

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

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

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

//***************************************************************************
//*
//*  Cameras
//*
//***************************************************************************

function CreateCameras takes nothing returns nothing

    set gg_cam_Main_sight = CreateCameraSetup(  )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ROTATION, 357.0, 0.0 )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ANGLE_OF_ATTACK, 344.4, 0.0 )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_TARGET_DISTANCE, 699.8, 0.0 )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ROLL, 0.0, 0.0 )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
    call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
    call CameraSetupSetDestPosition( gg_cam_Main_sight, 141.6, 140.8, 0.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_002
    call SetPlayerTeam( Player(0), 0 )

endfunction

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

//===========================================================================
function main takes nothing returns nothing
    call SetCameraBounds( -5376.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -5632.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 5376.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 5120.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -5376.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 5120.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 5376.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -5632.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 CreateCameras(  )
    call CreateAllUnits(  )
    call InitBlizzard(  )
    call InitGlobals(  )

endfunction

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

function config takes nothing returns nothing
    call SetMapName( "只是另外一张魔兽争霸III的地图" )
    call SetMapDescription( "没有说明" )
    call SetPlayers( 1 )
    call SetTeams( 1 )
    call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )

    call DefineStartLocation( 0, 4864.0, 3840.0 )

    // Player setup
    call InitCustomPlayerSlots(  )
    call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
    call InitGenericPlayerSlots(  )
endfunction



一大串,看不懂,谁能告诉我怎么了





换了另一地图去保存,WE直接崩溃了

貌似是保存脚本的时候出错了,我第一次用WE(以前用过,第一次用1.24的WE)
发表于 2010-8-26 20:17:21 | 显示全部楼层
这个是地图的J文件,用来存放转换成JASS的触发(T)以及某些设置的。
出现这个说明你的地图的触发(或者某些设置)出错了。

具体什么地方出错了,就要看你的地图了。
建议将出错提示的图片上传,或者直接发地图。


一般出现这种情况都是更换版本和更换UI引起的。
解决方法:
先确定这不是那幅地图的问题(试试将那幅地图的“地图选项”里面的“版本数据”选为“默认”或者“最新”)
然后将“版本”和“UI”换回来……如果还不行就直接重装吧……
回复

使用道具 举报

发表于 2010-8-26 20:29:09 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2010-8-26 20:34:22 | 显示全部楼层
参考资料2和我情况基本一样,看来我要重装了
回复

使用道具 举报

 楼主| 发表于 2010-8-26 20:40:25 | 显示全部楼层
已经可以了,我把版本换回1.20的去了,就OK了
谢谢哦
回复

使用道具 举报

发表于 2010-8-27 09:04:20 | 显示全部楼层
怎么才可以把鼠标右键使单位移动的功能无效
以及左键选择单位的功能也无效
原来有新问题哟。
演示在下面。

a.w3x

15 KB, 下载次数: 19

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-6-16 16:04 , Processed in 0.072170 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表