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

play_abstreet.bat doesn't do anything #1093

Closed
abirstolov opened this issue Jul 23, 2023 · 5 comments
Closed

play_abstreet.bat doesn't do anything #1093

abirstolov opened this issue Jul 23, 2023 · 5 comments
Labels
good first issue Good for newcomers

Comments

@abirstolov
Copy link

abirstolov commented Jul 23, 2023

This is result I'm getting when running play_abstreet.bat

C:\abstreet_windows_v0_3_45>set RUST_BACKTRACE=1

C:\abstreet_windows_v0_3_45>./binaries/game.exe  1>output.txt 2>&1

And nothing is running.

Env. is Windows 10 /w PowerShell / Cmd shell
Files were extracted from abstreet_windows_v0_3_45.zip

@dabreegster dabreegster added the good first issue Good for newcomers label Jul 23, 2023
@dabreegster
Copy link
Collaborator

Hi! I don't have a Windows machine handy to work on this, unfortunately.

Things to try:

  1. See if an output.txt file got created, and send the contents here if so
  2. You could try opening a Powershell or other terminal and mimicking what those two commands do, to see if it helps
  3. Or run in your browser (slower and some features limited though): https://play.abstreet.org/0.3.45/abstreet.html

@sjdunbar93
Copy link

In 0.3.43, game.exe was within the root folder and the .bat just called game.exe directly
game.exe 1> output.txt 2>&1

In 0.3.44, game.exe was put into a Binaries folder and play_abstreet is now:
./binaries/game.exe 1> output.txt 2>&1

The output file reads
'.' is not recognized as an internal or external command,
operable program or batch file.

The problem is that the .bat file should use "" for delimiters instead of "/". If you replace them manually then the game and the subexes work fine. If you manually launch game.exe then the game will exit if you try to enter a subfunction from the game.

@dabreegster
Copy link
Collaborator

Hi @sjdunbar93, please give https://github.com/a-b-street/abstreet/releases/tag/v0.3.48 a try. I fixed the directory separators, but I'm still not totally sure Windows can handle ".\binaries\foo.exe", or all of the STDOUT/STDERR redirection options. If this new build doesn't work, I might ask your help modifying the .bat files and trying a few more things. I don't have a Windows system available to test this myself

@sjdunbar93
Copy link

New release appears to run without issue.

@dabreegster
Copy link
Collaborator

Fantastic, thanks for confirming! Andy is working on making these scripts even more robust, but I'll close out this issue unless someone else has trouble with Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants