Increase find item cheat range.

正在查看此主题的用户

Abot

Knight
Hello.

I've started to play around with modding and creating new items and so far the only way I have been able to access them in-game is by trying to find them being sold in towns. I have been able to find a few, but the obviously faster way to do this is just use the Find Item cheat in the cheat menu. The only problem is my items all have ids that are out of the range of the find item cheat (last range is to 601, then it goes back to 0, even though I have ids from 602-620). I tried looking through menus.txt and although I found the place where some info about the cheat is located there is nothing that indicates any sort of max range or the number 601. Any help would be appreciated.
 
I'd suggest you assign the item to a troop. That way you can test how it looks in game.
Otherwise here is a very good hint as well:
Waldzios 说:
The default solution for txt editing is to put new items inside of chest.
Just search for troop called bonus_chest and add items to it inventory.

Thane Delphi 说:
New items don't appear in the cheatmenu, sorry
 
Ok, thanks, that will work for now. I have seen other mods include their items in the find item cheat and I was just wondering how exactly that was done.
 
They do it because they use the module system and properly code the items in. If you really don't feel like doing so, you can see this suggestion.
 
Alright so now that I've come around to using the module system, I found this bit of code in module_game_menus:
插入代码块:
  ("cheat_find_item",0,
   "{!}Current item range: {reg5} to {reg6}",
   "none",
   [
     (assign, reg5, "$cheat_find_item_range_begin"),
     (store_add, reg6, "$cheat_find_item_range_begin", max_inventory_items),
	 (val_min, reg6, "itm_items_end"),
	 (val_sub, reg6, 1),
     ],
    [
      ("cheat_find_item_next_range",[], "{!}Move to next item range.",
       [
	    (val_add, "$cheat_find_item_range_begin", max_inventory_items),
	    (try_begin),
	      (ge, "$cheat_find_item_range_begin", "itm_items_end"),
		  (assign, "$cheat_find_item_range_begin", 0),
	    (try_end),
	    (jump_to_menu, "mnu_cheat_find_item"),
	   ]
       ),	   

	   ("cheat_find_item_choose_this",[], "{!}Choose from this range.",
       [
        (troop_clear_inventory, "trp_find_item_cheat"),
        (store_add, ":max_item", "$cheat_find_item_range_begin", max_inventory_items),
	    (val_min, ":max_item", "itm_items_end"),
		(store_sub, ":num_items_to_add", ":max_item", "$cheat_find_item_range_begin"),
		(try_for_range, ":i_slot", 0, ":num_items_to_add"),
		  (store_add, ":item_id", "$cheat_find_item_range_begin", ":i_slot"),
          (troop_add_items, "trp_find_item_cheat", ":item_id", 1),
        (try_end),
        (change_screen_trade, "trp_find_item_cheat"),
	   ]
       ),	   
	   
      ("camp_action_4",[],"{!}Back to camp menu.",
       [(jump_to_menu, "mnu_camp"),
        ]
       ),
      ]
  ),

I'm assuming that I have to change the 'max_inventory_items'. Where can I do this?
 
I have added many items using module_items, but in-game the cheat still only goes up to 601.
 
Yes, you have to add them before
插入代码块:
["items_end", "Items End", [("shield_round_a",0)], 0, 0, 1, 0, 0],

I've added many items and they all appear on the cheatmenu.
 
I think I know what I messed up. I am modding on a mac but using Parallels for the module system (build_module.bat). You can't compile into the Mac HD for some reason so I have 2 mod folders, on the the desktop in Parallels, one in my game. I have only been copying and pasting item_kinds1 for now so I haven't brought over the files necessary for this cheat.

Thanks
 
I mod on a mac as well. You can compile normally, i would link you to a tutorial but on my phone right now, ill do it when i get home. there is an easy way to compile it with terminal

EDIT:
At home now, check this tut

http://forums.taleworlds.com/index.php/topic,263102.msg6302688.html#msg6302688
 
