ID:2534762
 
BYOND Version:513.1504
Operating System:Windows 7 Pro 64-bit
Web Browser:Chrome 79.0.3945.88
Applies to:Dream Seeker
Status: Unverified

Thus far we've been unable to verify or reproduce this bug. Or, it has been observed but it cannot be triggered with a reliable test case. You can help us out by editing your report or adding a comment with more information.
Descriptive Problem Summary:
When you directly reference the source by name in ImportText, it doesn't work, even tho doing the same thing with ExportText works.

Numbered Steps to Reproduce Problem:
Directly reference by name a source file to Import text from.

Code Snippet (if applicable) to Reproduce Problem:
var/savefile/F=new
F.ImportText(,"savetest.txt")
var/bla=""
F["test"] >> bla
world.log<<bla


Expected Results:
Text is imported, and the output shows what I pick

Actual Results:
Text isn't imported, so the output is blank

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

When does the problem NOT occur?
Never


Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Not that I know of

Workarounds:
Defining the file beforehand
var/txtfile = file("savetest.txt")
var/savefile/F=new
F.ImportText(,txtfile)
var/bla=""
F["test"] >> bla
world.log<<bla

Please post your text file too.
In response to Lummox JR
test = "blabla"
test2 = "blabla2"
test3 = "blabla3"
Bumpity
Are you sure this isn't just user error? The first argument should be "/", not null.
In response to Lummox JR
Yes, I'm sure. Tested it with "/" as the first argument and it still didn't work. Having it as null works with the workaround tho, so it shouldn't be a problem anyhow.
Lummox JR changed status to 'Unverified'
In response to Lummox JR
So you can use the Code Snippet above and have it return a value of the textfile I also sent above?