Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Support #48

Closed
keysrun opened this issue Aug 29, 2022 · 19 comments
Closed

Windows Support #48

keysrun opened this issue Aug 29, 2022 · 19 comments
Labels
help wanted Extra attention is needed research-needed

Comments

@keysrun
Copy link

keysrun commented Aug 29, 2022

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.

@dmadisetti
Copy link
Owner

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

@dmadisetti dmadisetti changed the title Is it possible to run steam-tui on windows 10? Windows Support Aug 29, 2022
@dmadisetti dmadisetti added help wanted Extra attention is needed research-needed labels Aug 29, 2022
@keysrun
Copy link
Author

keysrun commented Aug 30, 2022

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

@dmadisetti
Copy link
Owner

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).

@keysrun keysrun closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2022
@keysrun
Copy link
Author

keysrun commented Aug 30, 2022

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

cmd_pHvFMZifzf

@keysrun keysrun reopened this Aug 30, 2022
@keysrun
Copy link
Author

keysrun commented Aug 30, 2022

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

@dmadisetti
Copy link
Owner

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

@keysrun
Copy link
Author

keysrun commented Sep 1, 2022

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

@dmadisetti
Copy link
Owner

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

@keysrun
Copy link
Author

keysrun commented Sep 1, 2022

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

@dmadisetti
Copy link
Owner

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

@keysrun
Copy link
Author

keysrun commented Sep 1, 2022

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

@keysrun
Copy link
Author

keysrun commented Sep 5, 2022

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

@Terraphice
Copy link

Ah, what a shame. Another TUI without Windows support... 😞

@Tom60chat
Copy link

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)

@dmadisetti
Copy link
Owner

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

@dmadisetti
Copy link
Owner

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

@guihkx
Copy link

guihkx commented May 24, 2024

@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...

@dmadisetti
Copy link
Owner

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

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

@guihkx
Copy link

guihkx commented May 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed research-needed
Projects
None yet
Development

No branches or pull requests

5 participants