thpatch / thpatch/thcrap

Games can't be found when running in Wine - SSL_ERROR_SYSCALL

Open
#186 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
766
Forks
51
Avg merge
16d 14h
Merged PRs (30d)
1

Description

thcrap doesn't find EoSD (and probably any other game, I can't test this though) when running in Wine.

I point it to Z:\mnt\data\programy\gry\touhou\windows, which maps to /mnt/data/programy/gry/touhou/windows on my system, the directory where I have installed EoSD in a directory called th06.

image

Checking thcrap_log.txt (attached below) reveals many errors related to OpenSSL during initialization:

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.thpatch.net:443  (code 35)

And when selecting the option to search for games:

(JSON) Resolving versions.js... not found
ERROR: No version definition file (versions.js) found!
Seems as if base_tsa didn't download correctly.
Try deleting the thpatch directory and running this program again.

Which is probably caused by the previous error and the program being unable to contact its servers.

What I tried:

  • Reinstalling thpatch according to the error message.
  • Using the old tool (does the same thing, but shows the error in UI).
  • Reinstalling and re-patching EoSD.
  • Using a 32-bit wineprefix.

Versions and other data:

  • Wine: 7.0, official Debian build from winehq.org
  • OS: Debian GNU/Linux Unstable
  • Wineprefix: clean, 64-bit, cjkfonts installed from Winetricks
  • Game: Fully patched EoSD v1.02 + vpatch (file list + SHA256 sums attached below)

ls.txt
sums.txt
thcrap_log.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue under the reported Wine and Debian setup, then inspect the attached thcrap_log.txt around OpenSSL initialization and the missing versions.js/base_tsa download. Compare the game-search path with a working environment. Done means identifying and addressing the cause of the SSL failure so game discovery can complete, or documenting a confirmed external limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.