Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Half-Life : Blue Shift fails to start #4

Open
sarah-walker-pcem opened this issue May 17, 2021 · 2 comments
Open

Half-Life : Blue Shift fails to start #4

sarah-walker-pcem opened this issue May 17, 2021 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@sarah-walker-pcem
Copy link
Owner

Describe the bug
Half-Life : Blue Shift fails to start. Process stays running and can be seen in Task Manager, but the game never launches

To Reproduce
Steps to reproduce the behavior:

  1. Launch Blue Shift from either the Start->Programs menu or from the CD autostart menu

Expected behavior
The game running.

Emulator configuration

  • Machine: Gigabyte GA-686BX
  • CPU: Pentium II/233
  • Graphics/sound cards: Voodoo 3, AudioPCI
  • Installed OS: Windows 98SE

Host machine

  • OS: Windows 10
  • Emulator version: v17
@sarah-walker-pcem
Copy link
Owner Author

I initially investigated this during the v17 feature freeze. The hang is protection related; the game sets the CPU trap flag (enabling single step exceptions) and monitors the execution of a routine (checksum related?) in the exception handler. The exception handler will clear the trap flag if execution leaves a specific area, presumably from a desire to track only user and not system call execution, and sets a debug trap at the return address. PCem v17 doesn't emulate debug traps so this never fires.

I did experiment with adding debug trap support, which did cause the trap flag to get set again after the first system call, but it is later cleared again. More investigation is required; there is a state machine in the exception handler that I don't yet fully understand.

@sarah-walker-pcem sarah-walker-pcem added the bug Something isn't working label May 18, 2021
@leilei-
Copy link
Contributor

leilei- commented Sep 27, 2021

Tribes 2 (released by Sierra in the same quarter) also has similar symptoms. The demo version seems to have a different point of failure however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants