Manu311 92 Posted May 29, 2020 Share Posted May 29, 2020 (edited) Greeting fellow Linux-users, since I've seen a couple of Linux people having problems with HoN, I've decided to try to package it. I haven't done that before, so it'll probably have issues which I might or might not be able to fix. Anyways, let me summarize what an AppImage is: Basically it combines all the libraries together with an application so you don't have to manually install the required libraries on your system. It's a distribution-independent Tool that should run almost everywhere - you could even run it on Windows via WSL! Since the image would be really big if it contained the entire client, I have left most of HoNs files out (especially resource-files). This has the side-effect of you having to download basically the entire client via repair-install (which starts automatically until it finds at least some resource-files). Right now there are files missing on the HoN-servers, so repair-install will not succeed! Which means, this image doesn't work on it's own right now. However I've informed FB about it, and they'll probably fix that eventually. For the time being, you have to manually install HoN somewhere and follow a couple of additional steps - and you might want to follow these steps anyways, if you already have HoN downloaded (and don't want to download it again). So here they are: Spoiler Switch into your current HoN-Folder - that should contain a file called "hon.sh" Open a terminal at that folder Execute the following command here: rm -rf ~/.Heroes\ of\ Newerth/.bin; cp -r . ~/.Heroes\ of\ Newerth/.bin/ Run the AppImage - it should start HoN right away Currently known problems (fixing takes some time since building the image and uploading it takes time): It requires 64bit linux - this won't be fixed Repair install doesn't finish - this is actually a FB-issue, but there's workaround (read above) So here's the download (~ 23 MB):https://manu311.de/Heroes_Of_Newerth-x86_64.AppImage To (normally) run it, you simply have to mark the downloaded file as executable and run it. You will never have to run it as root, so no sudo or su commands required. If you have any issues, please let me know. Planned improvements/features: Spoiler Custom downloader, which downloads the files faster than the official one Additional hosting of missing files on my server, so missing files on official server are no longer an issue Adding metadata to the AppImage Adding AppImage-Updating Potential features - if they get requested: Spoiler Usb-image with a minimal Linux-distribution tuned for running HoN Docker-images for servers to be better HoN-download-servers (better, because they have all the files and can run https) File-validation for the custom-downloader Custom downloader using (multiple) custom servers Edited June 17, 2020 by Manu311 Updated file-size 5 Link to post Share on other sites
Manu311 92 Posted May 29, 2020 Author Share Posted May 29, 2020 (edited) Changelog 0.1 - 2020/05/29 Initial Release 0.2 - 2020/05/29 Fixed these bugs: GLIBC_2.28 is required Systemd needs workaround (I know how to fix this in the next version) 1.0 - 2020/06/05 (checksum: d0c2f2225c2f7750a4f733924a142558) Rework of how the image works. Drastically decreased image size (6.2 GB to 45 MB) It is now possible to update HoN via the HoN-updater Additional files have to be downloaded on first start 1.1 - 2020/06/07 (checksum: 860d9a98b8b321369c7b7c052ad1b700) Switch from Debian-based to Gentoo-based Added more libraries Reduced build-flags of every required library as much as possible Hopefully fixes udev and libgconf-issues 1.2 - 2020/06/08 (checksum: aa8d74a816983f1b0da8ed981d0c6c43) Removed all files (but the desktop-icon) from HoN and replaced them with custom downloading code Reduced image size to 8.6 MB Hopefully also fixed udev-bug now 1.3 - 2020/06/17 (checksum: 9515cb448d72c8abd0e2bc7bd93f220f) Increased Image-Size to 23 MB Added a bunch of libraries Additionally tested on (and fixed for) Manjaro Linux Edited June 17, 2020 by Manu311 Added 1.3 3 Link to post Share on other sites
Manu311 92 Posted June 3, 2020 Author Share Posted June 3, 2020 (edited) Release 1.0 is currently getting tested. Changelog has been updated, however download-link is not yet updated. It will probably also move away from torrent since the file-size is now way more manageable. On 5/29/2020 at 3:33 PM, Manu311 said: Rework of how the image works. Drastically decreased image size (6.2 GB to 40 MB) It is now possible to update HoN via the HoN-updater Additional files have to be downloaded on first start //EDIT: Apparently the patch-server doesn't provide all the files which are missing. I'll figure something out, but it'll take some time. //EDIT 2: The patch-server still doesn't provide all the required files, but manually copying the files where they would be copied to should work, so I included a small tutorial for that. I also informed Frostburn about the missing files and they'll probably fix them eventually . Edited June 4, 2020 by Manu311 Link to post Share on other sites
Manu311 92 Posted June 7, 2020 Author Share Posted June 7, 2020 Release 1.1 is ready I switched the "distribution" inside the image from Debian to Gentoo and hopefully included all the required libraries. I tested it on multiple Gentoo systems and Linux Mint - so with or without systemd should work. Image size has been increased to 58MB - primarily because I added more libraries. There's still room for improvement here, since right now it contains libraries from hon which are (uncompressed) 80MB - if I figure out where to download those, I'll reduce the image-size again. This should fix the libgconf-issue - and I've also edited HoNs startup file to include the new default path /lib64 for udev, which hopefully fixes the udev-issue. Link to post Share on other sites
Manu311 92 Posted June 8, 2020 Author Share Posted June 8, 2020 Release 1.2 is ready Once again I drastically reduced the image size and fixed bugs. Image-Size is now down to 8.6 MB! and contains basically no file from HoN itself. The only file that is still included is the desktop-icon (which I haven't even tested, since I don't have a desktop). The image will now download everything at first start. It will download a little more than it requires to run the hon-repair-tool and initiate that after. However there are a couple of files which it can't download, but which aren't necessary - however it will print out messages about those, so just ignore those 4 "Couldn't download ..." messages for now. Also it still requires the separate download since the repair tool can't find all the files either. Link to post Share on other sites
Manu311 92 Posted June 17, 2020 Author Share Posted June 17, 2020 Release 1.3 is ready This time image-size increased again, since I had to include a couple of big libraries, to make the image run on more systems. There are still libraries that aren't included in the image, but as long as they are provided by every linux-system, that should be fine. However if anyone has a system that doesn't run the AppImage, please tell me the distribution and version, so I can look for the problem. This time it was Manjaro Linux which I fixed. Link to post Share on other sites
Aipa 0 Posted July 9, 2020 Share Posted July 9, 2020 Im Linux user. I will follow this topic Link to post Share on other sites
albitos 0 Posted September 23, 2020 Share Posted September 23, 2020 Hey man. Do you have a source for this? I would love to tinker with it - it stopped working for me on Manjaro ;) Link to post Share on other sites
Manu311 92 Posted September 24, 2020 Author Share Posted September 24, 2020 (edited) On 9/23/2020 at 1:14 PM, albitos said: Hey man. Do you have a source for this? I would love to tinker with it - it stopped working for me on Manjaro I'm a little bit busy right now. But I might clean it up and put in on Github in 1½ weeks if you can wait for that . You'll might need to know at least parts of the following technologies I guess: Gentoo Linux Docker Ansible Shell Scripts AppImage Edited September 24, 2020 by Manu311 Link to post Share on other sites
Manu311 92 Posted October 13, 2020 Author Share Posted October 13, 2020 (edited) On 9/23/2020 at 1:14 PM, albitos said: Hey man. Do you have a source for this? I would love to tinker with it - it stopped working for me on Manjaro Took me a little time, but is the source-code: https://github.com/Manu311/HoN-AppImage I should probably write some instructions, but I haven't done that yet . Iirc you should be able to just go into the ansible directory, run `ansible-playbook site.yml` and wait for a AppImage to appear. The Code is not really cleaned up, but it works. In case you want to run it based on Debian instead of Gentoo, I put my entire git-history there, so you can read through that as well. Edited October 13, 2020 by Manu311 Link to post Share on other sites
Huholoman 0 Posted October 24, 2020 Share Posted October 24, 2020 (edited) Hello, as Im not able to start the original Linux client because of some lib incompatibility.. is there way how to update the game using ur appImage? I happily started the game, pressed "update", hon closed but the update dialog havent appeared. Edit: sorry, it actually updated the game and started it again, there just wasnt any updating dialog :)) Edited October 24, 2020 by Huholoman Link to post Share on other sites
Manu311 92 Posted October 25, 2020 Author Share Posted October 25, 2020 2 hours ago, Huholoman said: Edit: sorry, it actually updated the game and started it again, there just wasnt any updating dialog :)) That's strange. For updates I haven't build anything special, it should just use the normal update-program of HoN . Maybe it got minimized for some reason. Anyways, glad it works for you Link to post Share on other sites
Pussyfingerz 0 Posted November 21, 2020 Share Posted November 21, 2020 Just installed yesterday, thank you for putting in the effort to do this. Devops is a thankless job at times. I do have one issue to report, 1. I installed the game from https://forums.heroesofnewerth.com/index.php?/topic/31-mac-linux-clients-unofficial-downloads/ 2. I moved the game to .Heroes\ of\ Newerth instead of HoN 3. I went through your instructions 4. Launched, logged in, then updated the game. 4. Reloaded the game and played a game of midwars and noticed the recipe for spellshards was incorrect. It was listing Arcana as the required item for the recipe when its the cogwheel. Link to post Share on other sites
Manu311 92 Posted November 21, 2020 Author Share Posted November 21, 2020 52 minutes ago, pussyfingerz said: Just installed yesterday, thank you for putting in the effort to do this. Devops is a thankless job at times. I do have one issue to report, 1. I installed the game from https://forums.heroesofnewerth.com/index.php?/topic/31-mac-linux-clients-unofficial-downloads/ 2. I moved the game to .Heroes\ of\ Newerth instead of HoN 3. I went through your instructions 4. Launched, logged in, then updated the game. 4. Reloaded the game and played a game of midwars and noticed the recipe for spellshards was incorrect. It was listing Arcana as the required item for the recipe when its the cogwheel. I recall having such issues in the past as well. However they should not be caused by the AppImage. There are two possible reasons: 1. FB forgot to patch the specific file for Linux (which might be the case, as I haven't played anything that buys Spellshard recently - and I can't check right now) 2. You got either a resourcesX.s2z which overrides the recipe or the raw file from within the resource-file. Link to post Share on other sites
Pussyfingerz 0 Posted November 22, 2020 Share Posted November 22, 2020 (edited) So aside from the issue above, I was able to play a bunch of games last night without interruption. But tonight while trying to play, I was getting kicked from games periodically for my client files not matching the servers. Edit: Ran the installer again and wasn't getting kicked. Edited November 22, 2020 by Pussyfingerz Link to post Share on other sites
Huholoman 0 Posted December 4, 2020 Share Posted December 4, 2020 Hello, can I ask you, does this appimage works for you after last update? I cant connect to any server, when it finds match or i want to mentor somebody it sais "no response" Link to post Share on other sites
Manu311 92 Posted December 4, 2020 Author Share Posted December 4, 2020 50 minutes ago, Huholoman said: Hello, can I ask you, does this appimage works for you after last update? I cant connect to any server, when it finds match or i want to mentor somebody it sais "no response" Sadly the answer to that question is: No (I only tried mentoring though) However I've read somewhere, that there's an issue right now with Linux which will be fixed soon. I can't find the post, so I might be imagining things. Either way, this AppImage shouldn't be causing these issues. If you can play HoN on Linux without it, but not with it, I'll look deeper into it (even though I don't even know where the problem could be, and usually I have way too many possibilities I think of ). Link to post Share on other sites
Huholoman 0 Posted December 5, 2020 Share Posted December 5, 2020 Hello, somebody make hotfix for linux client Link to post Share on other sites
Manu311 92 Posted December 5, 2020 Author Share Posted December 5, 2020 5 minutes ago, Huholoman said: Hello, somebody make hotfix for linux client Indeed. However I doubt I'll fix this, since Garena/FB is working on that fix to be released soon anyways (and I won't have to do anything once they release that patch). But if you want to fix this for yourself, you can follow @kgsws howto in that post he made. The file will be at: ~/.Heroes of Newerth/.bin/libk2-x86_64 (~ equals your home-directory - directories with a dot at the beginning will usually be hidden, but they are there). 1 Link to post Share on other sites
NudeRaider 0 Posted December 26, 2020 Share Posted December 26, 2020 (edited) When I run it through file manager nothing happens. When I run it through bash in console it says it can't execute binary. EDIT: Oh wow. Took me like an hour to figure out that the command to run the AppImage (4th bullet) is this: ./Heroes_Of_Newerth-x86_64.AppImage --install Would be nice if you could add that to the OP for noobs like me. Anyhow. Still time wasted, as it still gives me the same error message ("...Couldn't load vid_gl2") Any ideas? I am on Ubuntu 20.04 if that matters. Edited December 26, 2020 by NudeRaider additional info Link to post Share on other sites
Manu311 92 Posted December 26, 2020 Author Share Posted December 26, 2020 9 hours ago, NudeRaider said: When I run it through file manager nothing happens. When I run it through bash in console it says it can't execute binary. EDIT: Oh wow. Took me like an hour to figure out that the command to run the AppImage (4th bullet) is this: ./Heroes_Of_Newerth-x86_64.AppImage --install Would be nice if you could add that to the OP for noobs like me. Anyhow. Still time wasted, as it still gives me the same error message ("...Couldn't load vid_gl2") Any ideas? I am on Ubuntu 20.04 if that matters. I didn't even know you could install AppImages .The error probably means, you don't have a graphics driver installed. For integrated graphics (and AMD I guess) you need mesa - for nvidia you need nvidia-drivers. However Ubuntu should have both by default Link to post Share on other sites
psychoapatic 0 Posted December 26, 2020 Share Posted December 26, 2020 Many thanks for you work. I followed the instructions and i'm able to launch the game, but whenever i start a match i get a max of 5-6 FPS even on lowest settings. What should i do? All other video games run fine. I'm on Arch Linux, 5.10.2-zen1-1-zen kernel, i3wm with nvidia-beta-dkms drivers. Link to post Share on other sites
Manu311 92 Posted December 26, 2020 Author Share Posted December 26, 2020 10 minutes ago, psychoapatic said: Many thanks for you work. I followed the instructions and i'm able to launch the game, but whenever i start a match i get a max of 5-6 FPS even on lowest settings. What should i do? All other video games run fine. I'm on Arch Linux, 5.10.2-zen1-1-zen kernel, i3wm with nvidia-beta-dkms drivers. What are your specs? Are you on a notebook and using both the onboard and the nvidia graphics cards? You might need to run the AppImage with primusrun or something like it so it uses your nvidia-graphics. Link to post Share on other sites
psychoapatic 0 Posted December 26, 2020 Share Posted December 26, 2020 29 minutes ago, Manu311 said: What are your specs? Are you on a notebook and using both the onboard and the nvidia graphics cards? You might need to run the AppImage with primusrun or something like it so it uses your nvidia-graphics. No i'm on a desktop and i don't have an integrated graphic card. I know that alongside proprietary drivers i have open source ones intalled (mesa) in the system but they should be blacklisted. Is it possibile to force the appimage to run with nvidia if necessary? Link to post Share on other sites
Manu311 92 Posted December 27, 2020 Author Share Posted December 27, 2020 10 hours ago, psychoapatic said: No i'm on a desktop and i don't have an integrated graphic card. I know that alongside proprietary drivers i have open source ones intalled (mesa) in the system but they should be blacklisted. Is it possibile to force the appimage to run with nvidia if necessary? In Linux you don't really have the option to use both at once, so applications don't have a choice which one they use. The open source drivers for nvidia are called "nouveau", mesa is only used for general stuff which is necessary for every driver. If you have nouveau installed, replace it with nvidia-drivers - you can easily check with this command: "lsmod | grep nouveau" which should not print out anything if you're using proprietary drivers. You can only have either of those drivers loaded, proprietary drivers will not load if you have nouveau loaded. I haven't tried to run HoN with open source drivers, I guess they should work as well but it might be a reason for low FPS (after all I'm actually running HoN on integrated graphics with playable FPS). The only other reason I can think of is actually slow hardware. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now