Mount&Blade (1.011). The predecessor of Mount&Blade: Warband basically.Dawiduh said:Guys, what is "vanilla" for M&B? I keep hearing about it.
Mount&Blade (1.011). The predecessor of Mount&Blade: Warband basically.Dawiduh said:Guys, what is "vanilla" for M&B? I keep hearing about it.
Or just "unmodified Native module code for Warband", depending on context.Jezze said:Mount&Blade (1.011). The predecessor of Mount&Blade: Warband basically.Dawiduh said:Guys, what is "vanilla" for M&B? I keep hearing about it.
Caba`drin said:In SP, up to 3 teams are used in battle: 0, 1, and either 2 or 3 if the player has an ally party that is not under the player's command.
The ally team will be the player team (0 or 1) + 2
Defender teams are 0 & 2
Attacker teams are 1 & 3
The player team will always be team 0 or 1.
SnRolls said:How can i get information from the database so i can use it in python?
You have a mess somewhere in module_parties.py (not at 69 or 47, check coordinates you have edited).dia151 said:I removed half of the villages, and everything compiled fine, then I edited their coordinates and then it came up with this error
Lumos said:What is the maximum number of teams in a mission? Can I use team 4 for my own purposes, for an example, or maybe even teams 4-15 or whatever insane thing I come up with?
Caba`drin said:In SP, up to 3 teams are used in battle: 0, 1, and either 2 or 3 if the player has an ally party that is not under the player's command.
The ally team will be the player team (0 or 1) + 2
Defender teams are 0 & 2
Attacker teams are 1 & 3
The player team will always be team 0 or 1.
Teams 0-7 are valid. Team 8 will give you errors.dunde said:Lumos said:What is the maximum number of teams in a mission? Can I use team 4 for my own purposes, for an example, or maybe even teams 4-15 or whatever insane thing I come up with?
Caba`drin said:In SP, up to 3 teams are used in battle: 0, 1, and either 2 or 3 if the player has an ally party that is not under the player's command.
The ally team will be the player team (0 or 1) + 2
Defender teams are 0 & 2
Attacker teams are 1 & 3
The player team will always be team 0 or 1.
Native's mission template with biggest team number is arena's training. It has 7 teams (team 0 to team 6) with player agent is the only member of team 6.
...
(item_set_slot, "itm_short_bow", slot_item_carry_slot, 2),
(item_set_slot, "itm_nomad_bow", slot_item_carry_slot, 8),
(item_set_slot, "itm_tab_shield_pavise_a", slot_item_carry_slot, 3),
(item_set_slot, "itm_heavy_throwing_axes", slot_item_carry_slot, 10),
(item_set_slot, "itm_throwing_spears", slot_item_carry_slot, 1),
...
###carry-slots###
# itcf_carry_mask crashes the game on weapon change #not used
#slot 0: #hands
# cant_sheath
#slot 1: #back 1
# itcf_carry_quiver_back, itcf_carry_axe_back, itcf_carry_sword_back, itcf_carry_spear
#slot 2: #back 2
# itcf_carry_crossbow_back, itcf_carry_bow_back
#slot 3: #back 3
# itcf_carry_kite_shield, itcf_carry_round_shield, itcf_carry_board_shield
#slot 4: #left stomach
# itcf_carry_pistol_front_left, itcf_carry_dagger_front_left
#slot 5: #right stomach
# itcf_carry_dagger_front_right
#slot 6: #left hip 1
# itcf_carry_sword_left_hip, itcf_carry_axe_left_hip, itcf_carry_mace_left_hip, itcf_carry_katana
#slot 7: #left hip 2
# itcf_carry_wakizashi
#slot 8: #left hip 3
# itcf_carry_bowcase_left
#slot 9: #left hip 4
# itcf_carry_buckler_left
#slot 10: #right hip
# itcf_carry_quiver_right_vertical, itcf_carry_quiver_front_right, itcf_carry_quiver_back_right
#slot 11: #right upper leg
# itcf_carry_revolver_right
("item_set_carry_slot",
[
(item_set_slot, "itm_%s" % item[0], slot_item_carry_slot, item[4] & itcf_carry_mask) for item in items
]),
from module_items import items
def set_item_score():
item_score = []
for i_item in xrange(len(items)):
type = items[i_item][3] & 0x000000ff
if type == itp_type_shield:
item_score.append((item_set_slot, i_item, slot_item_length, get_weapon_length(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_body_armor, get_body_armor(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_speed, get_speed_rating(items[i_item][6])))
elif type == itp_type_bow or type == itp_type_crossbow:
item_score.append((item_set_slot, i_item, slot_item_thrust_damage, get_thrust_damage(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_swing_damage, get_swing_damage(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_speed, get_speed_rating(items[i_item][6])))
elif type >= itp_type_one_handed_wpn and type <= itp_type_thrown:
item_score.append((item_set_slot, i_item, slot_item_thrust_damage, get_thrust_damage(items[i_item][6])&0xff))
item_score.append((item_set_slot, i_item, slot_item_swing_damage, get_swing_damage(items[i_item][6])&0xff))
item_score.append((item_set_slot, i_item, slot_item_speed, get_speed_rating(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_length, get_weapon_length(items[i_item][6])))
elif type >= itp_type_head_armor and type <= itp_type_hand_armor:
item_score.append((item_set_slot, i_item, slot_item_head_armor, get_head_armor(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_body_armor, get_body_armor(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_leg_armor, get_leg_armor(items[i_item][6])))
elif type == itp_type_horse:
item_score.append((item_set_slot, i_item, slot_item_horse_speed, get_missile_speed(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_horse_armor, get_body_armor(items[i_item][6])))
item_score.append((item_set_slot, i_item, slot_item_horse_charge, get_thrust_damage(items[i_item][6])))
return item_score[:]
def set_item_score():
item_score = []
for i_item in xrange(len(items)):
carry = items[i_item][4] & itcf_carry_mask
if carry == itcf_carry_crossbow_back or carry == itcf_carry_bow_back:
item_score.append((item_set_slot, i_item, slot_item_carry_slot, 2))
...etc
Help please?SnRolls said:SnRolls said:How can i get information from the database so i can use it in python?
send_message_to_url = 380 # (send_message_to_url, <string_id>, <encode_url>), #result will be returned to script_game_receive_url_responseSnRolls said:Help please?SnRolls said:SnRolls said:How can i get information from the database so i can use it in python?
Again, the Module System is not Python, it is just compiled by Python. The above operation will send a message to your website and the script mentioned in the comment on that operation from header_operations can deal with whatever the website sends back.SnRolls said:Can you give me an example?
What do i need to do in PHP and Python?
Im not really understanding this.
Caba`drin said: