Problems porting items

正在查看此主题的用户

Hello! I recently tried porting roman items from Imperium Romanum to 16th Century v 1.00 with no problems so far (I had to use some on the forum and it took me about 3 hours though since this is my first time touching text files that actually do things haha). The items work, they have textures, and they show up in cheat menu like they should. But a problem I have is that they do not show up in the menu used when selecting the items for your kingdom's custom troops. The space where they should be is empty. I assume I have to do something with menus.txt like I had to do to make them show up in cheat menu but I can't seem to spot any lines in it that have the desired effect. Thank you very much for taking the time to read this and any help is greatly appreciated. Have a great day!  :mrgreen:

Note: This is only for personal use and owners of respective mods/resource have all rights to them.
 
The custom troops probably have their own item pool troop as a hero chest troop somewhere later in the troops list.
 
Somebody 说:
The custom troops probably have their own item pool troop as a hero chest troop somewhere later in the troops list.
Thank you so much! At least now I know the right .txt to look through. Using the search function with the keywords "chest" and then after exhausting that section, "hero" I found two parts that could be it but I am unsure. (I might not even be looking in the right sections)

trp_bonus_chest_1 {!}Bonus_Chest {!}Bonus_Chest 0 48 0 0 3 0 0
  577 0 582 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  7 5 4 4 18
60 60 60 60 60 60 0
274 131072 0 1 0 0
  0 0 0 0 0 0 0 0

and then

trp_kingdom_heroes_including_player_begin kingdom_heroes_including_player_begin kingdom_heroes_including_player_begin 0 16 0 0 32 0 0
  -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  20 20 20 20 38
220 220 220 220 220 220 0
1138 1073872896 0 3 0 0
  0 0 1085834 140253941383906941 0 0 0 0

They are probably wrong and you may be face palming at me right now but I am new to this and am really trying.

 
Dion/Folcwar 说:
I found the problem!
you are not using the module system.... :razz:
Thank you for the input (and the wonderful mod)! Python and module system seem really complicated but I will certainly do my best to learn them. I look forward to doing this with a larger number of items (personal use only of course) and possibly delving deeper into modding if this turns out well. :mrgreen:
 
后退
顶部 底部