Author Topic: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)  (Read 7468 times)

0 Members and 1 Guest are viewing this topic.

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
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.
« Last Edit: April 26, 2010, 04:42:25 AM by SUBS »
BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
guessing i need to change something here?

(click to show/hide)

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.


BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
Re: [REQUEST] adding additional items ontop of the 597 original (WARBAND)
« Reply #2 on: April 26, 2010, 04:09:32 AM »
think i got it figured

(click to show/hide)

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
« Last Edit: April 27, 2010, 02:28:46 AM by SUBS »
BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
Re: [REQUEST] adding additional items ontop of the 597 original (WARBAND)
« Reply #3 on: April 26, 2010, 04:41:48 AM »
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:
« Last Edit: April 26, 2010, 06:27:43 AM by SUBS »
BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SPD_Phoenix

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #4 on: April 26, 2010, 05:34:47 AM »
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.

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #5 on: April 26, 2010, 06:16:35 AM »
(click to show/hide)


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
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
« Last Edit: April 26, 2010, 06:19:19 AM by SUBS »
BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SPD_Phoenix

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #6 on: April 26, 2010, 10:18:55 PM »
(click to show/hide)
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.

Quote
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.
« Last Edit: April 26, 2010, 10:21:23 PM by SPD_Phoenix »

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
Re: [HELP REQUEST] Making the cheatmenu show more items(WARBAND)
« Reply #7 on: April 27, 2010, 02:41:01 AM »
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.
BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SPD_Phoenix

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #8 on: April 27, 2010, 06:34:56 AM »
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.

SUBS

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #9 on: April 27, 2010, 07:53:30 AM »
aye its not just a horse its about 25 items :P

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?
BLACK SKY (Warband Mod)
http://forums.taleworlds.com/index.php/topic,106832.0.html

GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SPD_Phoenix

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #10 on: April 27, 2010, 10:00:58 AM »
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.

oldgiffer

  • Veteran
  • *
    • View Profile
  • Faction: Vaegir
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #11 on: April 27, 2010, 12:44:06 PM »
aye its not just a horse its about 25 items :P

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  :)
I'm not anti-social; I'm just not user friendly.

pasttense

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [HELP REQUEST] adding additional items into the cheatmenu(WARBAND)
« Reply #12 on: December 28, 2012, 12:55:24 PM »
but why if that written by 288230376151712346 ? :mrgreen: