请选择 进入手机版 | 继续访问电脑版
收起左侧

[求助] 怎样修改才可以让建筑改变方向?

  [复制链接]
flmtch发表于 2020-1-27 11:14:09
怎样修改才可以让建筑改变方向?
こはね发表于 2020-1-27 12:15:24

方法1:


用AOE3ED在Data3.bar提取DefaultKeyMapY.xml;然后添加下列语句,添加完后保存,将DefaultKeyMapY.xml放回data文件夹。







		<keymapdata>
<name>Rotate Place Building</name>
<displayname>Rotate Place Building</displayname>
<event>shift-mousez</event>
<context>building</context>
<command>uiWheelRotatePlacedUnit</command>
</keymapdata>
<keymapdata>
<name>Rotate Place Building2</name>
<displayname>Rotate Place Building2</displayname>
<event>mousez</event>
<context>building</context>
<command>uiWheelRotatePlacedUnit</command>
</keymapdata>

调用名
名称
快捷键为shift+鼠标滚轮
在建造建筑时才可以使用
旋转建筑物
快捷键鼠标滚轮
在建造建筑时才可以使用

方法2:


在帝国3安装目录中的startup文件夹里面自己创建一个user.con 然后用记事本编辑输入下列语句,效果与方法一相同
map("mousez", "building", "uiWheelRotatePlacedUnit")
map("shift-mousez", "building", "uiWheelRotatePlacedUnit")

flmtch发表于 2020-1-29 12:12:12
谢谢啦,去试试。。
KelKexy发表于 2020-2-1 23:40:03
flmtch发表于 2020-2-6 14:18:23
改好了 ,不错!谢谢啦!!
KelKexy发表于 2020-3-2 15:55:21
PaulCig发表于 2020-4-28 05:10:16
提示: 该帖被管理员或版主屏蔽
  • dfbc : 什么玩意
  • こはね 回复 dfbc : 来自俄国的人工广告机,似乎是卖阿莫西林
granthoo发表于 2021-5-24 20:54:10
第一个主城的方向没法改吧?
  • こはね : 单价的话,看楼下,联机就别想了
  • こはね : 单机的话,看楼下,联机就别想了
こはね发表于 2021-5-24 21:37:14
单机需要旋转城镇中心的话,可以在UI调用以下命令【备注不适用于决定版】
注:你必须安装高级剧情编辑器才能显示图片(懒得提取文件上传了),让你直接去下载安装高级编辑器,方便又快捷
高级剧情编辑器下载地址:https://www.aoebbs.net/down_248.html

<gadget name="rotPos" type="gadget" size1024="0 550 256 768" moveable="" closebutton="" background="ui\editor\editor_background" bevel="" titlebar="$$20327$$Position Objects" hidden="" closeonesc="" windowzstyle="">
<gadget name="rotPosLeft" type="button" foreground="ui\Camera4" tooltiptext="Move Unit Left" sizerel1024="10 52 42 84">
<command>uiMoveUnitRight(0) uiMoveUnitBackward(0)</command>
</gadget>
<gadget name="rotPosFor" type="button" foreground="ui\Camera8" tooltiptext="Move Unit Forward" sizerel1024="42 20 74 52">
<command>uiMoveUnitLeft(0) uiMoveUnitBackward(0)</command>
</gadget>
<gadget name="rotPosForleft" type="button" foreground="ui\Camera7" tooltiptext="Move forward left" sizerel1024="10 20 42 52">
<command>uiMoveUnitBackward(0)</command>
</gadget>
<gadget name="rotPosForright" type="button" foreground="ui\Camera9" tooltiptext="Move forward right" sizerel1024="74 20 106 52">
<command>uiMoveUnitLeft(0)</command>
</gadget>
<gadget name="rotPosStopKreis" type="button" foreground="ui\Camera5" tooltiptext="$$20926$$Stop" sizerel1024="42 52 74 84">
<command>uiMoveUnitLeft(1) uiMoveUnitRight(1) uiMoveUnitForward(1) uiMoveUnitBackward(1)</command>
</gadget>
<gadget name="rotPosRight" type="button" foreground="ui\Camera6" tooltiptext="Move Unit Right" sizerel1024="74 52 106 84">
<command>uiMoveUnitLeft(0) uiMoveUnitForward(0)</command>
</gadget>
<gadget name="rotPosBack" type="button" foreground="ui\Camera2" tooltiptext="Move Unit Backward" sizerel1024="42 84 74 116">
<command>uiMoveUnitRight(0) uiMoveUnitForward(0)</command>
</gadget>
<gadget name="rotPosBackright" type="button" foreground="ui\Camera3" tooltiptext="Move backward right" sizerel1024="74 84 106 116">
<command>uiMoveUnitForward(0)</command>
</gadget>
<gadget name="camerabackleft" type="button" foreground="ui\Camera1" tooltiptext="Move backward left" sizerel1024="10 84 42 116">
<command>uiMoveUnitRight(0)</command>
</gadget>
<gadget name="RotateLeft" type="button" foreground="ui\Editor RotateRight" tooltiptext="Rotate About Object Placement Axis Right" sizerel1024="112 20 144 52">
<command>uiYawUnitLeft(1) uiYawUnitLeft(0)</command>
</gadget>
<gadget name="RotateStyleStop" type="button" foreground="ui\Camera5" tooltiptext="$$20926$$Stop" sizerel1024="112 52 144 84">
<command>uiYawUnitRight(1) uiYawUnitLeft(1)</command>
</gadget>
<gadget name="RotateRight" type="button" foreground="ui\Editor RotateLeft" tooltiptext="Rotate About Object Placement Axis Left" sizerel1024="112 84 144 116">
<command>uiYawUnitRight(1) uiYawUnitRight(0)</command>
</gadget>
<gadget name="RotateVertical" type="button" foreground="ui\Editor RotateFor" tooltiptext="Rotate Vertically Backward" sizerel1024="182 20 214 52">
<command>uiPitchUnitUp(1) uiPitchUnitUp(0)</command>
</gadget>
<gadget name="RotateVertical2" type="button" foreground="ui\Editor RotateBack" tooltiptext="Rotate Vertically Forward" sizerel1024="182 84 214 116">
<command>uiPitchUnitDown(1) uiPitchUnitDown(0)</command>
</gadget>
<gadget name="RotateStyleStop2" type="button" foreground="ui\Camera5" tooltiptext="$$20926$$Stop" sizerel1024="182 52 214 84">
<command>uiPitchUnitDown(1) uiPitchUnitUp(1) uiYawUnitLeft(1) uiYawUnitRight(1) uiRollUnitRight(1) uiRollUnitLeft(1)</command>
</gadget>
<gadget name="RotateSide2" type="button" foreground="ui\Editor RotateSideBack" tooltiptext="Rotate Horizontally Right" sizerel1024="150 52 182 84">
<command>uiRollUnitLeft(1) uiRollUnitLeft(0)</command>
</gadget>
<gadget name="RotateSide" type="button" foreground="ui\Editor RotateSide" tooltiptext="Rotate Horizontally Left" sizerel1024="214 52 246 84">
<command>uiRollUnitRight(1) uiRollUnitRight(0)</command>
</gadget>
<gadget name="rotPos-selalignButton" type="button" z="16" size1024="21 723 53 755" bevelbutton="" tooltiptext="Align Selected" foreground="ui\formation selected icon">
<command>AlignSelectedUnits</command>
</gadget>
<gadget name="rotPos-resalignButton" type="button" z="16" size1024="63 723 95 755" bevelbutton="" tooltiptext="Align Resources" foreground="ui\formation ressource icon">
<command>alignResources</command>
</gadget>
<gadget name="rotPosStopAll" type="button" foreground="ui\Editor Stopall" tooltiptext="Stop All" bevelbutton="" size1024="112 723 144 755">
<command>uiPitchUnitDown(1) uiPitchUnitUp(1) uiYawUnitLeft(1) uiYawUnitRight(1) uiRollUnitRight(1) uiRollUnitLeft(1) uiMoveUnitLeft(1) uiMoveUnitRight(1) uiMoveUnitForward(1) uiMoveUnitBackward(1)</command>
</gadget>
<gadget name="RotateObjectsRotateButton" type="button" tooltiptext="$$22432$$Heading" bevelbutton="" foreground="ui\Editor rotateunit" size1024="166 705 186 725">
<command>uiRotateSelection</command>
</gadget>
<gadget name="RotateObjectsPlaceOpenButton" type="button" foreground="ui\editor\placeunit" tooltiptext="$$20282$$Place Object" bevelbutton="" size1024="226 705 246 725">
<command>gadgetToggle("rotPos") editMode("PlaceUnit")</command>
</gadget>
<gadget type="button" name="RotateObjects-close" size1024="166 735 246 755" bevelbutton="" textcolor="0 0 0" textfont="Arial nodrop" tooltiptext="$$18457$$Close" textfontsize="12">
$$18457$$Close
<command>gadgetUnreal("rotPos")</command>
</gadget>
</gadget>

如何添加上面的语句???
C7819A197887E1318E14CBB7D2B65A86-恢复的.png

你自己参考圣典11-5与11-6;
链接:https://www.aoebbs.net/tutorial-11-5.html
https://www.aoebbs.net/tutorial-11-6.html
跳转到