Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
Thanks for helping.I will try to comprehend something. I personally prefer to use txt. module.py scares me a little bit. At most I will suffer men's dialogues. I use floris expanded 2.53. Thanks for showing interest.
 
Hey guys, I have this error:

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
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...
WARNING: Local variable never used: bard, at: 0
exporting simple triggers...
exporting triggers...
exporting dialogs...
squire_npc_start
My friend, as a knight, I can take a squire. Would you like to be my squire?
squire_npc_answer_yes
********************************************************************************
**
ERROR: INPUT TOKEN NOT FOUND:squire_npc_start
********************************************************************************
**
********************************************************************************
**
Checking global variable usages...
WARNING: Global variable never used: g_total_enemy_dead
WARNING: Global variable never used: current_day
Imported 25 global variables for saved-game compatability that are not used.
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .

As you can see, it compiles normally, except the dialogs(which is one of the edited files). Now, it gives me the ERROR: INPUT TOKEN NOT FOUND:squire_npc_start, which means that this dialog line doesn't lead anywhere. But if you check the actual line, it clearly leads where I want it to lead. Here's the thing with the next line:
Code:
#Start of Make NPC companions Squire
[anyone|plyr, "squire_npc_start", [(is_between,"$g_talk_troop","trp_npc1","trp_kingdom_1_lord"),(eq, "$knighthood_player_achieved",1),(eq, "$npc_squire",0),(gt, "$g_talk_troop_effective_relation", 10)], "My friend, as a knight, I can take a squire. Would you like to be my squire?",	"squire_npc_answer_yes", [(assign, "$npc_squire",1)]],
[anyone, "squire_npc_answer_yes", [],"You honor me, {my lord/my lady}. I will strive to be worthy.", "close_window", [(val_add, "$g_talk_troop_effective_relation", 10)]],
   
#End of Make NPC companions Squire
 
Antonis said:
Hey guys, I have this error:
where is the dialog that calls "squire_npc_start" ?

Code:
# 2) Starting dialog-state:
#    During a dialog there's always an active Dialog-state.
#    A dialog-line's starting dialog state must be the same as the active dialog state, for the line to be a possible candidate.
#    If the dialog is started by meeting a party on the map, initially, the active dialog state is "start"
#    If the dialog is started by speaking to an NPC in a town, initially, the active dialog state is "start"
#    If the dialog is started by helping a party defeat another party, initially, the active dialog state is "party_relieved"
#    If the dialog is started by liberating a prisoner, initially, the active dialog state is "prisoner_liberated"
#    If the dialog is started by defeating a party led by a hero, initially, the active dialog state is "enemy_defeated"
#    If the dialog is started by a trigger, initially, the active dialog state is "event_triggered"
 
Hello, i have just installed mod system and i get this error:

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
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...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Exporting mission_template data...
Error: Unable to find object:itm_knockdown_mace
ERROR: Illegal Identifier:itm_knockdown_mace
Error: Unable to find object:itm_blood_drain_throwing_knives
ERROR: Illegal Identifier:itm_blood_drain_throwing_knives
Error: Unable to find object:itm_instakill_knife
ERROR: Illegal Identifier:itm_instakill_knife
Error: Unable to find object:itm_backstabber
ERROR: Illegal Identifier:itm_backstabber
Error: Unable to find object:itm_disarming_throwing_axe
ERROR: Illegal Identifier:itm_disarming_throwing_axe
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Error: Unable to find object:itm_doom_javelins
ERROR: Illegal Identifier:itm_doom_javelins
Error: Unable to find object:itm_team_change_dart
ERROR: Illegal Identifier:itm_team_change_dart
Error: Unable to find object:itm_weak_beserker_dart
ERROR: Illegal Identifier:itm_weak_beserker_dart
Error: Unable to find object:itm_restore_health_armour
ERROR: Illegal Identifier:itm_restore_health_armour
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .


could someone help please?
 
usernamenotfound said:
Hello, i have just installed mod system and i get this error:

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
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...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Exporting mission_template data...
Error: Unable to find object:itm_knockdown_mace
ERROR: Illegal Identifier:itm_knockdown_mace
Error: Unable to find object:itm_blood_drain_throwing_knives
ERROR: Illegal Identifier:itm_blood_drain_throwing_knives
Error: Unable to find object:itm_instakill_knife
ERROR: Illegal Identifier:itm_instakill_knife
Error: Unable to find object:itm_backstabber
ERROR: Illegal Identifier:itm_backstabber
Error: Unable to find object:itm_disarming_throwing_axe
ERROR: Illegal Identifier:itm_disarming_throwing_axe
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Error: Unable to find object:itm_doom_javelins
ERROR: Illegal Identifier:itm_doom_javelins
Error: Unable to find object:itm_team_change_dart
ERROR: Illegal Identifier:itm_team_change_dart
Error: Unable to find object:itm_weak_beserker_dart
ERROR: Illegal Identifier:itm_weak_beserker_dart
Error: Unable to find object:itm_restore_health_armour
ERROR: Illegal Identifier:itm_restore_health_armour
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
could someone help please?
First, learn how to use spoilers. Second, the items cannot be found, so they might be commented out in module_items. Have a check there.
 
