question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where is the read folder?

See original GitHub issue

expected behaviour

Bot reads some file from C:\Users\fractal\AppData\Roaming\scbw\bots\Hao Pan\read

actual behaviour

The bot doesn’t read anything from there.

steps to reproduce

In PowerShell, run scbw.play --bots Iron Hao --headless

Please run the command issued with --log_level=DEBUG parameter and log:

scbw.play --bots Iron Hao --headless --log_level=DEBUG
msg1 msg2 msg3

operating system

win (Windows 10 Pro)

Ubuntu lsb_release -a:

docker version

output of command docker version: Client: Version: 17.09.0-ce API version: 1.32 Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:40:09 2017 OS/Arch: windows/amd64

Server: Version: 17.09.0-ce API version: 1.32 (minimum version 1.12) Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:45:38 2017 OS/Arch: linux/amd64 Experimental: true

scbw version

output of command scbw.play -v

0.2b3

Additional Comments: I am not sure if C:\Users\fractal\AppData\Roaming\scbw\bots\Hao Pan\read is the right path where my bot would read stuff from. If that is the case, should the file structure be set up like the one in …\write folder (a folder for each game). If that’s not the case, where does the bot read files from in each game?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:40 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kant2002commented, Feb 27, 2018
  1. If you will give unique name and you will be fine, but possible that you forget again, and will troubleshoot it. So better either avoid --game_name=XXX or put that in the script which will cleanup files for you. That’s my recommendation, but @michalsustr may have different one.
  2. Looks like you should pass --read_overwrite which in my understanding will automatically copy files from write folder, to read folder after game completed.

So if you want to run 2 games consequentially,

scbw.play --bots "Hao Pan" CherryPi --headless --read_overwrite
scbw.play --bots "Hao Pan" CherryPi --headless --read_overwrite

that way files Halo_Vs_CherryPi* will be written to read folder automatically and you will see files in the second game. This is also match behavior of the SSCAIT on my understanding.

The idea why --read_overwrite is not default, is to support reproducibility out of the box. SSCAIT behavior is probably good for testing, but not give 100% confidence that everything is working correctly.

0reactions
michalsustrcommented, Mar 1, 2018

Thanks @kant2002 for the help! I guess we can close this now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading Folder Teaching Resources - TPT
Browse reading folder resources on Teachers Pay Teachers, a marketplace trusted by millions of teachers for original educational ...
Read more >
Restore the Unread Mail folder - Microsoft Support
In Mail, on the File menu, point to New, and then click Search Folder. Tip: You can also open the New Search Folder...
Read more >
How to read all files in a folder from Java? - Stack Overflow
List<File> filesInFolder = Files. walk(Paths. get("/path/to/folder")) . filter(Files::isRegularFile) .
Read more >
36 Reading Folders ideas - Pinterest
Mar 7, 2020 - Explore Leah Russell's board "Reading Folders" on Pinterest. See more ideas about reading classroom, teaching reading, ...
Read more >
Python - List Files in a Directory - GeeksforGeeks
Read ; Discuss(1); Courses; Practice; Video. Improve Article ... print ( "Python Program to print list the files in a directory." ).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found