dmadisetti/steam-tui

Windows Support

keysrun opened this issue ยท 19 comments

Hello. My question is - is it possible to somehow run and use steam-tui on windows 10. I only managed to install steamcmd. It is not clear how to start binary.

Good question. Maybe through WSL? I will try at add a cross platform compilation target, but my first impression is that this will require some additional work

I installed cargo, and tried to run the command cargo run , like the process went, but at the end it showed errors. Attached screenshots -
cmd_cQdbXplrmo
cmd_TcyvIG9aaV

So this is due to us using termion- which does not support linux. There is a windows patch:

[patch.crates-io]
termion = { git = "https://gitlab.redox-os.org/Jezza/termion.git", branch = "windows-support" }

and the other alternative is to use crossterm over termion (which is now the default for tui).

I moved the crossterm library to the steamcmd folder, ran steam-tui via cargo run, and other errors showed up...

cmd_pHvFMZifzf

I only used the version with the crossterm library, because I don't understand how to install this patch)

Yeah, so more needs to be done than just change the library, we have to change the code for it too. The blog I link in #50 shows some of the work required.

I don't have the bandwidth for this right now, but I think it might be a pretty simple change if you can find someone familiar with rust and tui-rs

I ran cargo run via WSL and steam-tui started up! But immediately showed an error that steamcmd was not installed (I tried to install steamcmd for windows and for linux)

cmd_41UNzsA6Tr
explorer_K36P7MorYM

Cool! I appreciate your dedication to getting this to work lol. You need to download steamcmd. You can see how we set up the test box here:

sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
echo steam steam/license note '' | sudo debconf-set-selections
sudo apt install -y lib32gcc1 steamcmd

(try running those lines)
But note, running through WSL will not be the same as running native. It will be linux gaming on windows. You will have to set up X windows for that: https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

I might be able to add crossterm sometime this weekend

I installed those components and steam-tui started showing my library! But now it's not clear to me how to configure X windows so that the games run.

cmd_FVrjveEeBd

Hmm, I thought I shared a blog about someone who does this: https://medium.com/geekculture/gaming-on-wsl-b367459f6977

Anyway, I am not sure if X will work with Windows 10. I will try to get crossterm working this evening, and then it should (maybe) run native windows

Unfortunately, I was unable to install the game. probably the only option is to wait for your upgraded version of crossterm.

hi, is there any success with running crossterm on windows?

Ah, what a shame. Another TUI without Windows support... ๐Ÿ˜ž

Just checked, you can built it for now.
The only issue I fixed it's to replace KeyCode::Char('\n') by KeyCode::Enter because the Enter key would not work.

But after that I'm stuck at login, like the app was not able to pass the login command to steamcmd.exe (And I give up here)

Do you have a branch I can see your changes @Tom60chat

Since steam tui can run custom scripts, and cross term works- I'm going to count this as won't fix / completed- since you can just rig up your script to launch windows siide

@dmadisetti Can you please consider reopening this?

While steam-tui builds just fine on Windows nowadays, I can't get past this screen:

image

It looks like steam-tui spawns steamcmd.exe just fine:

image

But my guess is that when steam-tui sends the login <user> command to steamcmd.exe, that doesn't actually work... And yes, I have followed what the README says.

I'm not a Windows programmer (though I occasionally use it for gaming), so I'm not sure how to debug this further...

Hmm, have you never been able to get past the prompt?

Mind if we open a separate issue since Windows should technically work?

Hmm, have you never been able to get past the prompt?

This is actually my first time building and running steam-tui on Windows, but yeah, I do get past the prompt asking for my Steam username. After I hit Enter, the screen from the screenshot above appears, and steam-ui seems to get stuck there.

Mind if we open a separate issue since Windows should technically work?

Sounds good to me, I'll do that shortly.