nocheatmenu works in native but not in mods, why?

正在查看此主题的用户

oceanrage

Recruit
So Im typing cheatmenu and opening the menu fine, and typing "nocheatmenu" in native works fine, but when I try it with mods, it doesnt close the cheats and I keep getting debug messages. What should I do?
 
I have never experienced this and I've used it with numerous mods, both released and personal tweaks/changes in development.
 
Caba`drin 说:
I have never experienced this and I've used it with numerous mods, both released and personal tweaks/changes in development.

should I disable or enable cheats at the start pop up menu?  maybe that would help. Have to check
 
ok I just tried everything but it still wont work.

can anyone help, I dont know what to do anymore
 
You could try the following .TXT tweak to give you a Camp menu option to do this, rather than needing to use the console:

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 '.'
插入代码块:
.  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.

It may or may not work, depending on the mod...if the mod-maker was conscientious when building their module, it will work fine.
 
ok I didnt get:
"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 )."



I found "menu_camp_action 0 Choose_an_action: none 0 6" 

Should I change the 6 to an 8?

 
When I press to camp, I can still cheat. Does this mean that it still isn't working?  Im not sure if I can see the debug messages but I already disabled them somehow from the camp menu before trying your provided method
 
oceanrage 说:
When I press to camp, I can still cheat. Does this mean that it still isn't working?  Im not sure if I can see the debug messages but I already disabled them somehow from the camp menu before trying your provided method
Depends on what you mean by cheat. If the CHEATMENU is gone from camp, then yes it is working.

Other cheats (teleportation, giving XP to troops or gold to yourself, etc) are tied to you ticking "Enable Cheats" before you start the game, not the cheat menu being on.

The Enable/Disable cheatmenu toggle showed up under camp action, though?
If so, you correctly installed the tweak. If clicking "Disable Cheat Menu" doesn't take the cheatmenu away...then I'm not sure what the modder did to whatever mod you are using, but somehow the game cannot correctly identify the "cheatmode" global variable. Which is very odd.
 
oh bummer, well thanks for the help Caba`drin  :smile:  Not sure why cheat menu from camp isn't going. Its so unfortunate, there were some nice clothing in the cheat item section that Ive never seen before.

Actually "nocheatmenu" is working with some mods, while not with others
 
oceanrage 说:
Actually "nocheatmenu" is working with some mods, while not with others
Right, as I've noted above...it works in mods unless the modder screws something up.

My guess is for those it isn't working with, something along these lines is happening: the modder may have added some global variables, but didn't use the variables file from Native in creating their mod, messing up the order/numbering of variables and making it so 'nocheatmenu' is trying to toggle the wrong variable.
 
I too faced this problem. To use nocheatmenu, the enable cheats option must be active. Otherwise your cheatline won't work.
 
后退
顶部 底部