Few Noob questions

Users who are viewing this thread

this is the errors i get now, i fixed a few syntax errors but i can't find the last two  :cry:

Code:
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
Exporting faction data...
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 119, in <module>
    ("kingdom_5_reinforcements_a", "kingdom_5_reinforcements_a", 0, 0, fac_commo
ners, 0, [(trp_rhodok_footman,3,7),(trp_rhodok_tribesman,3,6)]),
NameError: name 'trp_rhodok_footman' 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 76
    (
    ^
IndentationError: unexpected indent
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 76
    (
    ^
IndentationError: unexpected indent
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. . .

Oh and line 76 is

Code:
#This needs to be the second window!!!
  (      #line 76
    "start_phase_2",mnf_disable_all_keys,
#    "During your travels, you come accross a group of wandering men looking for a leader. You...",
#
 
To put new npc's into taverns you can go to the tavern, add an entry point with the scene editor, and then when you make the new npc simply define their entry point as your new one. THis will mean that they are always at that point in the tavern, but you can remove them with a trigger and "remove_troop from_site"- say in the case where you want to add them to your party. If you want them to move somewhere else then "add_troop_to_site" may also be useful.

If you want to add new mercs, I think that all you need to do is add the troop in BEFORE the mercenaries end comment in the module_troops file. If that doesn't work just check out module_triggers and that may expain... (Sorry, I would do this for you but my current computer has neither M&B on nor the Module system."

As for towns and villages, check jik's tutorial. It should be stickied of course, but it isn't. Basically you have to copy an old town, change it's ID to town_19, and then go into scenes and copy a tavern scene, a street scene, a shop scene, etc etc etc. change all their id;s so that they reference town 19 and make sure they're at the bottom of the relevent lists. Otherwise it will royally screw up ALL the town scenes in the game.

Adding villages is the same, you just need to copy one scene though.

Hope this is all helpful, but like I said, check out jik's tutorial.
 
Guys any help on the code ?

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")
Oh and line 76 (Module_game_menus.py) is
Code:
#This needs to be the second window!!!
  (      #line 76
    "start_phase_2",mnf_disable_all_keys,
#    "During your travels, you come accross a group of wandering men looking for a leader. You...",
#
Code:
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
Exporting faction data...
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 119, in <module>
    ("kingdom_5_reinforcements_a", "kingdom_5_reinforcements_a", 0, 0, fac_commo
ners, 0, [(trp_rhodok_footman,3,7),(trp_rhodok_tribesman,3,6)]),
NameError: name 'trp_rhodok_footman' 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 76
    (
    ^
IndentationError: unexpected indent
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 76
    (
    ^
IndentationError: unexpected indent
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. . .
 
Ok, the problem in the second block of code (i think) is that you have a bracket that isn't closed. You've got a entry there, but most of it is commented out and it doesn;t function.

In the first bit I don;t know. Maybe check that townsman is higher level than farmer for the upgrade? Having said that, isn't 1579 a blank line? In which case delete it. It may be you;ve just got an extra space between the comment and the beginning of the upgrade. As everything has to be in the right order in this python file, that might be it.

I don't know for sure though, I haven;t been using this system very long myself. Try it and see....
 
I had a problem that I will explain to you.

I tried to copy items from the Timeless Kingdoms mod to the Light&Darkness mod

I did everything exactly as told HERE: http://forums.taleworlds.com/index.php/topic,22899.0.html

...with no dificultties but the this popped up: get_object failed for texture: ipwar_horse2

What's wrong??? I have the brf editor and I saw the files there, i just dont get it.

Its like it searches the object for a texture I dont use and didn't wanted to add to the new mod...

HELP!!!
 
Back
Top Bottom