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

only black screen #166

Closed
legluondunet opened this issue Aug 13, 2018 · 7 comments
Closed

only black screen #166

legluondunet opened this issue Aug 13, 2018 · 7 comments
Labels
invalid An issue which should not have existed in the first place support A user needs immediate help, there might not be a real problem

Comments

@legluondunet
Copy link

legluondunet commented Aug 13, 2018

Hello,
I just compiled the last git version, put the content of the "gnome" CD folder in the "openswe1r" build folder, launch "openswe1r" and I obtain only a black window. This window does not close when I click on the cross, I have to kill it.

infos:
swep1rcr.exe Time/Date Wed May 12 02:03:30 1999

I joined you the log, thank you for your help.
openswe1r_CD.log

config:
Ubuntu 18.04

@JayFoxRox
Copy link
Member

Did you respect #43 (also mentioned in "Getting Started" on wiki)?

Also try using #158, as your binary seems to require it for the background music.
The GOG.com version should work without #158 if I remember correctly.

@JayFoxRox JayFoxRox added the support A user needs immediate help, there might not be a real problem label Aug 13, 2018
@legluondunet
Copy link
Author

#43 Before launching the game I renamed all the folders/files recursively in lowercase.
#158 The CD automatically mounted on /media/legluondunet/racer100_0/

@legluondunet
Copy link
Author

Same result with Gog version:
Time/Date Wed Feb 6 00:22:20 2002
cb1b25fbca829b4eb472423acbbe1f31 swep1rcr.exe

openswe1r_GOG.log

@JayFoxRox
Copy link
Member

JayFoxRox commented Aug 13, 2018

#158 The CD automatically mounted on /media/legluondunet/racer100_0/

#158 is not about the host CD path, but the emulated CD drive for the game.
OpenSWE1R does not care if the game comes from HDD, CD, or whatever. But internally it emulates a CD drive at "D:/" so the games copy protection is not triggered.

openswe1r_GOG.log

That log ends like this:

   17135 Emulation at 4A42EC ('ReadFile') from 4A42EC
[...]
   17136 Emulation at [End of log]

However, if the game finds all paths as expected, the loadscreen will only appear around 32000 calls into emulation (the entire screen will be blue in OpenSWE1R then). The actual menu displays around 100000 calls into emulation.
This takes a considerable amount of time when using the CPU emulation.

As long as stuff is happening in the log, OpenSWE1R is probably still working fine - it's just slow.

If you are running on x86 Linux, you can use KVM using the UC_VM option. Also see #159.
This will do CPU virtualization and provide a huge speedup.
There is also incomplete Windows work for WHPX and HAXM (although I seem to have forgotten to upload that).

If the swep1rcr.exe is unable to locate data on the emulated CD, this will take even more than 32000 or 100000 calls, because it attempts a handful of paths for each file before giving up (#158 addresses this by improving CD emulation).

@legluondunet
Copy link
Author

Ok, I understand better, I was too impatient and closed the window before the game to start. If I wait a little more, I obtain the blue screen, then the main menu. But it's very slow, the cinematics don't play and I hear a noise instead of the music, is all of this the actual state of the project or I made a mistake?

@JayFoxRox
Copy link
Member

Answered in my previous post:

If you are running on x86 Linux, you can use KVM using the UC_VM option. Also see #159.
This will do CPU virtualization and provide a huge speedup.

Closing.

@JayFoxRox JayFoxRox added the invalid An issue which should not have existed in the first place label Aug 13, 2018
@legluondunet
Copy link
Author

Thank you for your support and keep the work of this very interesting project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid An issue which should not have existed in the first place support A user needs immediate help, there might not be a real problem
Projects
None yet
Development

No branches or pull requests

2 participants