I was doing the same thing today and i actually got a easy way to do this.
Open menus.txt in your Module folder.
Search for something like that (Some of the numbers may be diffrent if you have a diffrent version than 1.153):
menu_camp_cheat 0 Select_a_cheat: none 0 12
mno_camp_cheat_find_item  0  Find_an_item...  1 2060 1 864691128455135257  .  mno_camp_cheat_find_item  0  Change_weather..  1 2060 1 864691128455135258  .  mno_camp_cheat_1  0  {!}Increase_player_renown.  3 2320 2 1 1585267068834415006 1 3 936748722493063438 360287970189639680 100 2060 1 864691128455135256  .  mno_camp_cheat_2  0  {!}Increase_player_honor.  5 2133 2 72057594037927943 144115188075856180 2105 2 72057594037927943 1 1106 1 1585267068834415007 2105 2 144115188075856180 1 2060 1 864691128455135256  .  mno_camp_cheat_3  0  {!}Update_political_notes.  7 6 3 1224979098644774912 360287970189639874 360287970189640022 540 3 1224979098644774912 2 2 1 2 936748722493063574 1224979098644774912 3 0 6 3 1224979098644774913 432345564227567630 432345564227567637 1 2 936748722493063569 1224979098644774913 3 0  .  mno_camp_cheat_4  0  {!}Update_troop_notes.  9 6 3 1224979098644774912 360287970189639874 360287970189640022 540 3 1224979098644774912 2 2 1 2 936748722493063571 1224979098644774912 3 0 6 3 1224979098644774913 360287970189640022 360287970189640143 1 2 936748722493063571 1224979098644774913 1 2 936748722493063574 1224979098644774913 1 3 936748722493063572 1224979098644774913 0 3 0  .  mno_camp_cheat_5  0  {!}Scramble_minstrels.  1 1 1 936748722493063566  .  mno_camp_cheat_6  0  {!}Infinite_camp  5 2133 2 144115188075856182 1 2133 2 144115188075856183 1 2133 2 144115188075856181 1 1031 2 87600 20 2040 0  .  mno_cheat_faction_orders  1 30 2 144115188075856163 1  {!}Cheat:_Set_Debug_messages_to_All.  2 2133 2 144115188075856163 1 2060 1 864691128455135256  .  mno_cheat_faction_orders  2 30 2 144115188075856163 1 2147483679 2 144115188075856163 3  {!}Cheat:_Set_Debug_messages_to_Econ_Only.  2 2133 2 144115188075856163 3 2060 1 864691128455135256  .  mno_cheat_faction_orders  2 30 2 144115188075856163 1 2147483679 2 144115188075856163 4  {!}Cheat:_Set_Debug_messages_to_Political_Only.  2 2133 2 144115188075856163 4 2060 1 864691128455135256  .  mno_back_to_camp_menu  0  {!}Back_to_camp_menu.  1 2060 1 864691128455135255  .
menu_cheat_find_item 0 {!}Current_item_range:_{reg5}_to_{reg6} none 4 2133 2 72057594037927941 144115188075856184 2120 3 72057594037927942 144115188075856184 96 2110 2 72057594037927942 288230376151712346 2106 2 72057594037927942 1 3
mno_cheat_find_item_next_range  0  {!}Move_to_next_item_range.  6 2105 2 144115188075856184 96 4 0 30 2 144115188075856184 288230376151712346 2133 2 144115188075856184 0 3 0 2060 1 864691128455135257  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712346 2121 3 1224979098644774913 1224979098644774912 144115188075856184 6 3 1224979098644774914 0 1224979098644774913 2120 3 1224979098644774915 144115188075856184 1224979098644774914 1535 3 360287970189639684 1224979098644774915 1 3 0 2042 1 360287970189639684  .  mno_camp_action_4  0  {!}Back_to_camp_menu.  1 2060 1 864691128455135255  .
The green numbers are what you need to change. For each +1 there will be 1 more item in the find item range.
Hope i helped :smile:.
 
Something unusual 说:
Yes, you have to add them before
插入代码块:
["items_end", "Items End", [("shield_round_a",0)], 0, 0, 1, 0, 0],

I've added many items and they all appear on the cheatmenu.

This. If you add them before items_end, it shows up just fine, no more need to edit other files, as long as you edit the number at the top of the file.
 
