Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 10:49
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, alx, Martin_HH), 6,129 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Engine commands, set the resolution #6988
09/12/01 05:26
09/12/01 05:26

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



How do you set the resolution of the game trough command line? I have tried -d 800x600x16 but that didn't worked...

Nemo


Re: Engine commands, set the resolution #6989
09/12/01 05:34
09/12/01 05:34
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
try this :

code:
IFDEF VIDEO6;
Var video_mode = 6;//640 x 480
ENDIF;
IFDEF VIDEO7;
Var video_mode = 7;//800 x 600
ENDIF;
IFDEF VIDEO8;
Var video_mode = 8;//1024 x 768
ENDIF;

and type-d video7 or-d video8 or-d video6 in command line or in your line of command in the file of starting up .bat




Re: Engine commands, set the resolution #6990
09/12/01 05:40
09/12/01 05:40

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



That didn't worked or I did something wrong, I tried to put that into the main function of the script, but do I need to add other things as well?

What I mean is, in the (standard output)script you see that the starting resolution is defined as:

var video_mode = 6;
var video_depth = 16;

do I need to add these there too?

var video_mode = 7;
var video_depth = 16;
var video_mode = 8;
var video_depth = 16;

Furthermore do I need to add the IFDEF's in a particular place or can they be put in the main function of the game script?

Nemo


Re: Engine commands, set the resolution #6991
09/12/01 16:51
09/12/01 16:51
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
quote:
The current video mode. Cannot be set directly by a function, but can be defined with a starting
value to select the video mode in which the engine should start. During game play, this
variable can only be changed through the switch_video instruction

In what concerns me I put the code instead of The
var video_mode = 6;



Re: Engine commands, set the resolution #6992
09/13/01 07:32
09/13/01 07:32

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Have you tried 'publishing'? I have found that the various video mode switches often (always?)do not work when you 'run' them, but do work when you 'publish'.

All that is except bit depth. That seems only to work for a var definition (the manual is ambiguous, with one part saying you can switch bit depth and one part saying you cannot - probably the latter is correct)

Ed


Re: Engine commands, set the resolution #6993
09/12/01 23:58
09/12/01 23:58

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I think I need to be more specific here, what I'm doing is creating a special program to run my game, this program enables the user to run the game in a specific resolution and select other options as well. You ask if the game is built? Yes this is the case and with preview off!

What I would like to understand is we're to put the IFDEF's and if I need to put some var's into the script and where to put them too. Furthermore I don't know if I should use IFDEF's or DEF's any help would be greatly appreciated.

From al1 I received a piece of code and use that for my game:

code:

IFDEF VIDEO6;
Var video_mode = 6; //640 x 480
ENDIF;
IFDEF VIDEO7;
Var video_mode = 7; //800 x 600
ENDIF;
IFDEF VIDEO8;
Var video_mode = 8; //1024 x 768
ENDIF;

No my special program start the game like this (trough a shell command): "game.exe -d video8"
or "game.exe -wnd" the last works but the first not!

Nemo


Re: Engine commands, set the resolution #6994
09/13/01 17:35
09/13/01 17:35
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
try this, it work

//////////////////////////////////////////////////////////

var video_mode =5;
IFDEF VIDEO6;
Var video_mode = 6; //640 x 480
ENDIF;
IFDEF VIDEO7;
Var video_mode = 7; //800 x 600
ENDIF;
IFDEF VIDEO8;
Var video_mode = 8; //1024 x 768
ENDIF;

string hello = "hello";

text screen_txt // l'objet texte pour afficher notre chaîne de caractère
{
font = _a4font; // fonte standard
pos_x = 5; // le texte commence à la position de l'écran (5,40) en pixels
pos_y = 40;
}
function print(str) // affiche un paramètre string à l'écran
{
screen_txt.string = str;
screen_txt.visible = on;
}

function main()
{
screen_color.blue = 128; // met un fond bleu foncé
print(hello); // affiche la chaîne
}

Also executable version. Start =>execute =>
"Y:\_tut\tutorial.cd\tutorial.exe" -d video6


Re: Engine commands, set the resolution #6995
09/14/01 02:33
09/14/01 02:33

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



This one does work, my bad!

Nemo



Moderated by  HeelX, Spirit 

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