Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, Quad), 761 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
can some one help with coding error #184927
02/21/08 19:37
02/21/08 19:37
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
the error is
fighter1.wdl 62.0 error(28) keyword unknown right_helth_pan visable

fighter1.wdl 63.0 error(28) keyword unknown left_helth_pan visable

heres the source code..


path "C:\\Program Files\\GStudio6\\template"; // Path to WDL templates subdirectory


include <movement.wdl>; // libraries of WDL functions
include <messages.wdl>;
include <menu.wdl>; // menu must be included BEFORE doors and weapons
include <particle.wdl>; // remove when you need no particles


// Starting engine values
ifdef lores;
var video_mode = 4; // 320x240
ifelse;
var video_mode = 6; // 640x480
endif;
var video_depth = 16; // D3D, 16 bit resolution
var fps_max = 50; // 50 fps max

/////////////////////////////////////////////////////////////////
// define a splash screen with the required A4/A5 logo
bmap splashmap = <logodark.pcx>; // the default A5 logo in templates
panel splashscreen { bmap = splashmap; flags = refresh,d3d; }


function main()
{
fps_max = 50;
warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures
// center the splash screen for non-640x480 resolutions
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
splashscreen.visible = on; // set it visible
wait(3); // wait 3 frames (for triple buffering) until it is renderight and flipped to the foreground
// now load the level
load_level (<fighting.wmb>);
// wait the required second, then switch the splashscreen off.
waitt(16);
splashscreen.visible = off;
bmap_purge(splashmap); // remove logo bitmap from video memory
load_status(); // load some global variables, like sound volume


camera.pan = 90;
camera.tilt = 0;
camera.x = 0;
camera.y = -244;
camera.z = 46;
}
right_health_pan.pos_x = screen_size.x - (bmap_width(right_health_map) + 20);
right_health_pan.visible = on;
left_health_pan.visible = on;
}


var right_health = 100;
var left_health = 100;
bmap left_health_map = <left_health.pcx>;
bmap right_health_map = <right_health.pcx>;
panel left_health_pan
{
pos_x = 20;
pos_y = 30;
layer = 1;
hbar = 0,0,200,left_health_map,2,left_health;
flags = d3d,overlay,refresh;
}
panel right_health_pan
{
pos_y = 30;
layer = 1;
hbar = 0,0,200,right_health_map,2,right_health;
flags = d3d,overlay,refresh;
}


D.E.D

I use lite c
Re: can some one help with coding error [Re: DeD] #184928
02/21/08 19:41
02/21/08 19:41
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
Try moving panels scripts before main(), where splashscreen is.


I switched to other account since marth 2010. Guess which.
Re: can some one help with coding error [Re: Vadim647] #184929
02/21/08 19:43
02/21/08 19:43
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
lol can u please tell me what im to do if you can please.
i tryed what you said.
at least i think.
i moved the code but i was still getting the same messages.

Last edited by DeD; 02/21/08 19:59.

D.E.D

I use lite c
Re: can some one help with coding error [Re: DeD] #184930
02/21/08 21:27
02/21/08 21:27
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
it dont knows the panel
like reading a book you start white the first page and then to the next not from page 200 to 1 to 150 enz.

like using a var and the you define it

Code:


path "C:\\Program Files\\GStudio6\\template"; // Path to WDL templates subdirectory


include <movement.wdl>; // libraries of WDL functions
include <messages.wdl>;
include <menu.wdl>; // menu must be included BEFORE doors and weapons
include <particle.wdl>; // remove when you need no particles


// Starting engine values
ifdef lores;
var video_mode = 4; // 320x240
ifelse;
var video_mode = 6; // 640x480
endif;
var video_depth = 16; // D3D, 16 bit resolution
var fps_max = 50; // 50 fps max

/////////////////////////////////////////////////////////////////
// define a splash screen with the required A4/A5 logo
bmap splashmap = <logodark.pcx>; // the default A5 logo in templates
panel splashscreen { bmap = splashmap; flags = refresh,d3d; }

