[HELP REQUEST] adding additional items into the cheatmenu(WARBAND)

Users who are viewing this thread

SUBS

Sergeant
basically working on a mod, where i'm now importing custom meshes and want to make new items to go with them, have these items made and equipped to units which they work in game, but the problem is they don't show up in the cheatmenu items, or in normal shops so i can't actually equip them to the player. this is not an issue if i modify an existing item, but only if i add new items,


also another question, it seems that i give something item type musket/pistol, and set it to be merchandise it disappears from shops, is there some script i need to change to allow shop keepers to sell firearms, and display more than 597 items?

or tell me if i shouldn't be having issue with this, my mod built from warband native 1.11 so is missing a couple scripts added in the last patch.
 
guessing i need to change something here?

Code:
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 288230376151712342 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 288230376151712342 2133 2 144115188075856184 0 3 0 2060 1 864691128455135256  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712342 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 864691128455135254  .

if i wasn't clear in my first post, i want to get to the next set of items in the cheatmenu, i need it to go from 0-636 instead of 0-597

i'll work on getting them into shops after this.


 
think i got it figured

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 288230376151712342 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 288230376151712342 2133 2 144115188075856184 0 3 0 2060 1 864691128455135256  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712342 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 864691128455135254  .

from the green number take away "288230376151711745"

and this is the number your cheatmenu will go up to,

u want to open your item_kinds1.txt take the number from the top and add that to the above number then -2, then replace the green number
 
well the above fix increases the number of my CHEATMENU to 671 from 594, but it doesnt show any of the new items just empty spaces.

realty would like some help on this





EDIT: so all i did was figure out how to change the text displayed, good job me  :roll:
 
Text editing?

Cheat menu will only find the that is above itm_items_end in item_knids1.txt.

Muskets and bullets type are not added to the shops on the regular shop replenishment trigger. Set them to type crossbow and bolt in stead. Bolt and bullets just act the same. Crossbow may use different animation then musket.

If you want them really bad, use Morgh editor and add it to the bonus chest. If I remember correctly, the bonus_chest_1 is in Rivacheg and is the one that's accessible without any further editing.
 
Code:
itemsfile version 3
615
....
....
....
 itm_golden_charger Golden_Charger Charger 1  GoldenArmedW 0  65537 0 2811 110595670016 0.000000 40 0 65 0 4 165 44 37 112 0 38 0
 2
 15 19
0

 itm_items_end Items_End Items_End 1  shield_round_a 0  0 0 1 0 0.000000 100 0 0 0 0 0 0 0 0 0 0 0
 0
0


thats what  item_kinds1.txt looks like - everything, all my custom items are before that - but its made no difference they still don't show up in cheatmenu and do not appear in shops even when set to be merchanside. (what i need to know if there is more code, that limits the amount of items shown via cheatmenu & what shops can sell, which is why i asked about this not how to put items into chests (not exactly useful for a mod if you cant buy half the stuff but its in a chest is it?)

its not an issue with no textures/meshes etc.. they work fine. The custom troops i have use the custom armour/weapons - so they're in game working but the issue is that the player cannot access them, the issue im facing is; if modify an existing unused item such a lyre or lute and turn it into a halberd for example this works, it's purchasable, and the custom model shows no problem(run out of useless items to change). however if i +1 to the number at the top of item_kinds1.txt, then copy an item, paste it in just before the 'end of items', then turn it into what ever i want troops i set to use it can do so, but it doesnt appear in the cheatmenu/shops when its set to be merchandise, talking armour/weapons here.

or is there something i'm missing in that stage, it works for adding troops

you mentioned
SPD_Phoenix said:
Muskets and bullets type are not added to the shops on the regular shop replenishment trigger

this could be relevant to the issue i'm facing, something like the shop replenishment trigger doesn't allow items over #599 maybe?
- also as stated in my earlier posts the mod was built from warband 1.11 so doesn't have some of the scripts from 1.13
 
Code:
itemsfile version 3
615
....
....
....
 itm_golden_charger Golden_Charger Charger 1  GoldenArmedW 0  65537 0 2811 110595670016 0.000000 40 0 65 0 4 165 44 37 112 0 38 0
 2
 15 19
