ID:96371
 
Not a bug
BYOND Version:468
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Firefox 3.6.3
Applies to:DMBs
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
Running:

C:\>Exhibit.dmb -params input1.txt

Does not populate world.params. Instead, the following is required:

C:\>"C:\Program Files (x86)\BYOND\bin\dreamdaemon.exe" Exhibit.dmb -params input1.txt


Numbered Steps to Reproduce Problem:
See above.

Code Snippet (if applicable) to Reproduce Problem:
world/New()
var/p
if(params.len) world.log << "Command-line parameters:"
for(p in params)
world.log << "[p] = [params[p]]"


Expected Results:
When a dmb is instantiated from the command line and the params option is given, world.params should be set.

Actual Results:
It's not.
I tested to be sure world.params would load correctly from the command line and found that it does work, when used as according to the reference entry for startup(). The reference says that the -params value must be an actual parameter list, and does not mention any ability to load params from a file. There appears to be no functionality in the code or mentioned in any reference material for loading world.params from a file.

[edit]
I partially misread your report, actually. There is a separate issue here that is also not a bug, which is that these same command-line parameters are not supported by Dream Seeker, the program that is actually associated with .dmb files. I'm not even positive that launching a file through Windows' file association methods would properly apply subsequent command-line arguments, but it's moot because DS doesn't use them.