Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (sleakz, AndrewAMD), 684 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
video_switch problem #167904
11/17/07 04:29
11/17/07 04:29
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline OP
User
Emre  Offline OP
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Hi.
if i use the video_switch code 3 time(one after the other), my game is shutting down.

If (my engine version ==7.04){not video_switch problem.}
But
if (my engine version==7.06){video_switch problem!}

is this a v7.06's bug?

Sorry.. i can't speak english...

Re: video_switch problem [Re: Emre] #167905
11/17/07 05:39
11/17/07 05:39
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Can you post your video_switch function? Maybe this belongs in C-Script/Lite-C forum though.


smile
Re: video_switch problem [Re: D3D] #167906
11/17/07 06:17
11/17/07 06:17
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline OP
User
Emre  Offline OP
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Maybe. But if i use the v7.04, no problem. All normal.
"My video switch problem" in the v7.06 only.

Edit: i use the c-script.

Last edited by emre; 11/17/07 07:05.
Re: video_switch problem [Re: Emre] #167907
11/17/07 06:45
11/17/07 06:45
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Just tried video_switch with C-Script A7.06.1 and the only problem i'm having is that it doesn't switch to resolution 1280x1024 while it should. For now it stays on 1024x768 and I needed to press F5 to set it higher. No crash though. Without your video_switch function it's not easy to replicate the trouble.


smile
Re: video_switch problem [Re: D3D] #167908
11/19/07 10:20
11/19/07 10:20
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Yes, for helping I'd need the part of the code where the problem happens, and the acklog.txt when a shutdown occurs.

Re: video_switch problem [Re: jcl] #167909
11/19/07 22:50
11/19/07 22:50
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline OP
User
Emre  Offline OP
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Sorry.. Maybe this is not bug.
But i don't know why.
if i use the code:
function 800_600()
{
video_switch(7,0,0);
}
on_f1 800_600;
function 1024_768()
{
video_switch(8,0,0);
}
on_f2 1024_768;
function 1280_1024()
{
video_switch(9,0,0);
}
on_f3 1280_1024;

No problem... Normal.
----------------------------------------------------------
acklog.txt
----------------------------------------------------------
Log of A7 Engine 7.06.1 run at Mon Nov 19 21:40:16 2007
Feylesof on Windows NT/2000/XP version 5.1 Build 2600
Options Pantharay.wdl -diag -ta

App C:\Program Files\GStudio7\acknex.exe in I:\Pantharay\
MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
A7 Engine - Pro Edition V7.06.1 - Sep 30 2007
Development version
Registered to: EMRE SASMAZ

Mouse found
SB Live! Audio [DF80] opened
RADEON 9800 PRO pure T&L device 1ff9 detected
D3D device RADEON 9800 PRO 1ff9 selected
Compiling PANTHARAY.WDL - [Esc] to abort....
PATH C:\Program Files\GStudio7\code\
PATH template_6\
PATH template_6\code\
PATH template_6\images\
PATH template_6\sounds\
PATH template_6\models\
PATH kodlar\
PATH modeller\
PATH materyal\
PATH bmaplar\
PATH sesler\
PATH fx\
PATH weather\
PATH template\
PATH paneller\
PATH save\
PATH videolar\
PATH SLX3Content\................................................................................................................................................................
newton.dll opened
Running PANTHARAY.WDL.
163 objects
D3D_Init Screen: 1024x768x-9 -> Screen: 2x1024x768x32
Video memory found: 229 MB
Main started
kamera_deneme_startup started
PP_Init_Effect_startup started
PP_Init_startup started
NewtonMain started
text_ortala_startup started
center_panel2_startup started
kafa_ent_startup started
Trigger00_Init started
Camera1stPerson01_Init started
CameraSelect_Init started
kos_sesi started
PlBipedInput01_Init started
CameraTarget_Init started
PlSelect_Init started
Display00_Init started
Main loop..
WDL-Loaded:cameraFirstPerson01.wdl
WDL-Loaded:cameraSelect.wdl
WDL-Loaded:plBipedInput01.wdl
WDL-Loaded:cameraTarget.wdl
WDL-Loaded:display00.wdl.......
HEADRELATIVE sound: 1ok
1st frame - 234496K.. ok
D3D_Resize Screen: 800x600 -> Screen: 2x800x600x32
D3D_Resize Screen: 1024x768 -> Screen: 2x1024x768x32
D3D_Resize Screen: 1280x1024 -> Screen: 2x1280x1024x32
D3D_Resize Screen: 1024x768 -> Screen: 2x1024x768x32
D3D_Resize Screen: 800x600 -> Screen: 2x800x600x32

Normal exit
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,physics,nexus..ok
A7 Engine - Pro Edition V7.06.1 - Sep 30 2007
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
Registered to: EMRE SASMAZ
Close window
----------------------------------------------------------------
----------------------------------------------------------------
NO PROBLEM.

But i use the panel&button(my mainmenu)
example:
button = 1, 1, eight, eight, eightblue, 800_600(),NULL, button_sound;
""""""""""""""""""""""""""""""""""""""""1024_768(),"""""""""""""";
""""""""""""""""""""""""""""""""""""""""1280_1024(),"""""""""""""";
function 800_600()
{
video_switch(7,0,0);
}
function 1024_768()
{
video_switch(8,0,0);
}
function 1280_1024()
{
video_switch(9,0,0);
}




if i change the video mode in the main menu(button function)
---------------------------------------------------------
acklog.txt
---------------------------------------------------------
Log of A7 Engine 7.06.1 run at Mon Nov 19 21:39:41 2007
Feylesof on Windows NT/2000/XP version 5.1 Build 2600
Options Pantharay.wdl -diag -ta

App C:\Program Files\GStudio7\acknex.exe in I:\Pantharay\
MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
A7 Engine - Pro Edition V7.06.1 - Sep 30 2007
Development version
Registered to: EMRE SASMAZ

Mouse found
SB Live! Audio [DF80] opened
RADEON 9800 PRO pure T&L device 1ff9 detected
D3D device RADEON 9800 PRO 1ff9 selected
Compiling PANTHARAY.WDL - [Esc] to abort....
PATH C:\Program Files\GStudio7\code\
PATH template_6\
PATH template_6\code\
PATH template_6\images\
PATH template_6\sounds\
PATH template_6\models\
PATH kodlar\
PATH modeller\
PATH materyal\
PATH bmaplar\
PATH sesler\
PATH fx\
PATH weather\
PATH template\
PATH paneller\
PATH save\
PATH videolar\
PATH SLX3Content\................................................................................................................................................................
newton.dll opened
Running PANTHARAY.WDL.
163 objects
D3D_Init Screen: 1024x768x-9 -> Screen: 2x1024x768x32
Video memory found: 229 MB
Main started
kamera_deneme_startup started
PP_Init_Effect_startup started
PP_Init_startup started
NewtonMain started
text_ortala_startup started
center_panel2_startup started
kafa_ent_startup started
Trigger00_Init started
Camera1stPerson01_Init started
CameraSelect_Init started
kos_sesi started
PlBipedInput01_Init started
CameraTarget_Init started
PlSelect_Init started
Display00_Init started
Main loop..
WDL-Loaded:cameraFirstPerson01.wdl
WDL-Loaded:cameraSelect.wdl
WDL-Loaded:plBipedInput01.wdl
WDL-Loaded:cameraTarget.wdl
WDL-Loaded:display00.wdl.......ok
1st frame - 234496K.. ok
HEADRELATIVE sound: 1
D3D_Resize Screen: 800x600 -> Screen: 2x800x600x32
D3D_DrawPrimitive: D3DERR_INVALIDCALL
D3D_Resize Screen: 1280x1024 -> Screen: 2x1280x1024x32
D3D_DrawPrimitive: D3DERR_INVALIDCALL
D3D_Resize Screen: 1024x768 -> Screen: 2x1024x768x32
D3D_DrawPrimitive: D3DERR_INVALIDCALL
D3D driver failure: D3DERR_INVALIDCALL - any key to abort
Program aborted
(SHUTDOWN)
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,physics,nexus..ok
A7 Engine - Pro Edition V7.06.1 - Sep 30 2007
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
Registered to: EMRE SASMAZ
Close window
---------------------------------------------------------
---------------------------------------------------------

Re: video_switch problem [Re: Emre] #167910
11/20/07 08:59
11/20/07 08:59
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Oh yes. You can not call video_switch in an event function!

If you want to switch the resolution on a button click, use:

function 800_600()
{
wait(1);
video_switch(7,0,0);
}

Re: video_switch problem [Re: jcl] #167911
11/20/07 10:58
11/20/07 10:58
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline OP
User
Emre  Offline OP
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
O.k. Jcl. i'm sorry ... And very thanks...


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