Call to Arms

Call to Arms

Cheat Menu
 此主题已被置顶,因此可能具有重要性
MrThirtyOddSix  [开发者] 2020 年 2 月 16 日 上午 7:29
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
最后由 MrThirtyOddSix 编辑于; 2020 年 2 月 29 日 下午 3:40
< >
正在显示第 1 - 15 条,共 39 条留言
Joker_Bunghole 2020 年 2 月 16 日 下午 12:51 
Please, Add me up
spawned soldiers are enemies in custom missions.
MrThirtyOddSix  [开发者] 2020 年 2 月 19 日 下午 12:27 
@╬Ģ◊иŽФ⚡∀mηЯΛ¥╬ When you save such a game, do you know which Player number is it using? Spawn logic does not use any particular player, however it is possible that custom map has done some shenanigans to re-assign players.
最后由 MrThirtyOddSix 编辑于; 2020 年 2 月 19 日 下午 12:31
引用自 MrThirtyOddSix
@╬Ģ◊иŽФ⚡∀mηЯΛ¥╬ When you save such a game, do you know which Player number is it using? Spawn logic does not use any particular player, however it is possible that custom map has done some shenanigans to re-assign players.

Im not sure exactly i have to check the gem to find out the player number but im trying missions from this mod https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1433544352
最后由 Ģ◊иℤ◊⚡ℤ∀муpΛй 编辑于; 2020 年 2 月 19 日 下午 2:54
Joker_Bunghole 2020 年 2 月 19 日 下午 3:16 
引用自 MrThirtyOddSix
@╬Ģ◊иŽФ⚡∀mηЯΛ¥╬ When you save such a game, do you know which Player number is it using? Spawn logic does not use any particular player, however it is possible that custom map has done some shenanigans to re-assign players.

Im not sure exactly i have to check the gem to find out the player number but im trying missions from this mod https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1433544352


(We would want a Something like this, since most people, and Me! Are too retarded to try to collaborate between these mods in the filez... So we'd Stupid-pendacly like a cheat that is accustomized with this mod pack)
amassie78 2020 年 2 月 19 日 下午 5:20 
That pack as far as i have seen uses Player 3 if that is any help. Just double checked all files, first campaign uses Player 3, second Player 2, third Player 3 and fourth Player 2.
最后由 amassie78 编辑于; 2020 年 2 月 19 日 下午 5:22
MrThirtyOddSix  [开发者] 2020 年 2 月 19 日 下午 5:27 
Interesting. I'm wondering what player does it use when creating units....

Either way, I would recommend map author to weigh in as to what can be fixed. Or rather what is the reasoning behind choosing different player values. Original CTA campaign is using Player 0 by default. Cheat Menu mod does specify all inactive units to be player -1 (aka non-valid player). It relies on cloning mechanism to decide. So I suspect there might be a problem with that and the reason developers of CTA decided to go with player 0 as their default.
最后由 MrThirtyOddSix 编辑于; 2020 年 2 月 19 日 下午 5:39
引用自 MrThirtyOddSix
Interesting. I'm wondering what player does it use when creating units....

Either way, I would recommend map author to weigh in as to what can be fixed. Or rather what is the reasoning behind choosing different player values. Original CTA campaign is using Player 0 by default. Cheat Menu mod does specify all inactive units to be player -1 (aka non-valid player). It relies on cloning mechanism to decide. So I suspect there might be a problem with that and the reason developers of CTA decided to go with player 0 as their default.

The Cheatsmod for mowas2 has a function to change players in the settings, so you can deploy troops for the enemies and for yourself, if you have some spare time is it possible that you could add a similar one to your mod aswell ?
最后由 Ģ◊иℤ◊⚡ℤ∀муpΛй 编辑于; 2020 年 2 月 20 日 上午 1:13
MrThirtyOddSix  [开发者] 2020 年 2 月 21 日 下午 2:04 
I have updated above instructions on how to configure specific player number to make Cheat Menu mod work as expected on custom maps.
引用自 MrThirtyOddSix
I have updated above instructions on how to configure specific player number to make Cheat Menu mod work as expected on custom maps.

Nice, it works really good now thanks alot. :winter2019happyyul:


引用自 amassie78
That pack as far as i have seen uses Player 3 if that is any help. Just double checked all files, first campaign uses Player 3, second Player 2, third Player 3 and fourth Player 2.

Campaign 1 uses player 1, player 3 are set for AI.
阿弥陀佛,么么哒 2020 年 2 月 21 日 下午 9:49 
How does this work on MOW2? psl
MrThirtyOddSix  [开发者] 2020 年 2 月 22 日 上午 6:50 
@Elena Deligioz Cheat Menu is not a mod for MOW2 game.
阿弥陀佛,么么哒 2020 年 2 月 22 日 上午 8:00 
引用自 MrThirtyOddSix
@Elena Deligioz Cheat Menu is not a mod for MOW2 game.
It is MOW2 mod
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1742301467
MrThirtyOddSix  [开发者] 2020 年 2 月 22 日 上午 8:05 
@Elena Deligioz I see, mod and game having same name. You would need to follow up with mod author to provide you with version that works with Cheat Menu mod.
✞ T'ak Hyun-Shik ✞ 2020 年 2 月 22 日 下午 4:34 
I can't find the map folder
< >
正在显示第 1 - 15 条,共 39 条留言
每页显示数: 1530 50