Menu

#4522 Exception in thread "Packet Pump" using r11761 (Grapple issue?)

stable 0.42
closed
None
fixed
1
2015-06-01
2015-04-21
No

java.lang.ClassCastException: megamek.common.BuildingTarget cannot be cast to megamek.common.Entity

due to

megamek.common.actions.GrappleAttackAction.toHit(GrappleAttackAction.java:77)

Thing is, I don't have the grapple option ticked and my mechs could not do any physical attacks. In fact, I had just finish the first round when I could not click done. Attached is the autosave and MekHQ log. The last error in the log is an unrelated (I think) NPE caused when I closed MM. Let me know if it needs its own ticket.

I restarted from the save with the same result. As can be seen in the save i have infantry in several buildings. I will try another game with no buildings and see if I get the same result.

1 Attachments

Discussion

  • Pheonix Rising

    Pheonix Rising - 2015-04-21

    First save. Will I need to post the custom infantry?

     
  • Pheonix Rising

    Pheonix Rising - 2015-04-21

    Second game (Mek only, no buildings) played out fine. Did notice one thing. My option for grappling was checked. Was the default changed on this as I have never played with that option on before.

    So disregard "Thing is, I don't have the grapple option ticked" It was on and I didn't even know it.

     
  • Nicholas Walczak

    • assigned_to: Nicholas Walczak
    • Resolution: none --> fixed
    • Milestone: undetermined --> stable 0.42
     
  • Nicholas Walczak

    Fixed in [r11762].

     

    Related

    Commit: [r11762]

  • Dylan Myers

    Dylan Myers - 2015-06-01
    • Status: open --> closed
     

Log in to post a comment.