Adding timeout termination to PitFall #667
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It seems that the current code actually does not contain any intended detection for the Timeout.
logo_timeris non zero when the Activision Logo scrolls in the bottom left.This is happening
Apparently the
logo_timerwas put here because thelives_bytesalone can temporarily take on a zero value during the death transition.The current Termination condition
m_terminalthus only checks if all lives have been lost. There is no detection for the timer reaching zero. I added two variables tracking minutes and seconds and added it to the termination condition.I don't see how to reasonably add tests for this as the timer only exists
I wrote a little script that records the last view frames of a episode to visually confirm that the timer runs out right before timeout termination which I can provide if needed.
Edit: I did not know that I can not add issue references in the title: #654, #268