ID:1134138
 
(See the best response by Jemai1.)
I'm having a problem:when i start a world with params, world.params is empty.

"HIDESEEK.dmb" -params"name1=value1&name2=value2"
        prm()
world << "prm"
var/pr
if(world.params.len) world << "Command-line parameters:"
for(pr in world.params)
world.log << "[pr] = [world.params[pr]]"

        statpanel("P",world.params)
i tried
<code>HIDESEEK.dmb -params name1=value1;name2=value2</code>
but doesn't works
Try:
"HIDESEEK.dmb" -params "name1=value1&name2=value2"

The space after the -params is necessary, I'd think.
In response to Super Saiyan X
Super Saiyan X wrote:
Try:
"HIDESEEK.dmb" -params "name1=value1&name2=value2"

The space after the -params is necessary, I'd think.

it didn't work.
world.log <<

Change this to
world <<


world.log outputs to the log file, or the DD.

So:
command line
"HIDESEEK.dmb" -params "name1=value1&name2=value2"
and
        prm()
world << "prm"
var/pr
if(world.params.len) world << "Command-line parameters:"
for(pr in world.params)
world << "[pr] = [world.params[pr]]"
In response to Super Saiyan X
Super Saiyan X wrote:
world.log <<

Change this to
world <<

world.log outputs to the log file, or the DD.

So:
command line
"HIDESEEK.dmb" -params "name1=value1&name2=value2"
and
>         prm()
> world << "prm"
> var/pr
> if(world.params.len) world << "Command-line parameters:"
> for(pr in world.params)
> world << "[pr] = [world.params[pr]]"
>


but doesn't work
Seems to work fine for me.

How exactly are you using that command line entry?
with .bat files
Have you tried it with the entire -params in quotes?
"HIDESEEK.dmb" "-params name1=value1&name2=value2"
yes but not worked
Best response
It seems -params is only available for Dream Daemon. Dream Seeker does not support it.

"C:\Program Files\BYOND\bin\dreamdaemon.exe" HIDESEEK.dmb -params name1=value1&name2=value2
In response to Jemai1
Jemai1 wrote:
It seems -params is only available for Dream Daemon. Dream Seeker does not support it.

> "C:\Program Files\BYOND\bin\dreamdaemon.exe" HIDESEEK.dmb -params name1=value1&name2=value2
>


It worked butt i need replace "&" with ";"
"C:\Program Files\BYOND\bin\dreamdaemon.exe" HIDESEEK.dmb -params name1=value1&name2=value2
Oh, yea. That should be ;. I copy-pasted yours/SSX's so I didn't notice.