0

 itm_items_end Items_End Items_End 1  shield_round_a 0  0 0 1 0 0.000000 100 0 0 0 0 0 0 0 0 0 0 0
 0
0
Your item_kinds1.txt index will be off. Your new golden charger may have the index of the itm_items_end. That's why it didn't show up. In this case, you have to locate the number in the cheat menu code and manually increase the index.

Back up your menu.txt before doing this.

Locate "2110 2 72057594037927942 288230376151712344". It should be in the same line starting with "menu_cheat_find_item 0 {!}Current_item_range:_{reg5}_to_{reg6}". Increase the last number by the number of items you added.

Locate "30 2 144115188075856184 288230376151712344". It should be in the same line with "mno_cheat_find_item_next_range  0  {!}Move_to_next_item_range". Again, move the index up by the number of items added.

Locate "2110 2 1224979098644774912 288230376151712344". It should be after "mno_cheat_find_item_choose_this". Again, up the index.

I only found 3 instants referring to "itm_items_end". Hopefully, that's all you need to change.

SPD_Phoenix said:
Muskets and bullets type are not added to the shops on the regular shop replenishment trigger

this could be relevant to the issue i'm facing, something like the shop replenishment trigger doesn't allow items over #599 maybe?
- also as stated in my earlier posts the mod was built from warband 1.11 so doesn't have some of the scripts from 1.13
The version of WB doesn't matter beacuse the code for bullet/musket wasn't even in the original M&B beta from version 0.750. Most of the simplier codes of WB are the same as M&B.
 
didn't work. no change

288230376151712344, was actualy 288230376151712342 for me, (assume thats because it doesn't have the extra heraldic mail and boots added last patch.)

the list still says item xxx - 671 but doesn't actually show any items past 597. (which got changed with what was in my first 3 posts.




if anyone reading this does know how to change it, please PM/reply (if its something i need to do with python im happy to upload it/try to follow instructions but i'm pretty much a python virgin.)
im sure its possible as the warband 1257 AD mod has 871 items avail in cheatmenu - i just don't know how.

appreciate the help.
 
You are right. My game version is 1.113. I try to build a fresh mod with the module system for version 1.105.

If the mod is built with module system, all ID are updated for all files that use them. You won't even have the change the cheat script.

Anyway, if your new item is just the horse, it will be available in the shop. Make sure that you are not using a faction specific horse template.

For other items that are not available in the shop, adding them to the bonus chest is the best bet.
 
aye its not just a horse its about 25 items :razz:

problem was that ive ran out of things like the lyre and lute, that i could replace with items i actually wanted.

the items past 597 pop up in store, its just extremely annoying for testing as it takes me ages to find them, although setting their abundance to 1000 helps >.>

so guess for now i'm stuck store trolling to check if my items work. fixing then searching and testing again. (edit mode doesn't seem to work for me the box on the left flashes up then disappear cant actually use it)




although is there a cheat command like add 'item 601'  or something similar that would speed it up?
 
Do alt + enter to switch the game to window mode. Edit the scene then switch back using the same key combo.

If not, the edit screen will be behind the game.
 
SUBS said:
aye its not just a horse its about 25 items :razz:

problem was that ive ran out of things like the lyre and lute, that i could replace with items i actually wanted.

the items past 597 pop up in store, its just extremely annoying for testing as it takes me ages to find them, although setting their abundance to 1000 helps >.>

so guess for now i'm stuck store trolling to check if my items work. fixing then searching and testing again. (edit mode doesn't seem to work for me the box on the left flashes up then disappear cant actually use it)


although is there a cheat command like add 'item 601'  or something similar that would speed it up?

I havent found any cheat commands to add items, but I usually add all the new items i want to test to the players starting inventory.
Going through the create new char, kill bandit, talk to merchant usually goes faster than waiting for new items to spawn in the shops  :smile:
 
If the mod is built with module system, how do you get new items into the cheatmenu? Have a couple hundred I want to add to Gekokujo but they won't show up past what the vanilla mod offers.
 
SUBS said:
think i got it figured

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 288230376151712342 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 288230376151712342 2133 2 144115188075856184 0 3 0 2060 1 864691128455135256  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712342 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 864691128455135254  .

