My problem is in the module system.
I created script from the villages monasteries. My problem is that I do not get to recruit from the menu. I'm with the help of a friend 'get this code. Unfortunately this does not quite work. Why this error message.
begins on line 8968
module_game_menus.py
("recruit_them",
[
(eq, reg7, 0),
(gt, reg5, 0),
#monastery begin
("recruit_volunteers",[(call_script, "script_cf_village_recruit_volunteers_cond"),]
,"Recruit Volunteers.",
[
(try_begin),
(call_script, "script_cf_enter_center_location_bandit_check"),
(else_try),
(is_between, ":party_id", "p_start", "p_end"),
(jump_to_menu, "mnu_recruit_volunteers"),
(try_end),
]),
#monastery end
],
"Recruit them ({reg6} denars).",
error message
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
Traceback (most recent call last):
File "process_game_menus.py", line 47, in <module>
save_game_menus(variables,variable_uses,tag_uses,quick_strings)
File "process_game_menus.py", line 31, in save_game_menus
save_game_menu_item(ofile,variable_list,variable_uses,menu_item,tag_uses,qui
ck_strings)
File "process_game_menus.py", line 12, in save_game_menu_item
save_statement_block(ofile,0, 1, menu_item[1], variable_list, variable_uses,
tag_uses,quick_strings)
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module Sy
stem\src\process_operations.py", line 451, in save_statement_block
save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module Sy
stem\src\process_operations.py", line 400, in save_statement
ofile.write("%d %d "%(opcode, lenstatement))
TypeError: %d format: a number is required, not str
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Imported 56 global variables for saved-game compatability that are not used.
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .
I could help someone solve the problem what would be the correct code to remove the recruitment from the menu of the monasteries.
Thanks in advance Vikings
In german:
Mein problem ist im module system.
Ich habe aus dem Dörfer skript Klöster erschaffen. Mein problem ist das ich die Rekrutierung nicht aus dem Menü heraus bekomme. Ich hab mit hilfe eines freundes diesen code bekommen. Leider funktioniert dieser nicht ganz. Es kommt zu dieser Fehlermeldung.
Könnte mir da jemand helfen das problem zu lösen was der richtige code wäre um die Rekrutierung aus dem Menü der Klöster zu entfernen.
Danke vorab Vikinger