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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 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
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 | 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