The Dream Maker's compiler fails to read the file specified in an #include if the file specification ends with the line terminator character(s).
Numbered Steps to Reproduce Problem:
1. Create two .dm files. Don't include both from the .dme.
2. Include one of the .dm files in the other.
3. Include the dm file containing the include.
4. Make sure that the file end chars are on the same line and there are no comments after it.
Code Snippet (if applicable) to Reproduce Problem:
// File A.dm
#include "B.dm"<CR/LF>
// File B.dm
proc/MyFunc(...)
// Do something...
Expected Results:
Compiler treats the line terminator as whitespace
Actual Results:
Compiler treats the line terminator as an actual character part of the "B.dm" argument.
Does the problem occur:
Every time? Or how often?
Always as long the line terminator is not on its own line or separated by a comment between the #include and the terminator.
In other games?
N/A
In other user accounts?
N/A
On other computers?
Unknown for Linux
When does the problem NOT occur?
See workarounds
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unknown
Workarounds:
// First solution
#include "B.dm" // blah blah <CR/LF>
// Second solution
#include "B.dm"
<CR/LF>
Additional note: I was using the Dream Maker to write these include files and code. Results may differ between OS and IDEs/editors due to different standards regarding line terminators.