Flying Squirrel Entertainment

Mount & Blade Warband: Napoleonic Wars => Released Modifications => Skins & OSP Resources => Topic started by: WoM_Jordan_White on April 02, 2024, 05:38:31 pm

Title: Instant reload fix and other patches by Tropical Gaming/Paradise
Post by: WoM_Jordan_White on April 02, 2024, 05:38:31 pm
Hello,

Over the years we've encountered many bugs, exploits (unblockable attack if anyone remembers) and issues in NW and have patched them. We've decided to start posting the newer fixes here for the benefit of the wider community.

1. Wemans/Bird Mode Reload Glitch Fix (Server-Side)
Thank you to Kumpu, our NW developer for making this patch.
Spoiler
(https://i.imgur.com/hquwdj9.gif)
This glitch is when a user with the Wemans mod, or Bird Mod or any other mod that has the bird animation uses it to near instantly reload. The fix is a simple script where it unwields the weapon when the animation is used.

module_scripts.py, search this line:   (eq,":action_type",player_action_surrender),

If you have WSE, add:
  (agent_cancel_current_animation, ":player_agent", 1),

after
  (eq,":action",music_type_stop)


If you don't have WSE, you could add this:
  (try_begin),
    (agent_get_attack_action, ":aa", ":player_agent"),
    (eq, ":aa", 5), #reloading

    (agent_set_wielded_item,":player_agent",-1),
  (try_end),

It just unwields the weapon, not very elegant, but it works
(https://media.discordapp.net/attachments/1081937853405220924/1224737426887413880/Screenshot_2024-04-02_164833.png?ex=661e949d&is=660c1f9d&hm=8c0a6cd7a08dc71deff528cac16299ec0c7b0867e210501d2d10fc8a15da8f62&=&format=webp&quality=lossless)
[close]

For any support adding these to your server, please join our Discord and message Kumpu or myself, le fabulous unicorn. https://tropicalgaming.org/discord

We will be updating this thread over time as and when we patch new issues.
Title: Re: Instant reload fix and other patches by Tropical Gaming/Paradise
Post by: Caesim on April 02, 2024, 06:53:08 pm
I feel like this is a more elegant solution to the reload exploit:
https://gitlab.com/nwpublic/minisiege/minisiege/-/commit/9e8fc1429f2a523814a1dd09917f6bad13d59eee
Title: Re: Instant reload fix and other patches by Tropical Gaming/Paradise
Post by: WoM_Jordan_White on April 02, 2024, 10:00:29 pm
I feel like this is a more elegant solution to the reload exploit:
https://gitlab.com/nwpublic/minisiege/minisiege/-/commit/9e8fc1429f2a523814a1dd09917f6bad13d59eee

If I'm correct that disables bird animation in it's entirety, whereas aim of ours is to keep the animation in but remove the glitch, but both options are doable depending on the desired outcome, thanks for sharing!