When loading a .dme file which has a comment immediately following an #include line (see example code), Dream Maker does not seem to be aware that the filename given in the #include line has ended, thinking the comment is part of the filename for some reason.
As a result, when such a file is loaded, it gives a message saying it'll remove the line. It does not actually remove the line, but I believe this is another, separate bug.
Numbered Steps to Reproduce Problem:
1. Write an #include in the .dme file, featuring a comment at the end, preferably outside the BEGIN_ and END_ blocks.
2. Save the .dme file.
3. Open the .dme file, either via Open Environment or Recent Environments.
Code Snippet (if applicable) to Reproduce Problem:
#include "Definitions.dm" //Should always be included before other files.
// BEGIN_INCLUDE
#include "Creatures.dm"
#include "Game.dm"
// END_INCLUDE
Expected Results:
For no message to be given, and the file to load (and compile) smoothly as if the comment line wasn't there.
Actual Results:
It gives a message saying it will remove the #include line with a comment, suggesting the comment is part of the filename. In the case of the example, the exact message is:
#included file 'Definitions.dm" \\Should always be included before other files' does not exist: removing
Does the problem occur:
Every time? Or how often? It occurs whenever the conditions are right - eg if a comment is on the same line as the #include, in a .dme file. Does not happen in .dm files.
In other games? Unknown. I assume it does, however.
In other user accounts? Unknown, but I do not believe user account is a variable contributing to this bug.
On other computers? Unknown.
When does the problem NOT occur?
When there's no comment on the #include line, or when the #include is in a .dm file instead of a .dme file.
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. It occurred on 461 as well, however.
Workarounds:
Place comments before (or after) #include lines, rather than on the same line.
For example:
//Should always be included before other files.
#include "Definitions.dm"
// BEGIN_INCLUDE
#include "Creatures.dm"
#include "Game.dm"
// END_INCLUDE