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

Chess Engine doesn't work out of the box #12

Open
coatlessali opened this issue Jan 18, 2024 · 0 comments
Open

Chess Engine doesn't work out of the box #12

coatlessali opened this issue Jan 18, 2024 · 0 comments
Labels
bug Something isn't working external binary fuckery involving external binaries for windows good first issue Good for newcomers help wanted Extra attention is needed

Comments

@coatlessali
Copy link
Owner

coatlessali commented Jan 18, 2024

As of now, the Chess Engine will fail to run out of the box, since it relies on a Windows binary of stockfish, compiled with avx2 support. The build was dropped to x86_64 for compatibility reasons.

Workaround:

Compile a binary of stockfish in ULTRAKILL_Data/StreamingAssets/ChessEngine/src with make build-profile ARCH=x86-64, and rename it to stockfish-windows-x86-64.exe. Then replace the exe in ChessEngine with the renamed binary.

Potential automated fix:

It should be pretty easy to have the script back up the Windows executable and replace it with a native one, or even compile from source. This opens up the neat opportunity of being able to compile to the architecture specific level of x86_64. Alternatively, it should be easy enough to obtain MacOS/Linux binaries from the releases and just ship those.

@coatlessali coatlessali added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers external binary fuckery involving external binaries for windows labels Jan 18, 2024
@coatlessali coatlessali pinned this issue Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external binary fuckery involving external binaries for windows good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant