[WB] Warband Script Enhancer v4.9.5 for 1.174

Users who are viewing this thread

Yeah in fact you are right, for the moment is good enough (extremely better than the 2 native skins, thank you so much for this feature).

But I've encounter a problem with your skin system, everything works fine exept for the combobox strings, I've put the line that you have write in module_strings
Code:
("skin_0", "Male"),
("skin_1", "Female"),
("skin_2", "Undead"),
When I compile my module, the strings have an id but when I lauch the game and select the combobox for a skin it says str_not_found: str_skin_0 (for exemple).
Did I do something wrong ?
 
i had this error recently, is there any way to fix?


Time: 03/01/2021 23:51:16
Type: EXCEPTION_ACCESS_VIOLATION (0xC0000005, 0x00000008, 0x222E73D:cool:
> Stack trace
0x222E73D8 ??+0x222E73D8 (??+0x0)
0x0048D5E4 mb_warband_dedicated.exe+0x8D5E4 (??+0x0)
0x02E0D174 ??+0x2E0D174 (??+0x0)
0x02E0D184 ??+0x2E0D184 (??+0x0)
0x004FA710 mb_warband_dedicated.exe+0xFA710 (??+0x0)
0x005E4875 mb_warband_dedicated.exe+0x1E4875 (??+0x0)
0x00568019 mb_warband_dedicated.exe+0x168019 (??+0x0)
0x0056810E mb_warband_dedicated.exe+0x16810E (??+0x0)
0x004FA710 mb_warband_dedicated.exe+0xFA710 (??+0x0)
0x005E4875 mb_warband_dedicated.exe+0x1E4875 (??+0x0)
0x00568019 mb_warband_dedicated.exe+0x168019 (??+0x0)
0x0056810E mb_warband_dedicated.exe+0x16810E (??+0x0)
0x004FA710 mb_warband_dedicated.exe+0xFA710 (??+0x0)
0x005E4875 mb_warband_dedicated.exe+0x1E4875 (??+0x0)
0x00568019 mb_warband_dedicated.exe+0x168019 (??+0x0)
0x0056810E mb_warband_dedicated.exe+0x16810E (??+0x0)
0x004FA710 mb_warband_dedicated.exe+0xFA710 (??+0x0)
0x005E4875 mb_warband_dedicated.exe+0x1E4875 (??+0x0)
0x00568019 mb_warband_dedicated.exe+0x168019 (??+0x0)
0x0056810E mb_warband_dedicated.exe+0x16810E (??+0x0)
0x004FA710 mb_warband_dedicated.exe+0xFA710 (??+0x0)
0x005E4875 mb_warband_dedicated.exe+0x1E4875 (??+0x0)
0x00568019 mb_warband_dedicated.exe+0x168019 (??+0x0)
0x0056810E mb_warband_dedicated.exe+0x16810E (??+0x0)
0x005770EC mb_warband_dedicated.exe+0x1770EC (??+0x0)
0x0044F723 mb_warband_dedicated.exe+0x4F723 (??+0x0)
0x005770EC mb_warband_dedicated.exe+0x1770EC (??+0x0)
0x3D88D42F ??+0x3D88D42F (??+0x0)
0x3D88D42F ??+0x3D88D42F (??+0x0)
>
 
Updated
-More skins support for multiplayer profile. Required network_compatible = 0.
-Limit for multiplayer gold increased to 1000000000. Required network_compatible = 0.
-Added operation multiplayer_cur_profile_get_skin.

WSE v4.5.4 (for Warband 1.170)

Added very useful feature for fantasy multiplayer mods - you are no longer limited only to the male and female skin when choosing a character.

fFgLWG5kRXyaqZIcNDFKJA.png

-LmJjOyOQHyYivDOcmKQ1g.png
Game supports maximum 16 skins (maybe i break this limitation in future).

add skin
Code:
 (
    "undead", 0,
    "undead_body", "undead_calf_l", "new_undead_handL",
    "undead_head", undead_face_keys,
    ["man_hair_s","man_hair_m","man_hair_n","man_hair_o", "man_hair_y10", "man_hair_y12","man_hair_p","man_hair_r","man_hair_q","man_hair_v","man_hair_t","man_hair_y6","man_hair_y3","man_hair_y7","man_hair_y9","man_hair_y11","man_hair_u","man_hair_y","man_hair_y2","man_hair_y4","shortlayer","shoulderhair","shortbob","straightshoulder","courthair","hairmessy","man_hair_cvi"],
    ["beard_e","beard_d","beard_k","beard_l","beard_i","beard_j","beard_z","beard_m","beard_n","beard_y","beard_p","beard_o",   "beard_v", "beard_f", "beard_b", "beard_c","beard_t","beard_u","beard_r","beard_s","beard_a","beard_h","beard_g",],
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"],
    ["beard_blonde","beard_red","beard_brunette","beard_black","beard_white"],
    [("undeadface",0xFFFFFFFF,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff502a19]), ],
    [(voice_die, "snd_undead_die"),(voice_hit, "snd_undead_hit"),(voice_grunt, "snd_undead_grunt"),(voice_grunt_long, "snd_undead_grunt"),(voice_victory, "snd_undead_victory")],
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
  ),