[Bcw]Btm_Earendil said:
usernamenotfound said:
Hello, i have just installed mod system and i get this error:

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
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...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Exporting mission_template data...
Error: Unable to find object:itm_knockdown_mace
ERROR: Illegal Identifier:itm_knockdown_mace
Error: Unable to find object:itm_blood_drain_throwing_knives
ERROR: Illegal Identifier:itm_blood_drain_throwing_knives
Error: Unable to find object:itm_instakill_knife
ERROR: Illegal Identifier:itm_instakill_knife
Error: Unable to find object:itm_backstabber
ERROR: Illegal Identifier:itm_backstabber
Error: Unable to find object:itm_disarming_throwing_axe
ERROR: Illegal Identifier:itm_disarming_throwing_axe
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Error: Unable to find object:itm_doom_javelins
ERROR: Illegal Identifier:itm_doom_javelins
Error: Unable to find object:itm_team_change_dart
ERROR: Illegal Identifier:itm_team_change_dart
Error: Unable to find object:itm_weak_beserker_dart
ERROR: Illegal Identifier:itm_weak_beserker_dart
Error: Unable to find object:itm_restore_health_armour
ERROR: Illegal Identifier:itm_restore_health_armour
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
could someone help please?
First, learn how to use spoilers. Second, the items cannot be found, so they might be commented out in module_items. Have a check there.


Nope, they're not in module_items.
 
usernamenotfound said:
[Bcw]Btm_Earendil said:
usernamenotfound said:
Hello, i have just installed mod system and i get this error:

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
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...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_ccoop_new_items_end
ERROR: Illegal Identifier:itm_ccoop_new_items_end
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_javelin_bow
ERROR: Illegal Identifier:itm_javelin_bow
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_javelin_bow_ammo
ERROR: Illegal Identifier:itm_javelin_bow_ammo
Error: Unable to find object:itm_running_boots
ERROR: Illegal Identifier:itm_running_boots
Error: Unable to find object:itm_power_gloves
ERROR: Illegal Identifier:itm_power_gloves
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Exporting mission_template data...
Error: Unable to find object:itm_knockdown_mace
ERROR: Illegal Identifier:itm_knockdown_mace
Error: Unable to find object:itm_blood_drain_throwing_knives
ERROR: Illegal Identifier:itm_blood_drain_throwing_knives
Error: Unable to find object:itm_instakill_knife
ERROR: Illegal Identifier:itm_instakill_knife
Error: Unable to find object:itm_backstabber
ERROR: Illegal Identifier:itm_backstabber
Error: Unable to find object:itm_disarming_throwing_axe
ERROR: Illegal Identifier:itm_disarming_throwing_axe
Error: Unable to find object:itm_kicking_boots
ERROR: Illegal Identifier:itm_kicking_boots
Error: Unable to find object:itm_doom_javelins
ERROR: Illegal Identifier:itm_doom_javelins
Error: Unable to find object:itm_team_change_dart
ERROR: Illegal Identifier:itm_team_change_dart
Error: Unable to find object:itm_weak_beserker_dart
ERROR: Illegal Identifier:itm_weak_beserker_dart
Error: Unable to find object:itm_restore_health_armour
ERROR: Illegal Identifier:itm_restore_health_armour
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
could someone help please?
First, learn how to use spoilers. Second, the items cannot be found, so they might be commented out in module_items. Have a check there.


Nope, they're not in module_items.
I am pretty sure they are in the module_items last module system version since I saw them there while working with it and I didn't implement them by myself ^^
 
Those items belong to the multiplayer's 'invasion mode' and are in the latest version of ModSys. What I don't understand is how you can have 'module_scripts' with the 'invasion mode' scripts and not have 'module_items' with those items, mmm, very strange.
Download the latest version again and be sure to check 'module_items', all items that now give id ERROR are at the end of the file.

Download page (other downloads section):
https://www.taleworlds.com/en/Games/Warband/Download
 
