[Solved] Strange behaviour of require on different Windows..
Posted: Fri Jan 31, 2014 12:10 pm
Hey everybody,
Today, I had a very strange problem: A love file that is working without a single problem on my PC (Windows 8.1 64 bit) fails to require a file on another PC (Windows 7 64 bit). Especially, the required file is in a sub-directory and is required from a thread.
It seems that the thread might cause the problem, because some quick tests indicate that files are loaded perfectly from within a subdirectory if require is not called from within a thread. The love file I have attached demonstrates this (somewhat): If run on my PC, it outputs "I was loaded" to the attached console. However, it doesn't output anything (not even an error, which is even more strange) on the other guy's PC.
I will try to replicate the exact error (failing to require a file) in an MWE (http://meta.tex.stackexchange.com/quest ... at-is-that) so that I don't have to include the whole source code. But basically, it really just starts a thread which, in turn, requires the file from the subdirectory.
So, the basic question is: Are there any known issues concerning the loading of lua files from a subdirectory, possibly in relation to using threads?
Cheers,
Henrik
Today, I had a very strange problem: A love file that is working without a single problem on my PC (Windows 8.1 64 bit) fails to require a file on another PC (Windows 7 64 bit). Especially, the required file is in a sub-directory and is required from a thread.
It seems that the thread might cause the problem, because some quick tests indicate that files are loaded perfectly from within a subdirectory if require is not called from within a thread. The love file I have attached demonstrates this (somewhat): If run on my PC, it outputs "I was loaded" to the attached console. However, it doesn't output anything (not even an error, which is even more strange) on the other guy's PC.
I will try to replicate the exact error (failing to require a file) in an MWE (http://meta.tex.stackexchange.com/quest ... at-is-that) so that I don't have to include the whole source code. But basically, it really just starts a thread which, in turn, requires the file from the subdirectory.
So, the basic question is: Are there any known issues concerning the loading of lua files from a subdirectory, possibly in relation to using threads?
Cheers,
Henrik