Change the resolution by command line!

Posted By: nz2004

Change the resolution by command line! - 06/06/07 07:44

Hi!

After building a level, I'd like to run it in a certain resolution.

But if I enter the following text in the command line, it has no effect at all:

"aleo.wmb -nx 30 -video_set(1280,1024,32,0)"

No matter what I type in in "-video_set", nothing changes at I always get 640*480. Is there another command for changing the resolution?
Posted By: tompo

Re: Change the resolution by command line! - 06/06/07 07:57

U can change resolution changing dispay00.wdl (if included) or adding one of those functions to your script:
1. video_switch (var res,var depth,var window)
2. video_mode
search help for those functions and further infos

video_set is good too but all of those functions you have to add to your script, not command line
Posted By: nz2004

Re: Change the resolution by command line! - 06/06/07 10:04

But I do not have a script, because I just use it for the presentation of virtual 3d-rooms. It wouldn't have been a problem with a script, but i need the command for the command line
Posted By: Xarthor

Re: Change the resolution by command line! - 06/06/07 12:07

There is no command for the command line to change the resolution as far as I know.

Check the manual page: Command Line

But if you apply a script you can do this via the command_str.
Quote:


User defined command line options can be evaluated by the engine through the command_str string.




Posted By: nz2004

Re: Change the resolution by command line! - 06/06/07 13:43

Ok then...thanks so far.

Is there a script for just moving the camera around, just like if there was no script at all?

(Did taht make sense :-D !??!!)
Posted By: xXxGuitar511

Re: Change the resolution by command line! - 06/06/07 16:38

Code:

// Mouse Sensitivity:
var mSense = 4;

// Movement Speeds:
var speedX = 20;
var speedY = 15;
var speedZ = 10;

Function camera_startup()
{
while(1)
{
camera.pan -= mouse_force.x * mSense * time_step;
camera.tilt += mouse_force.y * mSense * time_step;
//
temp.x = (key_cuu - key_cud) * speedX;
temp.y = (key_cul - key_cur) * speedY;
temp.z = (key_home - key_end) * speedZ;
vec_scale(temp, (key_shift + 1) * time_step);
vec_rotate(temp, camera.pan);
vec_add(camera.x, temp);
//
wait(1);
}
}


Posted By: nz2004

Re: Change the resolution by command line! - 06/07/07 06:24

Thank you very much!

Now I get the Error message "Nexus too small"


What does that mean?
Posted By: xXxGuitar511

Re: Change the resolution by command line! - 06/07/07 06:27

Ah, thats unrelated Nexus is simply how much memory to reserve for the level.

Open up your map properties in WED, and increase the Nexus size until it runs. I usually use a nexus of 100...
Posted By: nz2004

Re: Change the resolution by command line! - 06/07/07 06:32

Thanks, just increased it to 200 and it works fine now :-) Thanks for your help!
© 2023 lite-C Forums