Few Noob questions

Users who are viewing this thread

I'm no noob to modding, but i've just started on mount and blade,
I've got the hang of items, troops and random things i've found on these forums, but:

I don't know how to make new villages  and add new kingdoms
I don't know how to put my new troops into the taverns without removing the current mercenaries.
I don't know how to make a Recruiter NPC that would be in your castle/town so that you could Hire my new troops in various ammounts depending on your relation with that perticular castle/town
I don't know how to make bows more accurate ingame (i've messed around with a few thigns but had no success)

Please could anyone help with these few crazy things, I'd be very greatfull
 
About creating new cities, you should check module.scenes and copy some of the scenes from an older city, you should note that there are various scenes around the file, like tavern, abey, arena... And you need to copy in SceneObjs inside your mod folder the city scenes you created. If you want to create your own, replace the scenes :wink:

Creating factions -> http://forums.taleworlds.com/index.php/topic,28839.0.html

The bows accuracy are in the module itens, give a closer look.

The mercenaries appearing on tavern is a very esay thing to do, add them before mercenaries_end.

Geoffrey Ashe posted recruitment in the tavern, but it doesn't depends on your relation... You can modify some stuff to work with other characters. It is in python/something script exchange in page 23 or 24
 
bow accuracy is tied to its damage, higher damage ones are less accurate. If you want to make them more accurate but keep the damage high, reduce bow damage and increase arrow damage bonus.
 
Chel said:
bow accuracy is tied to its damage, higher damage ones are less accurate. If you want to make them more accurate but keep the damage high, reduce bow damage and increase arrow damage bonus.

Good to know.  I did not know that.  So if you want a sniper bow, reduce the base bow damage, and have diamond tipped rocket propelled arrows!
 
Jik you know your tut, I guess you downlaod it, but then if you click on what you downloaded it takes you to a internet explorer page and asks you to download it again. o_O
 
lol, i got the hang of this now XD
get a few errors when compiling tho, will post later and ask what they mean.
Mostly syntax errors, although i can't see a fault in the language.

one is around upgrade("farmer","watchman")
 
MaverickJones said:
lol, i got the hang of this now XD
get a few errors when compiling tho, will post later and ask what they mean.
Mostly syntax errors, although i can't see a fault in the language.

one is around upgrade("farmer","watchman")

probably forgot a comma or some syntax between some troop entries, this I think gives error at
upgrade("farmer","watchman")
but there is actually nothing wrong with upgrade code
 
lol there is a lot more now XD
I have no idea what is wrong, i've checked the line it says, there isn't a fault with upgrade("farmer","townsman")
Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_factions.py", line 2, in <module>
    from module_factions import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_factions.py", line 49
    ("kingdom_6",  "Kingdom of Kiron",  0, 0.9, [(("outlaws",-0.05),("peasant_re
bels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits",
-0.05)], [], 0x243991),


      ^
SyntaxError: invalid syntax
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_party_tmps.py", line 2, in <module>
    from module_party_templates import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_party_templates.py", line 103, in <module>
    ("kingdom_1_reinforcements_a", "kingdom_1_reinforcements_a", 0, 0, fac_commo
ners, 0, [(trp_swadian_militia,2,6),(trp_swadian_recruit,4,7)]),
NameError: name 'trp_swadian_recruit' is not defined
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_game_menus.py", line 64
SyntaxError: Non-ASCII character '\x93' in file C:\Documents and Settings\Tom th
e Dude\My Documents\modding\Mount&Blade\ModuleSystem\module_game_menus.py on lin
e 64, but no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_game_menus.py", line 64
SyntaxError: Non-ASCII character '\x93' in file C:\Documents and Settings\Tom th
e Dude\My Documents\modding\Mount&Blade\ModuleSystem\module_game_menus.py on lin
e 64, but no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Tom the Dude\My Documents\modding\Mount&Blade\
ModuleSystem\module_troops.py", line 1579
    upgrade(troops,"farmer","townsman")
          ^
SyntaxError: invalid syntax

______________________________

Script processing has ended.
Press any key to exit. . .
 
Another solution for the bow accuracy is to edit it in the unofficial item editor, I just set it to 100 and now its 100% accurate and has abour 80 damage (yes its a cheat bow) but I think the number you set for accuracy is the minimum or something.Worked for me anyway.
 
Maverick, can you also post your code that is giving those errors? Not the whole files but just the lines that it is giving the errors for. Two of them seem to be simple syntax errors, so probably just a comma left out or something, but the other one is interesting, I've never seen that before.
 
line 1597 (module_troops)

Code:
  upgrade(troops,"farmer","townsman")

line 49 (module_factions)
Code:
("kingdom_6",  "Kingdom of Kiron",  0, 0.9, [(("outlaws",-0.05),("peasant_re
bels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits",
 -0.05)], [], 0x243991),

will post line 64 (module_game_menus) later
 
I think I know why you got the non-ASCII error. If you have been going through jik's tutorial at one point some of the code he gives you has non-ASCII parenthesis they look more slanted than the regular ones. So if you copy pasted some of it that could be the problem. I think they only show up once in the tutorial.
 
Starts at line 1577
ends at line 1585 ( empty line)
What have i done that makes the module system declare it as an error (it says error in 1579)
Code:
#Troop upgrade declarations

upgrade(troops,"farmer","townsman")
upgrade(troops,"townsman","watchman")
upgrade2(troops,"watchman","mercenary_archer","mercenary_crossbowman")
upgrade2(troops,"caravan_guard","mercenary_swordsman","mercenary_horseman")
upgrade(troops,"mercenary_swordsman","hired_blade")
upgrade(troops,"mercenary_horseman","mercenary_cavalry")
 
Back
Top Bottom