ForFi 说:
I was doing the same thing today and i actually got a easy way to do this.
Open menus.txt in your Module folder.
Search for something like that (Some of the numbers may be diffrent if you have a diffrent version than 1.153):
menu_camp_cheat 0 Select_a_cheat: none 0 12
mno_camp_cheat_find_item  0  Find_an_item...  1 2060 1 864691128455135257  .  mno_camp_cheat_find_item  0  Change_weather..  1 2060 1 864691128455135258  .  mno_camp_cheat_1  0  {!}Increase_player_renown.  3 2320 2 1 1585267068834415006 1 3 936748722493063438 360287970189639680 100 2060 1 864691128455135256  .  mno_camp_cheat_2  0  {!}Increase_player_honor.  5 2133 2 72057594037927943 144115188075856180 2105 2 72057594037927943 1 1106 1 1585267068834415007 2105 2 144115188075856180 1 2060 1 864691128455135256  .  mno_camp_cheat_3  0  {!}Update_political_notes.  7 6 3 1224979098644774912 360287970189639874 360287970189640022 540 3 1224979098644774912 2 2 1 2 936748722493063574 1224979098644774912 3 0 6 3 1224979098644774913 432345564227567630 432345564227567637 1 2 936748722493063569 1224979098644774913 3 0  .  mno_camp_cheat_4  0  {!}Update_troop_notes.  9 6 3 1224979098644774912 360287970189639874 360287970189640022 540 3 1224979098644774912 2 2 1 2 936748722493063571 1224979098644774912 3 0 6 3 1224979098644774913 360287970189640022 360287970189640143 1 2 936748722493063571 1224979098644774913 1 2 936748722493063574 1224979098644774913 1 3 936748722493063572 1224979098644774913 0 3 0  .  mno_camp_cheat_5  0  {!}Scramble_minstrels.  1 1 1 936748722493063566  .  mno_camp_cheat_6  0  {!}Infinite_camp  5 2133 2 144115188075856182 1 2133 2 144115188075856183 1 2133 2 144115188075856181 1 1031 2 87600 20 2040 0  .  mno_cheat_faction_orders  1 30 2 144115188075856163 1  {!}Cheat:_Set_Debug_messages_to_All.  2 2133 2 144115188075856163 1 2060 1 864691128455135256  .  mno_cheat_faction_orders  2 30 2 144115188075856163 1 2147483679 2 144115188075856163 3  {!}Cheat:_Set_Debug_messages_to_Econ_Only.  2 2133 2 144115188075856163 3 2060 1 864691128455135256  .  mno_cheat_faction_orders  2 30 2 144115188075856163 1 2147483679 2 144115188075856163 4  {!}Cheat:_Set_Debug_messages_to_Political_Only.  2 2133 2 144115188075856163 4 2060 1 864691128455135256  .  mno_back_to_camp_menu  0  {!}Back_to_camp_menu.  1 2060 1 864691128455135255  .
menu_cheat_find_item 0 {!}Current_item_range:_{reg5}_to_{reg6} none 4 2133 2 72057594037927941 144115188075856184 2120 3 72057594037927942 144115188075856184 96 2110 2 72057594037927942 288230376151712346 2106 2 72057594037927942 1 3
mno_cheat_find_item_next_range  0  {!}Move_to_next_item_range.  6 2105 2 144115188075856184 96 4 0 30 2 144115188075856184 288230376151712346 2133 2 144115188075856184 0 3 0 2060 1 864691128455135257  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712346 2121 3 1224979098644774913 1224979098644774912 144115188075856184 6 3 1224979098644774914 0 1224979098644774913 2120 3 1224979098644774915 144115188075856184 1224979098644774914 1535 3 360287970189639684 1224979098644774915 1 3 0 2042 1 360287970189639684  .  mno_camp_action_4  0  {!}Back_to_camp_menu.  1 2060 1 864691128455135255  .
The green numbers are what you need to change. For each +1 there will be 1 more item in the find item range.
Hope i helped :smile:.
Hi everyone i wanted to add the cheat find item in Warband Mod AWOIAF

i did succeed in adding its option in the menu but no i am unable to get any list of items to buy from

plz guide if someone knows
 
后退
顶部 底部