Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hardware Tycoon

Design and sell hardware to outdo the competition in this free tycoon! · By hi

Installation procedure for the Linux-64 download?

A topic by G-9Games created Aug 21, 2019 Views: 817 Replies: 8
Viewing posts 1 to 3
(1 edit)

Hi!  I downloaded the 64-bits Linux version of your game but can't figure out how to launch/install it, as my Linux install doesn't seem to recognize any of the files in the archive and none of them give me a clear indicator that "this is the file I need to click on", like "setup" or "install" or "game" or even "hw" (for "hardware").  There is, however, a file named "nw", but my system doesn't know what to do with it, so...  back to square one...

A bit of help in that regards would be appreciated.  Thanks!

https://github.com/nwjs/nw.js/wiki/how-to-run-apps

The file named nw is the one you're supposed to run.

(+1)

OK, thanks for that link, this has lead me to the correct path.  I'm still fairly new to Linux but I'm starting to get the hang of it.  So, based on the information provided in that link, I figured out that I needed to install nw.js on my system to run your game, but first I also had to install npm as this is the delivery method to get nw.js.  Now, the system still doesn't know what to do with this nw file when I double-click on it, but the documentation told me I could also run this from the terminal, which I tried.  I tried simply "nw" and this didn't work.  I got the following error message :

/Hardware Tycoon (Linux 64-bit)$ nw
[14050:14050:0821/202324.775408:ERROR:component_loader.cc(168)] Failed to parse extension manifest.

So I thought that maybe the "nw" I just installed wasn't the same as the "nw" file in my game folder, and that maybe the second was meant to be passed to the first as an argument parameter, so I tried "nw nw".  Still didn't work, got the same error message but with different numbers :

/Hardware Tycoon (Linux 64-bit)$ nw nw
[14217:14217:0821/202342.152288:ERROR:component_loader.cc(168)] Failed to parse extension manifest.

Finally, last thing I tried is something I still gathered from that link you provided, where they said that in some cases you may need to pass the "packagedapp.nw"file to nw as an argument parameter, so I tried this :

/Hardware Tycoon (Linux 64-bit)$ nw package.nw
[14377:14377:0821/202359.248857:ERROR:component_loader.cc(168)] Failed to parse extension manifest.

I still get the same error message, with yet again different numbers, but...  Hey!  It works!  :-)

I thought I'd share that info with you, as this may be "straight-forward" for experienced Linux users but for long-time Windows users like me (and possibly you I'm assuming) it's just not quite as easy as "double-clicking" the file, even though it claims in the doc that this should work.

Great game, by the way.  Been playing on it on this site for quite some time now, trying out the new versions when they come out.  Can't wait to see it when it'll be completed.  Keep up the good work!

Try in path game in command line ./nw

If you have error send me it enjoy to help you

(+1)

I just tried that, and it effectively launched the game, along with giving several error messages that seem to be inconsequential in the end.  It looks like it also downloaded some missing components, as you can see here :

Hardware Tycoon (Linux 64-bit)$ ./nw
LaunchProcess: failed to execvp:
/home/adam/Téléchargements/Hardware Tycoon (Linux 64-bit)/nacl_helper
[20483:20483:0822/075838.883678:ERROR:nacl_fork_delegate_linux.cc(314)] Bad NaCl helper startup ack (0 bytes)
[20481:20486:0822/075840.426339:ERROR:simple_version_upgrade.cc(177)] Version 9 is from the future.
[20481:20486:0822/075840.426378:ERROR:simple_backend_impl.cc(728)] Simple Cache Backend: wrong file structure on disk: 5 path: /home/adam/.cache/HardwareTycoon/Default/Code Cache/js
[20481:20489:0822/075840.637251:ERROR:nacl_browser.cc(305)] Failed to open NaCl IRT file "/home/adam/Téléchargements/Hardware Tycoon (Linux 64-bit)/nacl_irt_x86_64.nexe": -4
[20481:20498:0822/075840.932430:ERROR:top_sites_backend.cc(92)] Failed to initialize database.
[20481:20499:0822/075842.934265:ERROR:simple_version_upgrade.cc(177)] Version 9 is from the future.
[20481:20499:0822/075842.934283:ERROR:simple_backend_impl.cc(728)] Simple Cache Backend: wrong file structure on disk: 5 path: /home/adam/.cache/HardwareTycoon/Default/Cache
[20481:20486:0822/075842.934666:ERROR:simple_version_upgrade.cc(177)] Version 9 is from the future.
[20481:20486:0822/075842.934681:ERROR:simple_backend_impl.cc(728)] Simple Cache Backend: wrong file structure on disk: 5 path: /home/adam/.cache/HardwareTycoon/Default/Media Cache
[20640:20640:0822/075843.135049:ERROR:audio_context.cc(52)] Create
[20640:20640:0822/075843.136841:ERROR:audio_context.cc(130)] AudioContext
[20640:20640:0822/075843.137678:ERROR:audio_context.cc(134)] no user gesture
[20640:20640:0822/075843.166700:ERROR:audio_context.cc(436)] IsAllowedToStart
[20640:20640:0822/075843.166731:ERROR:audio_context.cc(93)] starting

