Author Topic: [LSP] Tavern Animation Pack  (Read 55866 times)

0 Members and 1 Guest are viewing this topic.

Master_Anuca

  • Recruit
  • *
    • Steam - Master_Anuca
    • View Profile
  • Faction: Rhodok
  • M&BWF&SWBNWVC
Re: [OSP] Tavern Animation Pack
« Reply #210 on: June 01, 2018, 08:07:43 AM »
Update. I'm not getting any errors when I do the build_module part, and I see people sitting on the benches at chairs inside the taverns, but now I'm experiencing crashes that indicates,"Incorrect skeleton type for anim 553."

What's causing this and how should I fix it?

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: [OSP] Tavern Animation Pack
« Reply #211 on: June 01, 2018, 01:08:49 PM »
"Incorrect skeleton type for anim 553."

553 and higher are horse animations. You need to use the unused human animations for this OSP.

0-552: human
553-669: horse

Master_Anuca

  • Recruit
  • *
    • Steam - Master_Anuca
    • View Profile
  • Faction: Rhodok
  • M&BWF&SWBNWVC
Re: [OSP] Tavern Animation Pack
« Reply #212 on: June 01, 2018, 06:08:02 PM »
Thanks. Besides that I can't tab inside the tavern and it lags whenever I go out of the tavern, I'm pretty much satisfied.
Hopefully me changing the name "musican" to "musician" would be okay. It was distracting me a bit  :)

Balthazaar

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [LSP] Tavern Animation Pack
« Reply #213 on: December 02, 2018, 02:47:22 PM »
Thank you @ JustStan for the fix to "naked man in taverns (a.k.a. musicans_end)" and cheers mod author for a great mod.

Corbul

  • Sergeant
  • *
  • Quoth I...
    • View Profile
  • Faction: Vaegir
Re: [LSP] Tavern Animation Pack
« Reply #214 on: May 09, 2019, 05:11:08 PM »
I can't understand what I must edit in module_game_menus.py, because the entry as shown in the instruction is missing in the file itself. :|
Never mind, seem to have figured it out.
« Last Edit: July 22, 2019, 12:15:02 AM by Corbul »
"I can live without eating and drinking, but not without DADA." - George Grosz

SaskyGames

  • Regular
  • *
    • View Profile
  • Faction: Rhodok
Re: [LSP] Tavern Animation Pack
« Reply #215 on: September 14, 2019, 11:55:32 AM »
Hey did anybody else run into an issue where the npcs sit at taverns,but have no cups in their hands,aswell as musicians and minstrels not using istruments? And if the musician spawns on a bench he doesn't sit down,just stand there normally

Edit: To anyone else who had this problem,for me the fix was in the item kinds ;)

Edit2: However after installing the osp the tavern keeper doesn't seem to appear :(

Edit3: Well that was a problem with module_troops xD
« Last Edit: September 14, 2019, 08:26:36 PM by SaskyGames »

FireDemon

  • Recruit
  • *
    • View Profile
  • Faction: Bandit
Re: [LSP] Tavern Animation Pack
« Reply #216 on: September 24, 2019, 04:32:08 PM »
Hello!
I added this to my mod, but I'm having problems!
Bards appear two at once(( how to solve this?
https://i.paste.pics/707174181269cfd7550d6ade724dda46.png
https://i.paste.pics/7fcd2f00f7452405001d1ca02d735f42.png

Game_menus.py
Code: [Select]
#dedal begin
      (try_for_range,":entry",32,41),
          (store_random_in_range,":r",0,100),
          (gt,":r",50),#random chance of spawning
          (try_begin),
            (eq,":bard",0),
            (store_random_in_range,":r",0,15),
            (gt,":r",13),
            (mission_tpl_entry_clear_override_items,"mt_town_default",":entry"),
            (store_random_in_range,":r",0,2),
            (try_begin),
              (eq,":r",0),
              (mission_tpl_entry_add_override_item,"mt_town_default",":entry","itm_dedal_lutnia"),
            (else_try),
              (mission_tpl_entry_add_override_item,"mt_town_default",":entry","itm_dedal_lira"),
            (try_end),
            (store_random_in_range,":dna",0,1000),
            (store_random_in_range,":troop","trp_musican_male","trp_musican_female"), # trp_musicans_end
            (set_visitor,":entry",":troop",":dna"),
            (assign,":bard",1),
(else_try),
                  (store_faction_of_party, ":current_town_faction", "$current_town"),
                  (try_begin),
                     (eq, ":current_town_faction", "fac_kingdom_6"),# Sarranid townsfolk in taverns
                     (store_random_in_range, ":town_walker", "trp_sarranid_townsman", "trp_village_walker_1"),
                  (else_try),
                     (eq, ":current_town_faction", "fac_kingdom_3"),# Khergit townsfolk in taverns
                     (store_random_in_range, ":town_walker", "trp_khergit_townsman", "trp_sarranid_townsman"),
                  (else_try),
                     (store_random_in_range,":town_walker", "trp_town_walker_1", "trp_khergit_townsman"),
                  (try_end),
(store_random_in_range,":dna",0,1000),
(mission_tpl_entry_clear_override_items,"mt_town_default",":entry"),
(store_random_in_range,":r",0,10),
(try_begin),
(gt,":r",2),
(mission_tpl_entry_add_override_item,"mt_town_default",":entry","itm_dedal_kufel"),
(try_end),
(set_visitor,":entry",":town_walker",":dna"),
(try_end),
(try_end),
#dedal end
Module_mission_templates.py

Code: [Select]
dedal_tavern_animations = (
ti_on_agent_spawn,1,0,[
(eq, "$talk_context", tc_tavern_talk),
(store_trigger_param_1,":agent"),
(agent_get_troop_id,":troop",":agent"),
(try_begin),
(is_between,":troop","trp_musican_male","trp_musican_female"),
(try_begin),
(agent_has_item_equipped,":agent","itm_dedal_lutnia"),
(agent_set_stand_animation, ":agent", "anim_lute_sitting"),
(agent_set_animation, ":agent", "anim_lute_sitting"),
(agent_play_sound,":agent","snd_dedal_tavern_lute"),
(else_try),
(agent_has_item_equipped,":agent","itm_dedal_lira"),
(agent_set_stand_animation, ":agent", "anim_lyre_sitting"),
(agent_set_animation, ":agent", "anim_lyre_sitting"),
(agent_play_sound,":agent","snd_dedal_tavern_lyre"),
(try_end),
(store_random_in_range,":r",0,300),
(agent_set_animation_progress,":agent",":r"),
(else_try),
(is_between,":troop",tavern_minstrels_begin,tavern_minstrels_end),
(try_begin),
(agent_has_item_equipped,":agent","itm_dedal_lutnia"),
(agent_set_stand_animation, ":agent", "anim_lute_standing"),
(agent_set_animation, ":agent", "anim_lute_standing"),
(agent_play_sound,":agent","snd_dedal_tavern_lute"),
(else_try),
(agent_has_item_equipped,":agent","itm_dedal_lira"),
(agent_set_stand_animation, ":agent", "anim_lyre_standing"),
(agent_set_animation, ":agent", "anim_lyre_standing"),
(agent_play_sound,":agent","snd_dedal_tavern_lyre"),
(try_end),
(store_random_in_range,":r",0,300),
(agent_set_animation_progress,":agent",":r"),
(else_try),
(is_between,":troop",walkers_begin,walkers_end),
(try_begin),
(agent_has_item_equipped,":agent","itm_dedal_kufel"),
(agent_set_stand_animation, ":agent", "anim_sitting_drinking_low"),
(agent_set_animation, ":agent", "anim_sitting_drinking_low"),
(store_random_in_range,":r",0,300),
(else_try),
(agent_set_stand_animation, ":agent", "anim_sitting_low"),
(agent_set_animation, ":agent", "anim_sitting_low"),
(store_random_in_range,":r",0,300),
(try_end),
(agent_set_animation_progress,":agent",":r"),
(try_end),
],[])
and
Code: [Select]
#dedal begin
(1,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#32
(2,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#33
(3,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#34
(4,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#35
(5,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#36
(6,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#37
(7,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#38
(8,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#39
(10,mtef_visitor_source,af_override_horse|af_override_gloves,0,1,[]),#40
],[
dedal_tavern_animations,
#dedal end
      (1, 0, ti_once, [],
      [
        (store_current_scene, ":cur_scene"),
        (scene_set_slot, ":cur_scene", slot_sc


Schwarzwolf

  • Squire
  • *
  • Into The Fire
    • Steam - simoro
    • View Profile
  • Faction: Neutral
  • MP nick: Schwarzwolf
  • WB
Re: [LSP] Tavern Animation Pack
« Reply #217 on: November 10, 2019, 07:59:18 PM »
Very nice project, thanks a lot for sharing it with us. Even now couple years after release, it is one of the best additions for Warband (at least in my humble opinion).

Third: If you want to have townsfolk equal to the cultures of the factions in the taverns (I saw sarranid town people in swadian town  :lol:):

Simply replace in game menus this line:
(click to show/hide)

with this:
(click to show/hide)

Hope this helps someone out there. Also if I've made any mistakes in the code please notify me, although I tested it and it worked for me.

Also this works very well, thanks a lot for your effort as well :)!
« Last Edit: November 10, 2019, 08:07:04 PM by Schwarzwolf »