r/Elona • u/Comfortable_Dog943 • 1d ago
Elona crash on exit when using wine (Linux) Fix
Hey guys so to those of you who are playing on linux and have trouble when you exit the game, here is the solution taken from here https://bugs.winehq.org/show_bug.cgi?id=28868 This guide was using wine 11.16 but this fix is documented from loooooong before it released (2011 lol).
First we need a native version of dinput.dll or whatever, it has to be 32-bit. Imma leave the link of the file i am using. Here is the page i took the file from: https://www.dll-files.com/dinput.dll.html and here is the direct download to the file itself (from winxp sp3 32-bit v5.3.2600.5512): https://www.dll-files.com/download/a9fb0532ceeefbf19dda472c19ea401a/dinput.dll.html?c=TkJlTWNFNEw1RGZCcmc4QWFYTk5YUT09
Anyway get the file, extract it and put dinput.dll in your elona folder so we dont change anything globally, keep in mind that this guide understands that you are using .wine (default wine) as your prefix so if u dont know what it is then better :P.
Whit the file in your elona folder lets procceed to make an script to run everything together at once everytime u play (instead of running elona.exe to play run this):
Make a new file and paste the following text then edit according to your directories.
>#!/bin/bash
cd "path/to/elona/here"
WINEDLLOVERRIDES="dinput=n" wine ./elonaplus.exe (or whatever executable you are using i.e elona.exe or elonaomake.exe etc)
in my case it goes like this
#!/bin/bash
cd "/home/ant01n22884994002ike2/Games/elonaplus2.32"
WINEDLLOVERRIDES="dinput=n" wine ./elonaplus.exe
save the file as for example whit the name "elona_run.sh" (sh is the file extension, remove the .txt and put .sh) and save it in your elona folder as well. enter a terminal and go to your elona folder whit "cd path/to/elona/here" and then give the file we just edited, permissons to run whit "chmod +x elona_run.sh"
then run it whit "bash elona_run.sh" and play! You can also make a shortcut so lmk in the comments if u need the structure of the file and the ico of the game.
I know it might not be the best guide hehe but if u need help whit anything related to the game lmk.