Kortlcha said:
Hi,
I want to you this: " agent_get_bone_position " code, but I don't know where are the bone values written in. Where can I find these bone values?
It's usually defined in header_common.py
Code:
#Human bones
hb_abdomen = 0
hb_thigh_l = 1
hb_calf_l = 2
hb_foot_l = 3
hb_thigh_r = 4
hb_calf_r = 5
hb_foot_r = 6
hb_spine = 7
hb_thorax = 8
hb_head = 9
hb_shoulder_l = 10
hb_upperarm_l = 11
hb_forearm_l = 12
hb_hand_l = 13
hb_item_l = 14
hb_shoulder_r = 15
hb_upperarm_r = 16
hb_forearm_r = 17
hb_hand_r = 18
hb_item_r = 19

#Horse bones
hrsb_pelvis = 0
hrsb_spine_1 = 1
hrsb_spine_2 = 2
hrsb_spine_3 = 3
hrsb_neck_1 = 4
hrsb_neck_2 = 5
hrsb_neck_3 = 6
hrsb_head = 7
hrsb_l_clavicle = 8
hrsb_l_upper_arm = 9
hrsb_l_forearm = 10
hrsb_l_hand = 11
hrsb_l_front_hoof = 12
hrsb_r_clavicle = 13
hrsb_r_upper_arm = 14
hrsb_r_forearm = 15
hrsb_r_hand = 16
hrsb_r_front_hoof = 17
hrsb_l_thigh = 18
hrsb_l_calf = 19
hrsb_l_foot = 20
hrsb_l_back_hoof = 21
hrsb_r_thigh = 22
hrsb_r_calf = 23
hrsb_r_foot = 24
hrsb_r_back_hoof = 25
hrsb_tail_1 = 26
hrsb_tail_2 = 27
 
Dj_FRedy said:
Those items belong to the multiplayer's 'invasion mode' and are in the latest version of ModSys. What I don't understand is how you can have 'module_scripts' with the 'invasion mode' scripts and not have 'module_items' with those items, mmm, very strange.
Download the latest version again and be sure to check 'module_items', all items that now give id ERROR are at the end of the file.

Download page (other downloads section):
https://www.taleworlds.com/en/Games/Warband/Download

I'm playing on steam,it SHOULD auto update the game for the latest version 99% sure.
 
Hey, guys, I have this problem:
I've set about enabling the patrol function of the game. Now, in Diplomacy, the player can sent out patrols when he is fief lord. I wanted to make patrols spawn for every faction, by default. And I did just that. The problem is that the status of all those different kingdom patrols says "Patrolling around <player_name>". Player name is ofc, the name of the player, for me it was "Patrolling around Antonis", for example. And when I encounter them, they behave like they are my own patrols.
So, what I did:
a)Followed this post:
Archevious said:
This is a script I found from Cruger, props to dzorro for fixing it:

Faction Patrols

Go into module_triggers.py, and uncomment this:
Code:
##      (try_begin),
##        (store_random_in_range, ":random_no", 0, 100),
##        (lt, ":random_no", 10),
##        (call_script, "script_create_kingdom_party_if_below_limit", ":cur_kingdom", spt_patrol),
##      (try_end),

then go to module_scripts.py and uncomment this:
Code:
##        (eq, ":party_type", spt_patrol),
##        (assign, ":party_count_limit", 1),
##      (else_try),

and this
Code:
##        (eq, ":party_type", spt_patrol),
##        (assign, ":party_template", "pt_patrol_party"),
#        (assign, ":party_name_str", "str_s7_patrol"), <---- keep this outcommented
##      (else_try),

Also, uncomment this in module_constants.py:
Code:
spt_patrol             = 7

And you have faction patrols. :smile:
b) Made a new party template and a new constant, to avoid confusion with diplomacy patrols
c)In the cf_create_kingdom_party script, I did this when the party's strength and behavior is calculated:
Code:
        (eq, ":party_type", spt_kingdom_patrol),
          (try_begin), 
          #  (neq, ":faction_no", "fac_player_supporters_faction"),
			(is_between, ":faction_no", npc_kingdoms_begin, npc_kingdoms_end),			
            (party_get_slot, ":reinforcement_faction", ":spawn_center", slot_center_original_faction),
            (faction_get_slot, ":reinforcements_a", ":reinforcement_faction", slot_faction_reinforcements_a),			
            (faction_get_slot, ":reinforcements_b", ":reinforcement_faction", slot_faction_reinforcements_b),
          (try_end),		
          (party_add_template, ":result", ":reinforcements_a"),
          (party_add_template, ":result", ":reinforcements_a"),
          (party_add_template, ":result", ":reinforcements_b"),		  
          (party_set_ai_behavior,":result",ai_bhvr_patrol_party),		  
        (else_try),
...Caravan stuff follow next
,
, instead of the native's code

And it works, the patrols spawn, each to their own kingdom, with the correct number and type of troops, patrolling as they should be. But, the game regards them as "the player's" patrols, going to the Diplomacy dialog, even if they are each kingdom's patrols. Any help?

 
Status
Not open for further replies.
Back
Top Bottom