trumank / mint

Deep Rock Galactic mod loader and integration
MIT License
273 stars 41 forks source link

Trying to save Mod.io OAuth Token returns http request error (os error 66) #185

Open al-al-le opened 6 months ago

al-al-le commented 6 months ago

Every time I try to save my Mod.io OAuth token Mint returns with this error:

http request error: Request error: error sending request for url (https://api.mod.io/v1/games/2475/mods?id=0) error trying to connect: tcp connect error: Bad device type. (os error 66)

I'm running Mint on a version of Apple's GPTK and Wine through the Whisky wrapper on MacOS so I'm guessing that's the main part of the issue.

Any help is appreciated!

trumank commented 6 months ago

Don't know much about that setup (but I'd be very curious to if DRG runs well with it!) I recall running into similar issues running it through WINE on Linux, but there are native Linux builds so I haven't bothered to figure out why.

Testing again (on Linux), I'm running into https://github.com/rust-lang/rust/issues/94092 with the current release, but seems to be gone when building from master.

The particular error you're running into seems to be https://bugs.winehq.org/show_bug.cgi?id=50520 which apparently has since been fixed in WINE so you may need to upgrade WINE.

I have not bothered trying to build for MacOS for a while since I assumed DRG wasn't playable on it, but if that's not the case I can see about supporting it again.

al-al-le commented 6 months ago

Quite the fast response, and from the man himself!

I read through the Wine article and yea it does seem like a similar issue. Unfortunately, Whisky is limited to versions of Wine 7.0 and I can't really update it outside of that.

But hey, I'd love to see what you'll do with a MacOS build if one ever does come out! For now, I guess i'll stick to that crappy in-game mod launcher...

jieyouxu commented 6 months ago

FWIW, I work on mint on macOS, I just can't be bothered to setup the cross-compilation toolchain (or never got it to work) for cross-compiling the hook. Might be possible.

trumank commented 6 months ago

Actually it's closer to working than I thought. The only thing missing is oodle compression for repak (which is only necessary for a handful of mods). Assuming all the necessary packages and cross compiler are installed, it can be built with cargo build --no-default-features --features=hook.

jieyouxu commented 5 months ago

Actually yes I can repro the build on macOS after setting up relevant dependencies, only blocked on reqwest invalid certificate thing