Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change the resolution by command line! #134173
06/06/07 07:44
06/06/07 07:44
Joined: May 2007
Posts: 14
N
nz2004 Offline OP
Newbie
nz2004  Offline OP
Newbie
N

Joined: May 2007
Posts: 14
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?

Re: Change the resolution by command line! [Re: nz2004] #134174
06/06/07 07:57
06/06/07 07:57
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
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

Last edited by tompo; 06/06/07 08:02.

Never say never.
Re: Change the resolution by command line! [Re: tompo] #134175
06/06/07 10:04
06/06/07 10:04
Joined: May 2007
Posts: 14
N
nz2004 Offline OP
Newbie
nz2004  Offline OP
Newbie
N

Joined: May 2007
Posts: 14
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

Re: Change the resolution by command line! [Re: nz2004] #134176
06/06/07 12:07
06/06/07 12:07
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
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.





Re: Change the resolution by command line! [Re: Xarthor] #134177
06/06/07 13:43
06/06/07 13:43
Joined: May 2007
Posts: 14
N
nz2004 Offline OP
Newbie
nz2004  Offline OP
Newbie
N

Joined: May 2007
Posts: 14
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 !??!!)

Re: Change the resolution by command line! [Re: nz2004] #134178
06/06/07 16:38
06/06/07 16:38
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
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);
}
}




xXxGuitar511
- Programmer
Re: Change the resolution by command line! [Re: xXxGuitar511] #134179
06/07/07 06:24
06/07/07 06:24
Joined: May 2007
Posts: 14
N
nz2004 Offline OP
Newbie
nz2004  Offline OP
Newbie
N

Joined: May 2007
Posts: 14
Thank you very much!

Now I get the Error message "Nexus too small"


What does that mean?

Re: Change the resolution by command line! [Re: nz2004] #134180
06/07/07 06:27
06/07/07 06:27
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
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...


xXxGuitar511
- Programmer
Re: Change the resolution by command line! [Re: xXxGuitar511] #134181
06/07/07 06:32
06/07/07 06:32
Joined: May 2007
Posts: 14
N
nz2004 Offline OP
Newbie
nz2004  Offline OP
Newbie
N

Joined: May 2007
Posts: 14
Thanks, just increased it to 200 and it works fine now :-) Thanks for your help!


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1