kwsch / PKHeX

Pokémon Save File Editor
https://projectpokemon.org/pkhex/
Other
3.71k stars 696 forks source link

Pkhex errors out in Winlator #4317

Closed Wolf-lbh closed 3 months ago

Wolf-lbh commented 3 months ago

Everything I did: Turn on dev mode in phone Allow installing unsigned apks Download winlator 7.1 Install winlator and ignore warnings Create Winlator Container and set both x86 and x64 boxes to run in compatibility mode Assign D drive in winlator to a folder you have access to on your phone (I just did my downloads folder) I deleted the E drive because I don't think I need 4 drives but maybe this screwed something up. Put Pkhex and .NET Desktop 8.0.5 in that folder (Note it is NOT the first version on the downloads page if you google it) (I tried running pkhex and clicking "yes" in the popup box that prompts you to download it but the download never happened so I just went to the Microsoft website and got it directly from there and put it in my download folder which I set to be my Winlator D drive) Run winlator container Open Wine settings and set it to run in Windows 10 mode not Win7 Click the start menu and install wine mono Run .NET installer from D Drive, it should say it installs successfully. Run Pkhex, give it several minutes, maybe try running it in Wine in the start menu, honestly I clicked it like 300 times It crashes and writes an error log saying it is missing a bunch of stuff. Close winlator Open Winlator Click Pkhex another 300 times and 5 minutes later it will load and the pkhex window will appear

The second I click the "file" button to try and load a save file into pkhex though it immediately crashes and says it is missing a bunch of dll files. No idea what to do at this point as I've already installed .NET desktop 8 which is the only package it says it needs.

Masamune3210 commented 3 months ago

Something in the emulation of Windows is incorrect in one way or another and its preventing pkhex from creating its initial window handle, aka, the app is asking windows to make a window for it, windows is either refusing or not complying correctly, and pkhex is immediately crashing and burning because you kind of need a window to be able to proceed.

Long story short, Wine isn't going to work in its current set up. Going to have to either figure out how to get Wine to behave or find another means of attacking the problem

Wolf-lbh commented 3 months ago

Something in the emulation of Windows is incorrect in one way or another and its preventing pkhex from creating its initial window handle, aka, the app is asking windows to make a window for it, windows is either refusing or not complying correctly, and pkhex is immediately crashing and burning because you kind of need a window to be able to proceed.

Long story short, Wine isn't going to work in its current set up. Going to have to either figure out how to get Wine to behave or find another means of attacking the problem

Thanks for the advice but I think I've reached the limit of what I can figure out how to do in the stripped down Winlator version of Wine. Maybe I'll try again later but I've made my way through about 15 different failure points to get to where I'm at and I'm feeling pretty done.

Masamune3210 commented 3 months ago

No shame in that. Close the issue if you are done with it, if you wouldn't mind