Cheatmenu

Users who are viewing this thread

I'd like a solution to this as well please. It would be nice to be able to use the cheat menu to check new items out rather than having to just test them through quick battle or teleport around every town to visit the merchants. :/
 
Make sure you type out "cheatmenu", but you will be unable to turn it off sadly.
 
An alternative solution...the one and only, the .txt edit! Your friendly copy-paste solution to all ailments, Warband and otherwise.

Following the simple steps below will add a new option to your camp menu. Under camp menu, click "Take an action" and added to the list will be "Enable cheat mode"...click it and voila cheat mode is enabled and the cheat menu becomes available. The menu option will change to "Disable cheat mode" to toggle it back off when you're done. No need to bring up a console bar again.

1. Make a back up copy of menus.txt
2. Open menus.txt with a decent text editor (Notepad++ or the like, or at the very least make sure wordwrap is off on Notepad)
3. Find the line that begins menu_camp_action (line 57 in Native 1.132)
4. Add 2 to the final number in that line (in Native 1.132, change 6 to 8 ).
5. On the next line, which in Native begins with "mno_camp_recruit_prisoners", locate a good place to add the cheat option. It should not be the first option, or the last option, so locate a place in between other options. The end of an option is a bunch of numbers and the beginning of the next option is marked by " .  mno_action_"
6. At the place described above, paste in the following block of text AFTER the set of numbers and BEFORE the '.'
Code:
.  mno_action_disable_cheat_mode  1 31 2 144115188075856163 1  Disable_cheat_mode.  2 2133 2 144115188075856163 0 2060 1 864691128455135259  .  mno_action_enable_cheat_mode  1 31 2 144115188075856163 0  Enable_cheat_mode.  2 2133 2 144115188075856163 1 2060 1 864691128455135259
7. Make sure that before the leading ".  mno_action_disable" there are exactly 2 spaces between the '.' and the numbers that come before it, and that there are exactly 2 spaces after the trailing 'numbers' before the next ".  mno_action_"
8. Save. Play.

The source for those numbers that will work with any version and with mods:
1. Open module_game_menus.py
2. Find menu camp action, begins with: ("camp_action",0,
3. Add these two menu options between the other options that begin with "action_*" such as "action_rename_kingdom" or "action_modify_banner":
Code:
	  ("action_disable_cheat_mode",[(eq, "$cheat_mode", 1)],"Disable cheat mode.",
       [
           (assign, "$cheat_mode", 0),
           (jump_to_menu, "mnu_camp_action"),
        ]),
      ("action_enable_cheat_mode",[(eq, "$cheat_mode", 0)],"Enable cheat mode.",
       [
           (assign, "$cheat_mode", 1),
           (jump_to_menu, "mnu_camp_action"),
        ]),
4. Save, compile, play.
 
Caba`drin said:
An alternative solution...the one and only, the .txt edit! Your friendly copy-paste solution to all ailments, Warband and otherwise.

Following the simple steps below will add a new option to your camp menu. Under camp menu, click "Take an action" and added to the list will be "Enable cheat mode"...click it and voila cheat mode is enabled and the cheat menu becomes available. The menu option will change to "Disable cheat mode" to toggle it back off when you're done. No need to bring up a console bar again.

1. Make a back up copy of menus.txt
2. Open menus.txt with a decent text editor (Notepad++ or the like, or at the very least make sure wordwrap is off on Notepad)
3. Find the line that begins menu_camp_action (line 57 in Native 1.132)
4. Add 2 to the final number in that line (in Native 1.132, change 6 to 8 ).
5. On the next line, which in Native begins with "mno_camp_recruit_prisoners", locate a good place to add the cheat option. It should not be the first option, or the last option, so locate a place in between other options. The end of an option is a bunch of numbers and the beginning of the next option is marked by " .  mno_action_"
6. At the place described above, paste in the following block of text AFTER the set of numbers and BEFORE the '.'
Code:
.  mno_action_disable_cheat_mode  1 31 2 144115188075856163 1  Disable_cheat_mode.  2 2133 2 144115188075856163 0 2060 1 864691128455135259  .  mno_action_enable_cheat_mode  1 31 2 144115188075856163 0  Enable_cheat_mode.  2 2133 2 144115188075856163 1 2060 1 864691128455135259
7. Make sure that before the leading ".  mno_action_disable" there are exactly 2 spaces between the '.' and the numbers that come before it, and that there are exactly 2 spaces after the trailing 'numbers' before the next ".  mno_action_"
8. Save. Play.

The source for those numbers:
1. Open module_game_menus.py
2. Find menu camp action, begins with: ("camp_action",0,
3. Add these two menu options between the other options that begin with "action_*" such as "action_rename_kingdom" or "action_modify_banner":
Code:
	  ("action_disable_cheat_mode",[(eq, "$cheat_mode", 1)],"Disable cheat mode.",
       [
           (assign, "$cheat_mode", 0),
           (jump_to_menu, "mnu_camp_action"),
        ]),
      ("action_enable_cheat_mode",[(eq, "$cheat_mode", 0)],"Enable cheat mode.",
       [
           (assign, "$cheat_mode", 1),
           (jump_to_menu, "mnu_camp_action"),
        ]),
4. Save, compile, play.

Tried that step by step and now I get an error saying "Unexpected End of File while reading file: Modules\Maps\menus.txt" Maybe it's because all the other mno_'s in there have a menu_ attached to it while the code I added in doesn't, or because I used the 1.131 module system and stupid Steam has auto updated my game? Further help would be greatly appreciated.
 
It might be because you used the 1.131 text file. Otherwise, you did increase the number by 2 after at the end of the line beginning with menu_camp_action? Do you want to post where you stuck the code, beginning from menu_camp_action? Either here or in a PM and I'd happily take a look.
 
Back
Top Bottom