1. Hello!

    First of all, welcome to MapleLegends! You are currently viewing the forums as a guest, so you can only view the first post of every topic. We highly recommend registering so you can be part of our community.

    By registering to our forums you can introduce yourself and make your first friends, talk in the shoutbox, contribute, and much more!

    This process only takes a few minutes and you can always decide to lurk even after!

    - MapleLegends Administration-
  2. Experiencing disconnecting after inserting your login info? Make sure you are on the latest MapleLegends version. The current latest version is found by clicking here.
    Dismiss Notice

The EASIEST way to run MapleLegends on Linux - Unofficial Linux Client

Discussion in 'Guides' started by Cak33, Sep 6, 2024.

  1. Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    Linux has always been a pain in the ass to setup and play, with differing instructions between running vanilla wine, lutris, and the steam deck guides, and for those who are inexperienced, somehow all these may somehow magically not work out. For those who still have problems with it, or are too lazy to set it up, my client (which is honestly just a script for setting up wine, winecfg and dll replacements) should help to run the game with minimal effort and knowledge.

    Tested on LMDE 6, but since this client runs on wine AppImage, I believe it will run on every linux desktop (that isnt arm based)

    Edit: Tested on steam deck, working without any issue
    borrowed from a friend to test
    [​IMG]

    Download MapleLegends_LINUX_UNOFFICIAL_10FEB2025:
    https://u.pcloud.link/publink/show?code=XZMJiH5ZCL74ehL3HbpFXfvlM8h2ySxWmni7

    Optional: If you just wanna view my kiddy scripts and manually setup the client, can view my github repo here:
    https://github.com/xiujk71/maplelegends-client-scripts

    Some stuffs to take note:
    - Your system needs to be able to run AppImage executable, as my script uses Wine AppImage.
    - You are NOT required to install Wine on your system. A copy of Wine AppImage is provided instead.
    - My script will create a wine prefix at "/home/<username>/maplelegends_prefix". Ensure that there is no "maplelegends_prefix" in your home folder when running my script for the first time.
    - You can manually update the MapleLegends client by replacing ./MapleLegends folder with the one from new MAC client
    - Does NOT work with systems that has AppImageLauncher installed. Make sure to uninstall it

    Instructions to run the client:
    1. Extract the 7z content on your PC
    2. Ensure maplelegends.sh, maplelegends-windowed.sh, ml_winecfg.sh & wine.AppImage have executable permissions enabled.
    Right click on the file -> Properties -> Permissions -> Tick "Allow executing files as program"
    [​IMG]
    pic uploader

    to use command line instead, use
    chmod +x "filename"
    can view examples here: https://bash.cyberciti.biz/guide/Setting_up_permissions_on_a_script
    3. Run maplelegends.sh on the terminal. Wait for the first client to launch. Then run again to spawn more clients if you wish to.

    1. If you are getting this error as shown below, run ./maplelegends-windowed.sh and see if it works.
    [​IMG]

    2. If you receive AppImageLauncher error, make sure to uninstall that

    There has been some talks on attempting to make a working client on flatpak, but nothing was done. I've then discovered Wine AppImage and had been holding persosnal scripts for about a year that runs MapleLegends via the AppImage, but was too lazy to polish it.

    if the scripts proves to be user-friendly enough to simply click-and-run without any knowledge, we may have a reason to maintain a linux client officially, which will help to simplify the small percentage of linux & steam deck users here

    Acknowledgements:
     
    Last edited: Feb 11, 2025
    • Great Work Great Work x 8
    • Like Like x 1
  2. Thesus
    Offline

    Thesus Blue Snail

    2
    0
    2
    Sep 5, 2024
    Male
    9:50 AM
    Thesus
    Islander
    19
    Southperry
    Hi may i have your assistance please
     

    Attached Files:

  3. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    The error is quite normal. After about 3-5 seconds of it, MapleLegends should appear.
    [​IMG]

    But if MapleLegends doesn't appear and simply just crash, there may be a chance that Windows 98 is not being set by my script.

    In that case, run ml_winecfg script to launch the winecfg for the maplelegends_prefix, and ensure Windows 98 is selected.
    [​IMG]
    if it still doesn't work, delete the maplelegends_prefix folder in /home/<username>/ and run the maplelegends.sh again
     
    Last edited: Sep 7, 2024
  4. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    let me know if the above post helps.
    I've only tested it on my system, and i don't have a steam deck to test. if there's a need to, i'll refine my scripts.

    if it still doesn't work, can you send me whats the end of the Konsole? The messages at the end will help me with solving the issues. Thanks

    Edit: if anyone fails to get it to work too, please let me know. I want to refine it until its universally working
     
  5. Thesus
    Offline

    Thesus Blue Snail

    2
    0
    2
    Sep 5, 2024
    Male
    9:50 AM
    Thesus
    Islander
    19
    Southperry
    Hi end of the message is

    /tmp/.mount_wine.AMIDNIb/wrapper: line 96: 6003 Segmentation fault (core dumped) "$MAIN" "$@"


    your my last line of hope for maplelegends if it don't work idk what to do i am a Linux noob i tried all the other guides didnt help as much
     
  6. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    just to double check, have you confirmed that Windows 98 is selected in the wine configuration? You can check it by running the ml_winecfg script.
     
  7. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    [​IMG]
    tested on steam deck, script works without any form of modification.
    borrowed it from a friend to test.

    Any steam deck users around? Would like some help in getting it onto the steamOS's launcher, and make it a seamless experience for all
     
    Last edited: Sep 16, 2024
  8. Hrar
    Offline

    Hrar King Slime

    29
    3
    21
    Jun 15, 2024
    Male
    10:50 PM
    Qiria
    Hunter
    Tried it and work like a charm!
    I want to ask if there is a way to use the 1366x768 resolution, because on my end I can't seem to make it work.
     
    • Friendly Friendly x 1
  9. creative
    Offline

    creative Windraider

    485
    3,052
    361
    Nov 2, 2019
    Male
    8:50 PM
    I just tried to get it to work using my VM, and I came across some errors. Here's what I could find

    [​IMG]

    [​IMG]

    When clicking on Integrate and run, I get this error
    If anyone knows how to fix this, that would be wonderful
     
  10. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    looks like what u have there is an appimage error. im not familiar with it myself. but can you double check if your VM can run wine? not from appimage, but the one thats locally installed.
     
  11. creative
    Offline

    creative Windraider

    485
    3,052
    361
    Nov 2, 2019
    Male
    8:50 PM
    It worked with the normal way of running Wine using this method. I just tried to remove Wine completely from the system (after doing a search on how to) and I'm still getting the same error. I may just re-make my VM since I have nothing on it anyways (unless otherwise).
     
  12. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    i did some googling and found this:
    https://github.com/TheAssassin/AppImageLauncher/issues/602

    there's a possibility that appimage launcher is causing an issue. do you mind uninstalling it and try again? thanks

    if this works, i might need to create a script that does extract-and-run instead

     
    • Great Work Great Work x 1
  13. creative
    Offline

    creative Windraider

    485
    3,052
    361
    Nov 2, 2019
    Male
    8:50 PM
    Uninstalling the AppImageLauncher from the Terminal and then rebooting the system has fixed the problem! Now, if the multiple terminals being open can be fixed, that would be lovely!

    How to uninstall the AppImageLauncher using the Terminal
    [​IMG]
     
    • Great Work Great Work x 1
  14. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    The quick solution will be to double click on ./maplelegends.sh and see if your desktop environment allows it to be run directly, without the terminal on.

    Other solution would be to write a .desktop file. I'll have to explore this, for i have not written one before. If you can write one, you can test it first hahah
     
    • Friendly Friendly x 1
  15. creative
    Offline

    creative Windraider

    485
    3,052
    361
    Nov 2, 2019
    Male
    8:50 PM
    Ok, that makes more sense. I'm still slowly learning Linux and how everything works. It runs just fine by clicking on "Run" instead of "Run in Terminal" or "Display"(which I know realize opens the .sh file). Thanks so much for this!
     
    • Friendly Friendly x 1
  16. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    Hey, are you still up for testing? I have an idea to make it work with systems having AppImage Launcher installed.

    Rename "Wine.AppImage" to "wine-appimage.bin"
    then, open up ./maplelegends.sh and replace the codes inside with the one in the spoiler below:
    Code:
    #!/bin/bash
    dir_script=$(dirname $(realpath $0))
    dir_ml=$dir_script/MapleLegends
    dir_dll_files=$dir_script/dll_files
    dir_prefix_system32=$HOME/maplelegends_prefix/drive_c/windows/system32
    
    echo $dir_prefix_system32
    if [[ -d "$dir_prefix_system32" ]]; then
        echo "maplelegends_prefix found"
       
    else
    
        echo "maplelegends_prefix not found"
    
        echo "Creating maplelegends_prefix in $HOME/maplelegends_prefix"
        cd $dir_ml
        echo $(pwd)
        WINEPREFIX="$HOME/maplelegends_prefix" WINEARCH=win32 $dir_script/wine-appimage.bin wineboot
        echo "Success"
    
        echo "Updating ws2_32.dll and ws2help.dll "
        cd $dir_script
        cp "$dir_dll_files/ws2_32.dll" "$dir_prefix_system32/ws2_32.dll"
        cp "$dir_dll_files/ws2help.dll" "$dir_prefix_system32/ws2help.dll"
        echo "Success"
    
        # echo "Copying dxvk-1.10.3 dlls"
        # cp "$dir_dll_files/dxvk-1.10.3/x32/d3d9.dll" "$dir_prefix_system32/d3d9.dll"
        # cp "$dir_dll_files/dxvk-1.10.3/x32/d3d10.dll" "$dir_prefix_system32/d3d10.dll"
        # cp "$dir_dll_files/dxvk-1.10.3/x32/d3d10_1.dll" "$dir_prefix_system32/d3d10_1.dll"
        # cp "$dir_dll_files/dxvk-1.10.3/x32/d3d10core.dll" "$dir_prefix_system32/d3d10core.dll"
        # cp "$dir_dll_files/dxvk-1.10.3/x32/d3d11.dll" "$dir_prefix_system32/d3d9.dll"
        # cp "$dir_dll_files/dxvk-1.10.3/x32/dxgi.dll" "$dir_prefix_system32/d3d11.dll"
        # echo "Success"
    
        # applying overwrite breaks the runtime, unsure why
        # echo "Overwrite DLLs for dxvk-1.10.3"
        # WINEPREFIX="$HOME/maplelegends_prefix" WINEARCH=win32 $dir_script/wine.AppImage regedit $dir_dll_files/dxvk-1.10.3.reg
        # echo "Success"
    
        echo "Setting to Windows 98"
        WINEPREFIX="$HOME/maplelegends_prefix" WINEARCH=win32 $dir_script/wine-appimage.bin regedit $dir_dll_files/win98.reg
        echo "Success"
    
    fi
    
    echo "Starting MapleLegends"
    cd "$dir_ml"
    WINEPREFIX="$HOME/maplelegends_prefix" WINEARCH=win32 $dir_script/wine-appimage.bin ./MapleLegends.exe
    

     
  17. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    Hey bro, i've figured out your error:
    You went to edit Legends.ini inside the MapleLegends folder, and set HDClient = 2.
    [​IMG]

    Using 1368 x 768 is unfortunately broken, and out of my knowledge. With my scripts it is not working. Please change back to HDClient = 0 or 1.
    [​IMG]

     
    Last edited: Sep 18, 2024
  18. Freshmaniac
    Offline

    Freshmaniac Slime

    23
    4
    35
    Nov 12, 2019
    Male
    7:50 PM
    Piershingu
    Corsair
    Hello, thanks for your guide. My steps look a little different fairly early; under Permissions I only have a tickbox for "Is executable" instead of "Allow executing files as program". "Is executable" is already ticked for all three of the files.

    Then, when I try running maplelegends.sh, it simply returns "bash: maplelegends.sh: command not found"
     
  19. creative
    Offline

    creative Windraider

    485
    3,052
    361
    Nov 2, 2019
    Male
    8:50 PM
    Same error happens and actually removes the renamed wine file just like before.
     
    • Useful Useful x 1
  20. OP
    OP
    Cak33
    Online

    Cak33 Skelegon

    924
    354
    398
    Oct 24, 2019
    Male
    9:50 AM
    NotCut3
    Hero
    172
    Active
    hmm, the permissions looks correct. tho it looks like the terminal command may be incorrect. there's two things to try. and if its still not working, can you attach a screenshot of your terminal? thanks!

    first possible solution:
    - try double clicking on maplelegends.sh, and see if you can run it.

    second possible solution
    1. inside the folder where maplelegends.sh is at, right click on an empty spot of the file explorer/manager, and click on "Open in terminal" or similar
    2. type "./maplelegends.sh" and see if maplelegends runs. the ./ characters are very important, make sure to include it.
     
    • Informative Informative x 1

Share This Page