• Please note that we've updated the Mount & Blade II: Bannerlord save file system which requires you to take certain steps in order for your save files to be compatible with e1.7.1 and any later updates. You can find the instructions here.

Creating mod - voice commands...

Users who are viewing this thread

timedanze

Banned
...after severall tries of modding this - it won´t work - it won´t work.

in this thread Slawomir gave a right feature "how to do" this...
http://forums.taleworlds.com/index.php/topic,8652.msg1417460.html#msg1417460

So I did...

so after compiling module... it says:

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Mount&Blade1_11\Mount&Blade\Modules\voice\ModuleSystem\process_operat
ions.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Mount&Blade1_11\Mount&Blade\Modules\voice\ModuleSystem\module_mission
_templates.py", line 1194
    "lead_charge",mtf_battle_mode,charge,voice orders,
                                                    ^
SyntaxError: invalid syntax
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/voice/strings.txt'

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Mount&Blade1_11\Mount&Blade\Modules\voice\ModuleSystem\process_operat
ions.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Mount&Blade1_11\Mount&Blade\Modules\voice\ModuleSystem\module_mission
_templates.py", line 1194
    "lead_charge",mtf_battle_mode,charge,voice orders,
                                                    ^
SyntaxError: invalid syntax
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/voice/strings.txt'

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Mount&Blade1_11\Mount&Blade\Modules\voice\ModuleSystem\process_operat
ions.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Mount&Blade1_11\Mount&Blade\Modules\voice\ModuleSystem\module_mission
_templates.py", line 1194
    "lead_charge",mtf_battle_mode,charge,voice orders,


...and so on... there is a long long list of such errors....
(in module_mission_template.py I puted "voice orders," after following lines like this:

lead_charge",mtf_battle_mode,charge,voice orders,

So please can someone help creating this dam module  :sad:

thanx 1000




 

jik

Knight
what is "voice orders"?

I think you have it in the wrong place and it would throw off the rest of the tuple (each ',' separates each part of a tuple).

If this was defined at the top of mission_templates with the other mission templates constant triggers, it should go in the triggers part of the tuple

Lastly, I don't think you can have spaces in objects or declarations.  Find all areas you use voice orders and change it (including the source) to voice_orders.

If this is your first attempt to use the module system, I would suggest looking at the tutorial in my signature. 
 

timedanze

Banned
thank you for info...

voice orders = if you press a button (for example 3 (for archers) there is a sound played: "archers ready"
...than you press F3... you can put sounds like: "yes siiir, attackkiinng"

 

Slawomir of Aaarrghh

Grandmaster Knight
M&BWBWF&SNWVC
timedanze, you still can't get it to work? :O

As I see you're putting "voice_orders," in wrong place in mission_templates. Look here, in the last spoiler: http://forums.taleworlds.com/index.php/topic,8652.msg1519837.html#msg1519837
 

timedanze

Banned
OH MY GOD ! OH MY GOD! - yes I work on this over 1 month - and still can´t make it work  :oops:

now I know my mistakes!

I puted "voice_orders," in the false line!  :cry:

THANK YOU ! NOW I WILL ELSE TRY!!!

thanx 1000!  :razz:

 

timedanze

Banned
RESULT:

I HAVE MADE THE MODUL!!!!!!!!!!!!!!!!!!!!!!!  :cool:

IT WORKS!!

THANK YOU!!

ps: i will offer this mod for all who are interested in it :cool:
 
Top Bottom