This does look scary indeed, but like I said, the game launched and actually worked.  I closed the game and re-tried that command, and as I suspected, there are the some of the same messages appearing again, but some that didn't (i.e. those that were associated with downloading updates).  The game works, including sound, despite these remaining error messages.

/Hardware Tycoon (Linux 64-bit)$ ./nw
LaunchProcess: failed to execvp:
/home/adam/Téléchargements/Hardware Tycoon (Linux 64-bit)/nacl_helper
[20692:20692:0822/080025.073595:ERROR:nacl_fork_delegate_linux.cc(314)] Bad NaCl helper startup ack (0 bytes)
[20690:20698:0822/080025.198325:ERROR:nacl_browser.cc(305)] Failed to open NaCl IRT file "/home/adam/Téléchargements/Hardware Tycoon (Linux 64-bit)/nacl_irt_x86_64.nexe": -4
[20690:20706:0822/080025.241720:ERROR:top_sites_backend.cc(92)] Failed to initialize database.
[20731:20731:0822/080025.615466:ERROR:audio_context.cc(52)] Create
[20731:20731:0822/080025.615524:ERROR:audio_context.cc(130)] AudioContext
[20731:20731:0822/080025.615535:ERROR:audio_context.cc(134)] no user gesture
[20731:20731:0822/080025.654425:ERROR:audio_context.cc(436)] IsAllowedToStart
[20731:20731:0822/080025.654445:ERROR:audio_context.cc(93)] starting

Hope that helps.

Hi G-9Games, i know that nw.js uses Chrome under windows or chronium under linux to start app. You should have fixed these few errors by following the commands below


To update your actual pkg:
sudo apt-update && apt-upgrade
To installing chronium-browser:
sudo apt install -y -o 'apt::install-recommends=true' chromium-browser
Run one time: 
chromium-browser

You can close the browser and go in game path start the game with:
./nw

Let me know if errors are fix.
Good game

Hi FoorbarIT,

Sorry for the delay.  I just tried these commands, and you might want to edit your post for future reference as there are typos in the first line : there are no "-" needed between apt update and apt upgrade.

The previous error messages about packaging are gone.  Now, I receive the following input just FYI :

~/Téléchargements/Hardware Tycoon (Linux 64-bit)$ ./nw
LaunchProcess: failed to execvp:
/home/adam/Téléchargements/Hardware Tycoon (Linux 64-bit)/nacl_helper
[29642:29642:0826/120211.111283:ERROR:nacl_fork_delegate_linux.cc(314)] Bad NaCl helper startup ack (0 bytes)
[29640:29648:0826/120211.246568:ERROR:nacl_browser.cc(305)] Failed to open NaCl IRT file "/home/adam/Téléchargements/Hardware Tycoon (Linux 64-bit)/nacl_irt_x86_64.nexe": -4
[29640:29660:0826/120211.366005:ERROR:top_sites_backend.cc(92)] Failed to initialize database.
[29682:29682:0826/120211.661427:ERROR:audio_context.cc(52)] Create
[29682:29682:0826/120211.661472:ERROR:audio_context.cc(130)] AudioContext
[29682:29682:0826/120211.661482:ERROR:audio_context.cc(134)] no user gesture
[29682:29682:0826/120211.707962:ERROR:audio_context.cc(436)] IsAllowedToStart
[29682:29682:0826/120211.707977:ERROR:audio_context.cc(93)] starting

And the game still works.  Including sound, despite these new "error messages". I mean, at this point, it's no big deal for me, the game works and I'm all happy!  :-)

(1 edit)

Hi G-9Games, what is your distribution linux ?

 

Linux Mint 19.x.