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
1 registered members (TipmyPip), 18,388 guests, and 6 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
why i cannot run this code ?!?! #183881
02/14/08 15:55
02/14/08 15:55
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
hi .
why i cannot run this code ?!?!
Read only video_mode


#include <acknex.h>
#include <default.c>


function main()
{
video_mode = 6; // create a program window of 640x480 pixels
vec_set(screen_color, vector(255, 100, 100)); // make the background color blue
}


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: why i cannot run this code ?!?! [Re: fat32] #183882
02/14/08 16:13
02/14/08 16:13

A
Anonymous
Unregistered
Anonymous
Unregistered
A



works on my site perfect.
What error/problem do you get?

Re: why i cannot run this code ?!?! [Re: fat32] #183883
02/14/08 16:19
02/14/08 16:19
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
I'm not sure but I think you cant set video_mode directly like this.
Maybe u have to use video_switch or video_set.


I like good 'views' because they have no 'strings' attached..
Re: why i cannot run this code ?!?! [Re: zazang] #183884
02/14/08 18:18
02/14/08 18:18
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
this is a example lite c code of aum 68 or 69 .
please use a example of lite c for me

all code is there and no more.and my problem Read only video_mode

thanks


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: why i cannot run this code ?!?! [Re: fat32] #183885
02/14/08 18:35
02/14/08 18:35
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Tested with A7.07.5 (Lite-C) and works without problem. But you don't really need to set video_mode=6; though. 640x480 is default resolution already. You could use video_set from there to change to a higher resolution.


smile
Re: why i cannot run this code ?!?! [Re: D3D] #183886
02/14/08 22:07
02/14/08 22:07
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
i want test lite c script

thanks all


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: why i cannot run this code ?!?! [Re: fat32] #183887
02/15/08 09:21
02/15/08 09:21
Joined: Feb 2008
Posts: 9
Germany, Cologne
dinosaur Offline
Newbie
dinosaur  Offline
Newbie

Joined: Feb 2008
Posts: 9
Germany, Cologne
Hi fat32,

you should save your script with .c extension.

if you save it as .wdl it will not work.


regards dinosaur

Re: why i cannot run this code ?!?! [Re: dinosaur] #183888
02/15/08 11:02
02/15/08 11:02
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
Quote:

Hi fat32,

you should save your script with .c extension.

if you save it as .wdl it will not work.


regards dinosaur




thanks i test that


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: why i cannot run this code ?!?! [Re: fat32] #183889
02/15/08 11:09
02/15/08 11:09
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
thanks dinosaur you solution my problem


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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