Normal M&B Module System for version 1.010

正在查看此主题的用户

ok thx so what do i do with it wonts iv downloaded it do i extract it to m&b modual
folder like all other mods or what and also can i like use that for the 1.011 one or do i have
to look for anouther plase to download it from .... :roll:
 
BLADE OF AWE 说:

i still dont get how to use and make it is there a turioal or somthing? :?:
:mrgreen:
Basic tutorial:
http://forums.taleworlds.com/index.php/topic,56798.0.html

General beginner's guide:
http://forums.taleworlds.com/index.php/topic,48405.0.html
 
i feel quite silly for asking, but where exactly do we put all this?
 
Version 1.010 and 1.011 is the same, expect that 1.011 is save-game compatible with 1.003 while 1.010 isn't. So yes, it works with 1.011!
 
This isn't working and I can't figure out why.  I'm trying to edit the Sword Sisters so they won't always be the first to die, especially since they're so hard to get.  This is their original entry in module_troops.py:

插入代码块:
  ["sword_sister","Sword Sister","Sword Sisters",tf_female|tf_mounted|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_gloves|tf_guarantee_shield|tf_guarantee_horse,0,0,fac_commoners,
   [itm_bolts,itm_sword_medieval_b,itm_sword_khergit_3,itm_plate_covered_round_shield,itm_tab_shield_small_round_c, itm_crossbow,itm_plate_armor,itm_coat_of_plates,itm_mail_chausses,itm_iron_greaves,itm_guard_helmet,itm_helmet_with_neckguard,itm_courser,itm_leather_gloves],
   def_attrib|level(22),wp(140),knows_common|knows_riding_5|knows_athletics_3|knows_ironflesh_2|knows_shield_2,refugee_face1,refugee_face2],


And this is what I added:

插入代码块:
  ["sword_sister","Sword Sister","Sword Sisters",tf_female|tf_mounted|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_gloves|tf_guarantee_shield|tf_guarantee_horse|*tf_guarantee_helmet*,0,0,fac_commoners,
   [itm_bolts,itm_sword_medieval_b,itm_sword_khergit_3,itm_plate_covered_round_shield,itm_tab_shield_small_round_c, itm_crossbow,itm_plate_armor,itm_coat_of_plates,itm_mail_chausses,itm_iron_greaves,itm_guard_helmet,itm_helmet_with_neckguard,*itm_charger*,itm_leather_gloves],
   def_attrib|level(22),wp(140),knows_common|knows_riding_5|*knows_athletics_9|knows_ironflesh_9*|knows_shield_2,refugee_face1,refugee_face2],

I added 4 things (without the *'s, of course): guaranteed them a helmet, gave them a charger instead of a courser, and changed their athletics and ironflesh to 9 (wanted 10 but wasn't sure if that'll cause some sort of error).  When I run buildmodule.bat I get these errors (some of them are cut off but seeing as how I only edited module_troops.py, not sure it matters):

mountandbladeerrors.jpg


I'm sure I followed all the steps.  I set the directory in module_info.py to my M&B directory, copied all the files from "native" and the module system (version 1010_0) files to a new module directory I created, and deleted conversations.txt before running build_module.bat.  So why isn't this working?  Any help is greatly appreciated. 

UPDATE: Never mind, found the answer in another post.  Would've been nice if someone put "will only work with Python 2.5 or 2.6" in the first post of this thread or the post with the latest module file.  Anyways, do these changes take effect for existing units or only the ones that come into play after I edited the Sword Sisters?  The Sword Sisters I have already in my army still have Coursers instead of Chargers.  Also, is there anything I can edit within these module files to cause my main character and army to earn more experience per kill and/or battle?  I know about the module.ini file but the limit for the multiplier is 10, regardless of what value you actually set it at. 

 
I think this is the right place to put this:
  There's a bug in this 1010 Module System. Not critical, just a script behaves contradicting its description, and troubled me a lot.

So the buggy one is this "script_get_class_percentages":
  # script_team_get_class_percentages
  # Input: arg1: team_no, arg2: try for team's enemies
  # Output: reg0: percentage infantry, reg1: percentage archers, reg2: percentage cavalry
  ("team_get_class_percentages",
    [
      (assign, ":num_infantry", 0),
      (assign, ":num_archers", 0),
      (assign, ":num_cavalry", 0),
      (assign, ":num_total", 0),
      (store_script_param, ":team_no", 1),
      (store_script_param, ":negate", 2),
      (try_for_agents,":cur_agent"),
        (agent_is_alive, ":cur_agent"),
        (agent_is_human, ":cur_agent"),
        (agent_get_team, ":agent_team", ":cur_agent"),
        (assign, ":continue", 0),
        (try_begin),
          (eq, ":negate", 1),
          (teams_are_enemies, ":agent_team", ":team_no"),
          (assign, ":continue", 1),
        (else_try),
          (eq, ":negate", 0), # Changed by Form Ranks kit. This is a bug in native.
          (eq, ":agent_team", ":team_no"),
          (assign, ":continue", 1),
        (try_end),
        (eq, ":continue", 1),
        (val_add, ":num_total", 1),
        (agent_get_class, ":agent_class", ":cur_agent"),
        (try_begin),
          (eq, ":agent_class", grc_infantry),
          (val_add,  ":num_infantry", 1),
        (else_try),
          (eq, ":agent_class", grc_archers),
          (val_add,  ":num_archers", 1),
        (else_try),
          (eq, ":agent_class", grc_cavalry),
          (val_add,  ":num_cavalry", 1),
        (try_end),
      (try_end),
      (try_begin),
        (eq,  ":num_total", 0),
        (assign,  ":num_total", 1),
      (try_end),
      (store_mul, ":perc_infantry",":num_infantry",100),
      (val_div, ":perc_infantry",":num_total"),
      (store_mul, ":perc_archers",":num_archers",100),
      (val_div, ":perc_archers",":num_total"),
      (store_mul, ":perc_cavalry",":num_cavalry",100),
      (val_div, ":perc_cavalry",":num_total"),
      (assign, reg0, ":perc_infantry"),
      (assign, reg1, ":perc_archers"),
      (assign, reg2, ":perc_cavalry"),
  ]),
Basically this script works fine when counting the percentages of the given team. But not when counting the enemy's percentages. Without the line I added it will count all enemy team + the given team. Lucky that native didn't even use it for counting enemies. Unlucky that I tried to use it and got troubled for a hell long time :???:
 
Hi
When I run the build_module file, errors ouccures denying me permission to the Mount & Blade directory?
 
Hey I'm new to this modding stuff ^^
I've already made some tweaks and that's it.
My question is does this work with 1.003 ?
 
Hi, I used the search function but when you search "text files to python", you get like a billion results with the word "to" in them. lol.

Could somebody direct me to place where I can DL a txt to py converter?
 
后退
顶部 底部