Openapoc: Assertion error when replacing item in hand on a specific agent

Created on 20 Jul 2019  路  5Comments  路  Source: OpenApoc/OpenApoc

With the unit Alice Taylor, if I replace the toxi-gun with another item and click OK, the game crashes and gives the attached error. It only seems to be her so far, though I didn't test any non-hybrids as I thought it was a mind bender issue. I will update later with a clip from my stream, but the test ends at about 46 minutes into the stream.

Assertion Error
openapoc_log.txt

!BUG! HIGH PRIORITY !BUG! low priority

Most helpful comment

I later tested in a different mission by changing Alice Taylor's equipment in the mission setup screen. The battle loaded fine, but when I selected her group (Team 2), the game crashed with the same error. So something seems to be up with this particular agent and NOT having a toxi-gun in her right hand.

EDIT: I loaded the mission save and went into another agent's inventory. I then went to Alice Taylor's inventory from there and switched her toxi-gun back into her right hand, and the game didn't crash when I selected her. Something is up with her and not having the toxi-gun in her hand. She must really love it!

All 5 comments

save_Stream Test - New Battle.zip
Forgot to upload save.

I later tested in a different mission by changing Alice Taylor's equipment in the mission setup screen. The battle loaded fine, but when I selected her group (Team 2), the game crashed with the same error. So something seems to be up with this particular agent and NOT having a toxi-gun in her right hand.

EDIT: I loaded the mission save and went into another agent's inventory. I then went to Alice Taylor's inventory from there and switched her toxi-gun back into her right hand, and the game didn't crash when I selected her. Something is up with her and not having the toxi-gun in her hand. She must really love it!

great work Q , great stream https://www.twitch.tv/quickmind

Here is a link to the video showing some testing I did. Essentially, this one agent is the only one with this issue. https://www.twitch.tv/videos/456100905

This seems to be due to the accuracy bar drawing - it's 50 pixels wide, but doesn't clamp. The selected agent and gun happens to end up with a real accuracy of 52, so tries to write to beyond the bounds of the image when drawing that weapons' accuracy indicator.

Was this page helpful?
0 / 5 - 0 ratings