Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (vicknick), 776 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Sky Cube Cscript Tutorial New (Workshop 13 ) [Re: fifoulein] #98947
11/23/06 18:39
11/23/06 18:39
Joined: Jul 2005
Posts: 34
F
fifoulein Offline OP
Newbie
fifoulein  Offline OP
Newbie
F

Joined: Jul 2005
Posts: 34
I texured the skycube with "skywhite" from the standard wad file and compiled it. Running the script below works with the pan and tilt functions. I see the sky. However changing the brightness via the functions bright_lights() and dim_lights() still gives that irritating error message "empty pointer in bright_lights()...".
Basically, these two functions should work, since I defined the skycube as "sky" within WED. Therefore the sky_cube_level pointer should be defined and not NULL. I don't get it.

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

var video_mode = 7; // 800x600 pixels
var video_depth=32;

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

function bright_lights()
{
sky_cube_level.blue += 10;
sky_cube_level.green += 10;
sky_cube_level.red += 10;
}

function dim_lights()
{
sky_cube_level.blue -= 10;
sky_cube_level.green -= 10;
sky_cube_level.red -= 10;
}

function main()
{

level_load ("work13.wmb");



while (1)
{
on_1 = bright_lights;
on_2 = dim_lights;
if (key_w == ON)
{
camera.tilt += 1;
}
if (key_s == ON)
{
camera.tilt -= 1;
}
if (key_a == ON)
{
camera.pan += 1;
}
if (key_d == ON)
{
camera.pan -= 1;
}
if (key_lastpressed == 19) // if [R] is pressed
{
camera.pan = 0;
camera.tilt = 0;
sky_cube_level.blue = 128; // medium brightness
sky_cube_level.green = 128;
sky_cube_level.red = 128;
}
wait (1);
}
}

Re: Sky Cube Cscript Tutorial New (Workshop 13 ) [Re: vlau] #98948
11/23/06 18:52
11/23/06 18:52
Joined: Jul 2005
Posts: 34
F
fifoulein Offline OP
Newbie
fifoulein  Offline OP
Newbie
F

Joined: Jul 2005
Posts: 34
Where in the forum can I download version 6.50.2 ? (please)

Re: Sky Cube Cscript Tutorial New (Workshop 13 ) [Re: fifoulein] #98949
11/24/06 06:30
11/24/06 06:30
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
You can find it in Updates and Announcements forum.

Re: Sky Cube Cscript Tutorial New (Workshop 13 ) [Re: vlau] #98950
11/24/06 16:33
11/24/06 16:33
Joined: Jul 2005
Posts: 34
F
fifoulein Offline OP
Newbie
fifoulein  Offline OP
Newbie
F

Joined: Jul 2005
Posts: 34
Sorry, same problem. The update to 6.50.2 doesn't update my standard.wad file.
(Even though I followed your instructions.)

Re: Sky Cube Cscript Tutorial New (Workshop 13 ) [Re: fifoulein] #98951
11/24/06 16:58
11/24/06 16:58
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Ok, you may ask Conitec, I have the similar problem
as I open and compile workshop19\work19.wmp, texture
floor001 is missed.

Re: Sky Cube Cscript Tutorial New (Workshop 13 ) [Re: vlau] #98952
11/26/06 10:51
11/26/06 10:51
Joined: Jul 2005
Posts: 34
F
fifoulein Offline OP
Newbie
fifoulein  Offline OP
Newbie
F

Joined: Jul 2005
Posts: 34
Thanks for your support!

Page 2 of 2 1 2

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