from the green number take away "288230376151711745"
You've almost reached the target.
There are 3 number of it (the last item in game 288230376151711745 => block 2882303761517 and id: 11745)
All of them in this section "menu_cheat_find_item 0"
You must change all 3 number, thats all!
 
connaito said:
SUBS said:
think i got it figured

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 288230376151712342 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 288230376151712342 2133 2 144115188075856184 0 3 0 2060 1 864691128455135256  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712342 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 864691128455135254  .

from the green number take away "288230376151711745"
You've almost reached the target.
There are 3 number of it (the last item in game 288230376151711745 => block 2882303761517 and id: 11745)
All of them in this section "menu_cheat_find_item 0"
You must change all 3 number, thats all!

Your over 5 years late in response :grin:
 
SUBS said:
think i got it figured

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 288230376151712342 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 288230376151712342 2133 2 144115188075856184 0 3 0 2060 1 864691128455135256  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712342 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 864691128455135254  .

from the green number take away "288230376151711745"

and this is the number your cheatmenu will go up to,

u want to open your item_kinds1.txt take the number from the top and add that to the above number then -2, then replace the green number

That explanation is a bit off.  You are correct in which number needs to be changed; and protato is also correct that there are 3 instances of the number that need to be changed.  However that whole bit of taking the top number of item_kinds1 and adding it to that number - 2 is either wrong or you were talking about some other scenario.

I'm playing Prophesy of Pendor 3.8 and wanted more variety in blunted weapons.  So I added 7 new blunt weapons into item_kinds1.  All I needed to do was just add 7 to all 3 instances of the number mentioned (obviously it was a different number as this was not vanilla warband, but it was in the same position).    Then went into game; opened cheat menu and now have all 7 of my new items at the end of the cheat menu available to purchase.
 
The White Falcon said:
I'm playing Prophesy of Pendor 3.8 and wanted more variety in blunted weapons.  So I added 7 new blunt weapons into item_kinds1.  All I needed to do was just add 7 to all 3 instances of the number mentioned (obviously it was a different number as this was not vanilla warband, but it was in the same position).    Then went into game; opened cheat menu and now have all 7 of my new items at the end of the cheat menu available to purchase.
Can you show what exactly you changed in code? For my PoP 3.8 there is only 1 instance of that number and I have no idea what number to replace it with...

Shcherbyna said:
Alternative dev-menu: Advanced Cheatmenu, but I'm not sure it works whit your module_sys version.. 1.43 required.
The PoP devs are not sharing the source code for Pendor, so I can't install this menu  :sad:
 
That shouldn't be so; if you're seeing only 1 instance of the number in the "menu_cheat_find_item" and "mno_cheat_find_item_next_range" sections; then my only guess was that it was previously editied.  You're going to have to get the vanilla file and replace the current "menu_cheat_find_item" and "mno_cheat_find_item_next_range" sections.  Try that and then try to find the proper number(s) by associated location shown.  There should be 3 instances of this number.  If you can not find 3 instances of the number you THINK is the right one at this point; then you are looking at the wrong number.

In my Prophesy of Pendor 3.8 menu.txt file; my sections are as follows:
menu_cheat_find_item 4096 {!}Current_item_range:_{reg5}_to_{reg6} none 5 2031 1 1441151880758558775 2133 2 72057594037927941 144115188075856167 2120 3 72057594037927942 144115188075856167 96 2110 2 72057594037927942 288230376151713165 2106 2 72057594037927942 1 3
mno_cheat_find_item_next_range  0  {!}Move_to_next_item_range.  6 2105 2 144115188075856167 96 4 0 30 2 144115188075856167 288230376151713165 2133 2 144115188075856167 0 3 0 2060 1 864691128455135263  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856167 96 2110 2 1224979098644774912 288230376151713165 2121 3 1224979098644774913 1224979098644774912 144115188075856167 6 3 1224979098644774914 0 1224979098644774913 2120 3 1224979098644774915 144115188075856167 1224979098644774914 1535 3 360287970189639684 1224979098644774915 1 3 0 2042 1 360287970189639684  .  mno_camp_action_4  0  {!}Back_to_camp_menu.  1 2060 1 864691128455135259  .

The 288230376151713165 is the edited number.  There is 1 instance in the "menu_cheat_find_item" section and 2 in the "mno_cheat_find_item_next_range" section.
 
Back
Top Bottom