Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 7th_zorro), 1,285 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
video_switch #24233
03/16/04 05:37
03/16/04 05:37
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline OP
Expert
Excessus  Offline OP
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
some time ago when i chose the resolution i chose 1280x980, i made a panel that covers the whole screen, but i didnt saw the down side, so i made it smaller in height and it looked good. later i realized it was hidden under the windows taskbar, so i decided to use fullscreenmode with the large panel.
first i tried to say(in the beginning of my script):
var video_screen = 1;
it has no result. then i tried:
video_switch(0,0,1);
it seems to switch to fullscreen(the screen becomes black for a sec and i hear my monitor "click") but then it switches to WED again and when i click it again in the taskbar it becomes black again for a sec or so and then it switches back to WED.

whats wrong?

Re: video_switch [Re: Excessus] #24234
03/18/04 20:12
03/18/04 20:12
Joined: Feb 2004
Posts: 477
Germany
jono Offline
Senior Member
jono  Offline
Senior Member

Joined: Feb 2004
Posts: 477
Germany
sorry, I can't test it, but does it generally work to give 0,0,1 ?!
The 2nd value should either 16 or 32 , shouldn't it ?!


echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc
Re: video_switch [Re: jono] #24235
03/18/04 23:27
03/18/04 23:27
Joined: Nov 2003
Posts: 1,267
ef
C
Christoph_B Offline
Serious User
Christoph_B  Offline
Serious User
C

Joined: Nov 2003
Posts: 1,267
ef
its "(resolution, color_depth, fullscreen/windowmode)"
e.g.: for a resolution of 1280x960, 16bit and fullscreen

switch_video (9, 16, 1);

the command is "switch_video", but not "video_switch".
or maybe your screen doesnīt support a resolution of 1280x960.



sef
Re: video_switch [Re: Christoph_B] #24236
03/19/04 00:46
03/19/04 00:46
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline OP
Expert
Excessus  Offline OP
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
ok, i got it to work now, but i have another question, how can i detect the windows resolution setting, because if i have 1280x960 and i make my view larger than that, the window will become minimized, and when my view is to small, the places in the window that are not covered with the view are flickering between black and WED(the program "under" A6 engine)
ofcourse i can set the resolution right for my comp, but others might have problems with it.

BTW do i have to make new panels for other resolutions or can i scale them at runtime? and how can i make sure they are placed right?

Re: video_switch [Re: Excessus] #24237
03/19/04 02:50
03/19/04 02:50
Joined: Nov 2003
Posts: 1,267
ef
C
Christoph_B Offline
Serious User
Christoph_B  Offline
Serious User
C

Joined: Nov 2003
Posts: 1,267
ef
i think a6 isnīt yet able to scale/load panels at runtime.
watch the "forecast" site for more information: http://www.conitec.net/forecast.htm


sef
Re: video_switch [Re: Christoph_B] #24238
03/20/04 02:18
03/20/04 02:18
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline OP
Expert
Excessus  Offline OP
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
and what about checking for the windows resolution setting?
is it even possible in script? or do i need SDK?

Re: video_switch [Re: Excessus] #24239
04/08/04 12:02
04/08/04 12:02
Joined: Feb 2004
Posts: 29
Fudgit Offline
Newbie
Fudgit  Offline
Newbie

Joined: Feb 2004
Posts: 29
I don't know if you still need to know this, but you can get the screen resolution inside a script using these two variables:

screen_size.x
screen_size.y

These will tell you how many pixels in width and height your screen is (which is the resolution).

Re: video_switch [Re: Fudgit] #24240
04/09/04 23:07
04/09/04 23:07

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I don't think that the variables you mentioned can access the Windows resolution settings / 3D video card driver(s).

To access the Windows/3D Card Configuration you will need to use an A5 SDK to access the Win32 API functions and gather the resolution and color depth from Windows at which resolution/color depth you're on.. Then, you can compile the code as an A5 DLL (be sure you link your A5 header, C++, and library files (lib) if 3DGS SDK comes with a lib file but I don't have an SDK)) and in C-Script, you create a DLL handle, open your newly created DLL, and call the function to get the resolution/color depth information from Windows.

I have little or no knowledge of C++ so I can't help you out with it but I hope this helps anyway. I only have experience with C# which is part of .net Framework but just to let you know (probably as a reminder), SDK doesn't support C#.

Re: video_switch #24241
04/09/04 23:28
04/09/04 23:28
Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
myrlyn68 Offline
Senior Expert
myrlyn68  Offline
Senior Expert

Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
Or...

You could use the new sys_metrics command and avoid the DLL...

The screen info from above will work as well.


Virtual Worlds - Rebuilding the Universe one Pixel at a Time. Take a look - daily news and weekly content updates.
Re: video_switch [Re: myrlyn68] #24242
04/10/04 01:11
04/10/04 01:11
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline OP
Expert
Excessus  Offline OP
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
@myrlyn68

i checked the manual for sys_metrics, but didnt find anything. Is it a C-script command? please clarify that, thx

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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