add troop flag
Code:
tf_male           = 0
tf_female         = 1
tf_undead         = 2

add multiplayer troop to this skin
Code:
["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multiplayer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,
   [],
   0, 0, 0, 0x000000018000000136db6db6db6db6db00000000001db6db0000000000000000],
  ["multiplayer_profile_troop_female","multiplayer_profile_troop_female","multiplayer_profile_troop_female", tf_hero|tf_female|tf_guarantee_all, 0, 0,fac_commoners,
   [],
   0, 0, 0, 0x000000018000000136db6db6db6db6db00000000001db6db0000000000000000],
  ["multiplayer_profile_troop_undead","multiplayer_profile_troop_undead","multiplayer_profile_troop_undead", tf_hero|tf_undead|tf_guarantee_all, 0, 0,fac_commoners,
   [],
   0, 0, 0, 0x000000018000000136db6db6db6db6db00000000001db6db0000000000000000],


break network compability, enable skins and set num playable skins
Code:
# set to 0 to break network compatibilty and enable advanced WSE features like composite network messages and more skins in multiplayer
network_compatible = 0
# set to 1 to enable more skins support for multiplayer profile
more_skins_support_for_multiplayer_profile = 1
# set num skins for multiplayer profile (minimum 2)
num_skins_for_multiplayer_profile = 3

for prevent player change option num_skins_for_multiplayer_profile to play wrong skins add this trigger

Code:
(ti_server_player_joined, 0, 0, [],
       [
         (store_trigger_param_1, ":player_no"),
         (player_get_gender, ":player_gender", ":player_no"),
         (try_begin),
        (ge, ":player_gender", 3), #num playable skins
        (player_set_skin, ":player_no", tf_male),
     (try_end),
         ]),

change game_profile_window for correct show profile character image
Code:
  ("game_profile_window", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 320, 480, [
    #(store_script_param, ":profile_no", 1),
   
    (multiplayer_cur_profile_get_skin, ":gender"),
   
    #(assign, ":gender", ":profile_no"),
    #(val_mod, ":gender", 2),
    (try_begin),
      (eq, ":gender", tf_male),
      (assign, ":troop_no", "trp_multiplayer_profile_troop_male"),
    (else_try), 
      (eq, ":gender", tf_undead),
      (assign, ":troop_no", "trp_multiplayer_profile_troop_undead"),
    (else_try),
      (assign, ":troop_no", "trp_multiplayer_profile_troop_female"),
    (try_end),

   ................. #other code unchanged

add skins names for profile menu combobox (skin_<no>)
Code:
("skin_0", "Male"),
("skin_1", "Female"),
("skin_2", "Undead"),
We followed the guide "How add playable skins to multiplayer" and the skins work very well. But we couldn't figure out the last part. We have added skin<no> strings at strings.py. The game still gives str not found errors.
end of strings.py:
Untitled222.png


the error:
Untitled222.png
 
add this strings to language file
Oh wow. I wasn't thinking that would work.
Added this at the end of ui.csv. Probably str_skin_0|Male one is correct.
Untitled222.png

Is this part outdated ?
Code:
("skin_0", "Male"),
("skin_1", "Female"),
("skin_2", "Undead"),
 
Back
Top Bottom