高级玩家

- 贡献度
- 8
- 金元
- 4176
- 积分
- 450
- 精华
- 0
- 注册时间
- 2017-2-16
|
我忘了
这是英文原文:
Cheat Menu for Custom Maps/Missions
Cheat Menu can be used with your own made map missions.
There are plenty of user made missions for CTA and I understand that Cheat Menu is welcomed addition to these. Before we get started I would like to remind that this is a manual process and we will have to edit every single map mission by using something like Notepad++ or Notepad2 (normal Notepad also works).
Please understand that you will need to have Cheat Menu mod downloaded and enabled, thus this is a required dependency.
Here is process of adding Cheat Menu resources to a mission:
- locate your map directory and look for ".mi" file
- add required lines at the bottom of ".mi" file
Locating map directory:
- if you made map with mission you most likely know where to find it, however normally all your single player maps would reside in "/resource/map/single" directory where you can see your custom named map as directory, let's name it "example". So your custom map will have directory path: "/resource/map/single/example" Inside of it there are bunch of files, but you are only interested in files that end with ".mi" or "mission" extension. There should be one. In normal single player campain these are always "0.mi", so easy to locate. Your custom map with mission will most likely have custom name, as with our example map it will be "example.mi"
- thus, location for our example mission will be "/resource/map/single/example/example.mi"
Adding Cheat Menu resource line:
- Now that you have located your ".mi" extension file you are ready to edit it. Open the file with your favorite text editor (Notepad++, Notepad2, or venerable Notepad). Scroll down to last line in file. It should end with "}".
- Here is simplified example of "example.mi" file:
{mission
{Helpers}
}
- We want to edit it so it now looks like this, by adding few more lines before last "}":
{mission
{Helpers}
(include "/map/cheat-menu/start-cheating.mi")
("set-player" player(1))
("set-enemy-player" player(0))
}
- By adding line (include "/map/cheat-menu/start-cheating.mi") you enable Cheat Menu for your map. Save your changes and open your mission in game to see your new menu.
- By adding line with "set-player", you force default player to use specific number. In example above we force Cheat Menu to use player 1, if your custom map requires any other player than default zero.
- By adding line with "set-enemy-player", you specify player number that should be used when creating enemy spawn waves using Cheat Menu. Campaign maps already have it set at number 1.
Player Number:
- "set-player" line is optional
- "set-enemy-player" is not optional if you plan on making your map fully compatible with Cheat Menu, it only affects spawned enemies via mod
- player number can be specified between zero and including 16 (examples would be 0, 3, 6, 10 and 16)
- player number is supplied for compatibility reasons to allow Cheat Menu use map specific player configuration
这是我机翻后微调的翻译:
自定义地图/任务的作弊菜单
作弊菜单可以用于你自己制作的地图任务。
CTA有很多用户制作的任务,我知道作弊菜单是受欢迎的。在我们开始之前,我想提醒一下,这是一个手动的过程,我们将不得不使用Notepad++或Notepad2(通常普通记事本也可以工作)来编辑每一个单人地图任务
你需要下载并启用cheatmenu mod,这是一个必须项。
以下是向任务添加作弊菜单资源的过程:
-找到你下载的或你制作的mod的地图目录并查找“.mi”文件
-在“.mi”文件的底部添加所需的行
定位地图目录:
-如果你用任务制作地图(大概指地图编辑器),你很可能知道在哪里可以找到它,但是通常你所有的单人地图都位于“/resource/map/single”目录中,在那里你可以看到你的自定义命名地图作为目录,让我们把它命名为“example”。因此,您的自定义地图将具有目录路径:“/resource/map/single/example”其中有一堆文件,但是你只需要关注扩展名为“.mi”或“mission”的文件。这两个文件应该至少有一个。在普通单人游戏中,这些文件总是“0.mi”,所以很容易找到。您的带有任务的自定义地图很可能具有自定义名称,就像我们的示例地图一样”example.mi"
-因此,我们的示例任务的位置将是“/resource/map/single/example/example.mi"
添加作弊菜单资源行:
-现在您已经找到了你的“.mi”扩展名文件,可以准备编辑它了。用您最喜欢的文本编辑器(Notepad++, Notepad2或普通的记事本)打开文件。向下滚动到文件中的最后一行。它应该以“}”结尾。
-以下是简化示例”example.mi“文件:
{mission
{Helpers}
}
-我们想编辑它,让它看起来像这样,在最后一个“}”之前再添加几行:
{mission
{Helpers}
(include "/map/cheat-menu/start-cheating.mi")
("set-player" player(1))
("set-enemy-player" player(0))
}
-通过添加行(include“/map/cheat menu/start-cheating.mi)为地图启用作弊菜单。保存您的更改并在游戏中打开您的任务以查看您的新菜单。
-通过添加带有“set player”的行,可以强制默认玩家代码使用特定的数字(这玩意应该是指召唤出来的单位默认属于哪个玩家代码)。在上面的示例中,如果您的自定义地图需要除默认零以外的任何其他玩家,则强制作弊菜单使用player1。
-通过添加带有“set-enemy-player" player”的行,您可以指定在使用作弊菜单创建敌人时应该使用的玩家编号。活动地图已经将其设置为1号。
玩家代码:
-“set player”行是可选的
-“set-enemy-player”不是可选的,如果你计划让你的地图完全兼容作弊菜单,它只影响通过mod生成的敌人
-玩家编号可以指定在0到16之间(例如0、3、6、10和16)
-提供玩家代码编号是出于兼容性原因,以允许作弊菜单使用特定于地图的播放器配置
|
|