Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID
New to the forums? Well met! Please read the following rules of conduct for the forums, and we hope you enjoy your stay. Until swords part, friend!

[Bugfix] Game crashes when equipping off-hand weapons

2

Comments

  • DjimmyDjimmy Posts: 670Member
    edited August 2012
    I am not sure if this is considered a bug, but when you dual wield, no matter if you turn left or right, your weapons won't change their position. In other words, if you wield a blue sword in your main hand and a red sword in your second hand, no matter which side you turn(left or right), your blue sword will be closer to the view, and your red sword will always stay in perspective.

    CURRENT BEHAVIOUR: Dual wield animation won't change when you turn right/left or vise versa.

    DESIRED BEHAVIOUR: Dual wield animation will change when you turn right/left or vise versa.
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    edited August 2012
    @Djimmy - what you see is called "mirroring" and using it was a deliberate design choice on the developers' part when BG2 was created. It's the same effect that makes shields always appear in the foreground no matter which direction your characters are facing. Without the source art assets, there is no way for Overhaul to remove mirroring from BG2 animations (BG1 animations were not mirrored, but they lack support for dual-wielding; see here for more information).
    Post edited by AndreaColombo on
  • DjimmyDjimmy Posts: 670Member
    Thanks for the reply. It makes sense. The link doesn't appear to be functional though.
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    As usual, I forgot the second quotation mark in the link. It should work now.
  • BhryaenBhryaen Posts: 2,902Member, Moderator, Beta Tester
    [Merged @Djimmy's thread with this one]
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @Bhryaen - whenever I see this thread's title in my profile my heart leaps because I think a dev finally said something like "Hell yeah, this is so fixed it's almost ODing!". Don't play this kind of tricks on my old, weak heart :P LOL
  • MilochMiloch Posts: 851Member, Moderator, BGEE Team Member, Beta Tester
    I agree that an enhanced Baldur's Gate should be able to support the game's original animations without crashing the game where new rules are implemented (such as dual wielding). I would be interested if your solution is functional, @ScottBrooks.
    AndreaColomboMornmagor
  • WardWard Posts: 1,233Member
    edited September 2012
    @Miloch It seems the best we're being offered is a starter dish (1PP). The chef hasn't made our main course yet. ;)

    Not that 1PP isn't a good solution, I guess it is on 'short notice'. But I just hope they don't make quarterstaves colourable, what self respecting mage would paint his magical stick?

    I won't start complaining because I'll never stop, RUN AWAY! RUN AWAAYYY!!!
    Post edited by Ward on
  • MornmagorMornmagor Posts: 1,098Member
    @Ward

    Yeah although 1pp is in, it's not infinity animations, so i was hoping that infinity animations works with BG:EE.

    Even if they don't manage to fix the crashing issue, however, i'm sure many of us would prefer just not to dual wield instead of getting stuck with the BG2 avatars. It's reaally a small price to pay for me.

    So my hopes are either they implement BG1 animations as an option enabled in whatever way (even editor), or Infinity Animations is compatible with BG:EE, with everything upscaled and all to current resolutions.

    Let's see what happens, although i'm curious as to why they can't answer yet, they must be probably up to something o_O

    AndreaColombo
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @Mornmagor - the lack of an answer is probably due to 18th September being so close. The devs are buried waist-deep into the code, trying to make the game ready to ship by that date. Something like fixing BG1 animations for modders to use/restore/meddle with is low priority and will likely get done post-ship. Not that I would mind, so long as we eventually get them :)
    Mornmagor
  • MornmagorMornmagor Posts: 1,098Member
    @AndreaColombo meh i don't mind it being fixed post ship.

    To be honest for now i'm just fine with allowing us to use BG1 animations if we choose to, or making Infinity Animations able to run properly in BG:EE :] the fix could probably wait :p
  • bigdogchrisbigdogchris Posts: 1,334Member
    I have a question about this. Is it possible to just show the weapon equipped in the offhand of BG1 character but not have the animation of swinging with two weapons? I would be happy with that.
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @bigdogchris - that's what's going to happen when this bugfix request is fully indulged (i.e. the crash is fixed and the struct of the animations is changed) and no animation work has been done yet.
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @bigdogchris - my previous post is not accurate; it has occurred to me that weapon animations are missing for both the main hand and the off-hand, and should therefore be made before BG1 avatars can display two weapons simultaneously (albeit not swinging with any of them).
  • WardWard Posts: 1,233Member
    @AndreaColombo Tell me Andrea, can you actually use the BG1 sprites/animations in BG:EE as a mod, if somebody compiled them into one? Assuming you don't duel-wield at all, will it explode?
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @Ward - Not really. That's what I did with IA last time I played EasyTutu. You can restore BG1 animations and use them without dual-wielding, no problem. If you equip an off-hand weapon, however, the game will crash.
  • WardWard Posts: 1,233Member
    edited September 2012
    @AndreaColombo Bummer, that doesn't include shields though I hope. I didn't know you could restore the BG1 sprites with IA, mostly because I could never figure out how to use the damn mod properly.

    I'll have to investigate. I assume there are no duel wielding NPCs in the game but if there were, would that cause a crash on sight or when in game?
    Post edited by Ward on
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @Ward - Shields are all right, just as the were in vBG1 :) IA has a component that restores BG1 animations to all characters that: a) do not have an off-hand weapon equipped; b) do not have pips in two weapon fighting. There are characters that automatically get pips in two weapon fighting in the ToB engine (e.g. Minsc, being a Ranger). I used ShadowKeeper to restore BG1 avatars for them too (I wouldn't make Minsc dual-wield anyway).
  • WardWard Posts: 1,233Member
    @AndreaColombo Well I found the answer to all my problems, hopefully IA will be compatible in BG:EE. Thanks man!
  • MornmagorMornmagor Posts: 1,098Member
    If it's not compatible i'm gonna rage! ~_o

    Unless of course, the problem is taken care of differently :p
  • BhryaenBhryaen Posts: 2,902Member, Moderator, Beta Tester
    @AndreaColombo
    Do know the actual reason why it crashes? Like is it looking for assets that simply aren't there in BG1's animations? If so I wonder if we could do it anyway but leave in the BG2 dual wield animation. When dual wielding you'd suddenly look like a BG2 insectoid and suffer mirroring, but at at least no crash and full restoration of BG1 animations without sacrificing dual wield. Just wondering really...
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    edited September 2012
    @Bhryaen - the reason(s) for the crash are listed in the OP. The CTD is supposedly caused by the game trying to fit 9 characters in a 8-character file. Scott Brooks was looking into a solution for this last time he posted in this thread.

    Then, if the devs really wanted to be modder-friendly and very very very nice, they would have to alter the struct of BG1 character animations to enable them to display a weapon in the main-hand and one in the off-hand simultaneously. As it is now, only one weapon can be displayed at a time.

    As for the missing animations: main-hand weapon animations can be copied from the existing ones; off-hand weapon animations can be created by flipping and repositioning main-hand animations with DTLCEP; attack animations... that's a can of worms. @Miloch suggested they might be borrowed and adapted from BG2 attack animations, but to test this, all other matters need be resolved (and BG1 character animations should be added as game resources to BG:EE, albeit unused, for modders to use).
    Post edited by AndreaColombo on
  • Ascension64Ascension64 Posts: 560Member, Beta Tester
    I had a bit of fun/dread researching this when originally requested, the OP details are my own from personal messages and the IA thread at SHS.
    To add a little to what I tested with ToB, I fixed the 9 character issue easily with TobEx. However, what that meant was that I had to fish for animations to use. I tried a few, such as the standard BG2 playable character weapon animations for offhand. What happened was that the game didn't crash (!), but the weapons appeared in totally incorrect positions relative to the character. Furthermore, the animation code supports only one weapon equipped at a time, so dual-wielding in the inventory still looked like single wielding with a telepathic mind in the game.
    AndreaColomboBhryaenJamesMornmagor
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    Thanks for further clarifying the issue, Asc64.
  • DemossDemoss Posts: 52Member
    Just wondering but will this be more activity worked on due to the release delay? (thus having BG1 animations..) I did ask in the delay thread but due to all the whining and such it got overlooked.
    BhryaenMornmagor
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    edited September 2012
    @Demoss - The devs will not make BG1 character animations dual wield. There is no time for that and even if there were, the costs vs. the benefits would be too high for them. Hence, BG:EE will not use BG1 character animations by default.

    What the devs can do is to enable modders to do the missing animation work by eliminating the limitations that currently prevent it. If they do, I can try to add the missing animations (which are a lot and will take A LOT of time) and make those avatars eventually dual wield. That is, if I can spare the time (what with my new job and moving abroad this very week); otherwise, I hope someone else will.
    Post edited by AndreaColombo on
  • DemossDemoss Posts: 52Member
    Thanks for the reply. :D

    I may just use Infinity Animations (if i can figure it out) upon release then if its compatible as i don't usually play dual wielders anyway. (and no NPC should use it in BG1)
  • AndreaColomboAndreaColombo Posts: 4,798Member, Moderator, BGEE Team Member, Beta Tester
    @Demoss - Some NPCs might use it in BG:EE. Regardless, IA is pretty straightforward to use; I just doubt it will be compatible with BG:EE for release. @Miloch may confirm or deny.
  • BhryaenBhryaen Posts: 2,902Member, Moderator, Beta Tester
    I wonder if this is something up @Nathan's alley... If it's something that gets fixed on the dev side of things...
  • Ascension64Ascension64 Posts: 560Member, Beta Tester
    edited September 2012
    I think this would be an Operation @Erephine - it's massively onerous for something that doesn't even feature in the ToB engine.
    Post edited by Ascension64 on
2
Sign In or Register to comment.