BYOND Version:511
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 57.0.2987.133
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:

world.log can't create new directories, only write to existing ones.

Numbered Steps to Reproduce Problem:

1) Set world.log to something like "logs/log.txt"
2) Make sure the "logs" directory doesn't exit.
3) Find that world.log acts as if it's not set to a file.
4) Create the "logs" directory.
5) Find the world.log works as expected.

Code Snippet (if applicable) to Reproduce Problem:
world.log = "logs/log.txt"

Expected Results:

It to create the "logs" directory like every other file I/O operation does.

Actual Results:

world.log outputs to O&M (and the default output control) as if it's not pointing at a valid file. No file is created.

Does the problem occur:
Every time? Or how often? Every time.
In other games? Assume so
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur?

When creating the directory before writing to world.log.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit to download old versions for testing.)

I'm pretty sure it would have been reported already if it was happening in older versions, but I can't really test it.


Use text2file() to write to world.log first.

text2file("Beginning log",world.log)