hv0905 / HacknetOS

A pure C++ console edition of hacker game HACKNET
https://hacknet-cli.edgeneko.com
GNU General Public License v3.0
33 stars 3 forks source link

Installation from build release #4

Open iArmanKarimi opened 1 year ago

iArmanKarimi commented 1 year ago

Is there a special way to install/run the build? I ran the powershell script and then it just created an empty folder called "bgm". I ran the .exe after that and it just shows this message: image

iArmanKarimi commented 1 year ago

I tried resizing the window. still there.

hv0905 commented 1 year ago

Sorry for the inconvenience.

The PowerShell script is just for the background music of the game. You can run the game without executing the script.

It seems that you are stuck at the window resize page. The first line is a notice that you should resize your window to 220 x 50 in order to ensure that the game can run properly. The second line tells you your current window size. After adjusting your window correctly, you can press the Enter key to start the game. On some laptop screens, you may have trouble resizing your window to 220 x 50. In this case, you can try decreasing the font size of your terminal or adjusting the DPI scaling setting of your system. If the game still won't start even after you've resized the window, please provide more information about your system and terminal to help us investigate the problem.

By the way, most of the plot-related text in the game is currently in Chinese, which may make it difficult for you to play the game smoothly (but you can still enjoy the sandbox mode :D ). We are working on an i18n feature to improve this, so stay tuned.

iArmanKarimi commented 1 year ago

I see. As you said, I'm using laptop and trying resizing to even full screen didn't suffice. It is possible to programmatically resize the window size and dpi to match the maximum size of the target screen and setting a minimum size requirement for the game. I remember playing the game some years ago. That was why I searched to find an open source version to get an inspiration because I could imagine the game playing on the terminal so I was curious how it would look. Finally, I appreciate the effort you put writing this game. Thanks.