[Posting] Re: PCC2 Error
From:streu
Thread:PCC2 Error
Forum:Bugs
In reply to:Re: PCC2 Error
Date:Thu, 2022-03-03 18:26 GMT
Edited:Thu, 2022-03-03 18:27 GMT

Turn 56 - the bug is now worse - cannot click A to build torpedo, and when trying to build a ship PCC2 crashes instantly (same error as above).

Thanks for the files. First analysis so far: you have -1 Heavy Blasters on that base. PCC2 gets confused because -1 means "unknown", but on the other hand, if you have a base, there shouldn't be any unknown values.

This message from host

**********************
03-03-2022 04:01:20
Turn Number: 56

DATA UNDERFLOW ERROR! in player 1 .TRN file

essentially says the same thing, and there actually is a command with negative beams (Blasters, this time) in the turn 55 turn file.

I vaguely recall that some host versions have trouble when you combine Super Refit and ship building: say, you have 6 beams on the base, and want to build a ship with 6 beams, so the build order is valid. Now, Super Refit happens before ship building and takes away one beam, leaving the base with one too few, which causes this very problem.

The best solution would be to edit-out this problem using Plangineer (and not touch this base otherwise this turn to not cause data errors). I don't have a good client-side solution of the form "here's your fixed RST", because this error needs to be fixed host-side, and unlike a bad Primary Enemy we cannost just edit it out. If we do, host will see that the number of beams increased without you paying for it.

--Stefan