Page 1 of 1

Parent Unit Error

Posted: Wed Nov 22, 2017 11:52 am
by BeerHall
Parent Unit is invalid when using editor.


RE: Parent Unit Error

Posted: Wed Nov 22, 2017 12:21 pm
by zakblood
thanks, one for the developer then

RE: Parent Unit Error

Posted: Wed Nov 22, 2017 1:23 pm
by ralphtricky
Any idea what caused it? Can you continue working in the Editor?

RE: Parent Unit Error

Posted: Wed Nov 22, 2017 1:53 pm
by TomBombadil711
Same error here after cancelling playback in a PBEM++ game. Game crashed to desktop then. Crashlog attached but I cannot find pu_debug.

RE: Parent Unit Error

Posted: Wed Nov 22, 2017 5:55 pm
by ralphtricky
Thanks, I'll see what it tells me.

RE: Parent Unit Error

Posted: Wed Nov 22, 2017 6:10 pm
by TomBombadil711
Another PBEM++ game, same error. Game crashed and cannot be continued. Very annoying.

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 12:57 am
by BeerHall
Editor crash when entering deployment mode.

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 9:22 am
by IainF
I had the same problem as Tom Bombadil. 7 turns in on a PBEM++ game. Parent Unit Error after playback had run though, I didn't interrupt it.

Will post error report thing once I figure out how to.


RE: Parent Unit Error

Posted: Thu Nov 23, 2017 12:44 pm
by IainF
Sorry, might be just being a bit dense today but how do I attach file to these messages?

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 1:32 pm
by ralphtricky
You have to hit reply instead of the input box at the bottom.

Thanks,
Ralph

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 2:29 pm
by ralphtricky
This is my top priority right now. I don't want crashes to disrupt play.

Here's what's happening.

Every unit has an x, y location and a pointer to the unit above it in the stack. That's all the save game stores. It sometimes walks through each unit and verifies that every unit is lined up correctly and that the 'parent' unit is in the same location.

What this error means is somehow the two structures got out of sync so I stop so that I can investigate before it gets really bad. While that's great for normal play where you can post a save game, reload and continue, it's obviously unacceptable for PBEM++ play. I'm going to look into why this may be happening, and in the meantime, simply try to log as much information as I can about what's wrong, correct the error and continue.

I don't know why it's being seen in PBEM, I haven't seen that in quite a while in development.

Ralph

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 3:16 pm
by TomBombadil711
What does this mean for our broken PBEM++ games? Will it be possible to continue or will they be lost?

Thanks for your efforts.

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 4:01 pm
by ralphtricky
ORIGINAL: TomBombadil711

What does this mean for our broken PBEM++ games? Will it be possible to continue or will they be lost?

Thanks for your efforts.
I'm hoping you'll be able to continue. Some units may move around a bit though.

RE: Parent Unit Error

Posted: Thu Nov 23, 2017 6:36 pm
by ralphtricky
It looks like it will be simpler than that. That check shouldn't run in the VCR, so I'm going to turn it off. The patch should let you proceed. Please let me know if the patch doesn't fix it.

RE: Parent Unit Error

Posted: Sun Nov 26, 2017 9:15 am
by IainF
I didn't install the patch but I tried to run the turn again, 'one last time' before my opponent and I started again, and it worked fine!

Lord knows what happened but there you go.