var right_health = 100;
var left_health = 100;
bmap left_health_map = <left_health.pcx>;
bmap right_health_map = <right_health.pcx>;
panel left_health_pan
{
pos_x = 20;
pos_y = 30;
layer = 1;
hbar = 0,0,200,left_health_map,2,left_health;
flags = d3d,overlay,refresh;
}
panel right_health_pan
{
pos_y = 30;
layer = 1;
hbar = 0,0,200,right_health_map,2,right_health;
flags = d3d,overlay,refresh;
}

function main()
{
fps_max = 50;
warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures
// center the splash screen for non-640x480 resolutions
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
splashscreen.visible = on; // set it visible
wait(3); // wait 3 frames (for triple buffering) until it is renderight and flipped to the foreground
// now load the level
load_level (<fighting.wmb>);
// wait the required second, then switch the splashscreen off.
waitt(16);
splashscreen.visible = off;
bmap_purge(splashmap); // remove logo bitmap from video memory
load_status(); // load some global variables, like sound volume


camera.pan = 90;
camera.tilt = 0;
camera.x = 0;
camera.y = -244;
camera.z = 46;
}
right_health_pan.pos_x = screen_size.x - (bmap_width(right_health_map) + 20);
right_health_pan.visible = on;
left_health_pan.visible = on;
}





"empty"
Re: can some one help with coding error [Re: DeD] #184931
02/21/08 21:28
02/21/08 21:28
Joined: Feb 2008
Posts: 21
J
jonkuhl Offline
Newbie
jonkuhl  Offline
Newbie
J

Joined: Feb 2008
Posts: 21
You defined the BMAPs after function main() but you used the bmaps in function main().

Move the definition of all the bmaps BEFORE main()

Remember that before you use anything, functions, variables, bmaps, etc, it must be declared and/or defined.

Re: can some one help with coding error [Re: DeD] #184932
02/21/08 21:32
02/21/08 21:32
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Something like below.
This is old syntax and waitt is nolonger used, What is your version number?

Code:
// Starting engine values
ifdef lores;
var video_mode = 4; // 320x240
ifelse;
var video_mode = 6; // 640x480
endif;
var video_depth = 16; // D3D, 16 bit resolution
var fps_max = 50; // 50 fps max



var right_health = 100;
var left_health = 100;
bmap left_health_map = <left_health.pcx>;
bmap right_health_map = <right_health.pcx>;

panel left_health_pan
{
pos_x = 20;
pos_y = 30;
layer = 1;
hbar = 0,0,200,left_health_map,2,left_health;
flags = d3d,overlay,refresh;
}

panel right_health_pan
{
pos_y = 30;
layer = 1;
hbar = 0,0,200,right_health_map,2,right_health;
flags = d3d,overlay,refresh;
}

function main()
{
fps_max = 50;
warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures
// center the splash screen for non-640x480 resolutions
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
splashscreen.visible = on; // set it visible
wait(3); // wait 3 frames (for triple buffering) until it is renderight and flipped to the foreground
// now load the level
load_level (<fighting.wmb>);
// wait the required second, then switch the splashscreen off.
wait(16);//NOTE
splashscreen.visible = off;
bmap_purge(splashmap); // remove logo bitmap from video memory
load_status(); // load some global variables, like sound volume


camera.pan = 90;
camera.tilt = 0;
camera.x = 0;
camera.y = -244;
camera.z = 46;
//Dont know about this???
right_health_pan.pos_x = screen_size.x - (bmap_width(right_health_map) + 20);
right_health_pan.visible = on;
left_health_pan.visible = on;
}




Re: can some one help with coding error [Re: flits] #184933
02/21/08 21:42
02/21/08 21:42
Joined: Feb 2008
Posts: 21
J
jonkuhl Offline
Newbie
jonkuhl  Offline
Newbie
J

Joined: Feb 2008
Posts: 21
I'm gonna go through the top and convert your code to A6.


load_level (<fighting.wmb>); is now level_load(string) where the string is the filename of the level map

waitt(16); is now wait(x). If x is negative, it counts x seconds. If x is positive, it counts x in ticks

And that looks like it was everything


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