Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Panels and priorities [Re: jcl] #114734
03/09/07 16:20
03/09/07 16:20
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl !

Ok for the "=" ...I'm suprised that it was used in this way.

I'll try to formulate the problem in the "scripting forum" ...and shorten the 800 lines of script to something that might present the problem and then catch the bug that I can't find.

100 eyes are waiting....:)


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: jcl] #114735
03/21/07 14:38
03/21/07 14:38
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hijcl!

No one has a clue to my problem.
I would like to know what to do next.
I have isolated all the sounds, models and ... in a seperate level
The script is 800 lines.
The situation is the same..


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114736
03/21/07 15:45
03/21/07 15:45
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Ok, then do the following:

First, reduce your script to just the panels and nothing else. Remove all of your 800 lines that don't affect the panels.

Then post the reduced code here. I'll have a look at it, maybe I can see where the problem is.

Re: Panels and priorities [Re: jcl] #114737
03/21/07 22:47
03/21/07 22:47
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl!

Will do.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: jcl] #114738
03/21/07 23:11
03/21/07 23:11
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl!

Code:
panel une_note =
{
layer = 7;
alpha = 100;
button = 8,96,note_1_R,note_1_R,note_1_V,choix_un_son,null,null;
// flags = overlay; // visible, overlay, refresh
}
panel un_son =
{
layer = 7;
alpha = 100;
// un son sur première ligne
button = 174, 100, son_b,son_b,son_b,so_b,null,null;
button = 254, 100, s_en, s_en, s_en, so_en,null,null;
button = 334, 100, s_Eeee,s_Eeee,s_Eeee,so_Eeee,null,null;
button = 414, 100, s_fff,s_fff,s_fff,so_fff,null,null;
button = 494, 100, s_ggg,s_ggg,s_ggg,so_ggg,null,null;
button = 574, 100, s_iii,s_iii,s_iii,so_iii,null,null;
// un son sur deuxième ligne
button = 174, 200, s_ppp,s_ppp,s_ppp,so_ppp,null,null;
button = 254, 200, s_lll,s_lll,s_lll,so_lll,null,null;
button = 334, 200, s_rrr,s_rrr,s_rrr,so_rrr,null,null;
button = 414, 200, s_shsh,s_shsh,s_shsh,so_shsh,null,null;
button = 494, 200, s_vvv,s_vvv,s_vvv,so_vvv,null,null;
button = 574, 200, s_yyy,s_yyy,s_yyy,so_yyy,null,null;
// un son sur troisième ligne
button = 174, 300, s_ouou,s_ouou,s_ouou,so_ouou,null,null;
button = 254, 300, s_ooo,s_ooo,s_ooo,so_ooo,null,null;
button = 334, 300, s_onon,s_onon,s_onon,so_onon,null,null;
button = 414, 300, s_sss,s_sss,s_sss,so_sss,null,null;
button = 494, 300, s_zz,s_zz,s_zz,so_zz,null,null;
button = 574, 300, s_mm,s_mm,s_mm,so_mm,null,null;
// flags = overlay ; //transparent, visible,overlayFILTER,refresh,
}
panel deux_notes =
{
layer = 7;
alpha = 100;
button = 8,200,notes_2_R,notes_2_R,notes_2_V,choix_deux_son,null,null;
// flags = overlay ; // visible,overlayrefresh,
}
panel deux_sons =
{
layer = 7; // affiche tous les deux sons
alpha = 100;
// un son // deux sons sur première ligne
button = 174, 100, s_anne,s_anne,s_anne,so_anne,null,null; //210+80
button = 254, 100, s_bas,s_bas,s_bas,so_bas,null,null;
button = 334, 100, s_boue,s_boue,s_boue,so_boue,null,null;
button = 414, 100, s_sceau,s_sceau,s_sceau,so_sceau,null,null;
button = 494, 100, s_choux,s_choux,s_choux,so_choux,null,null;
button = 574, 100, s_aime,s_aime,s_aime,so_aime,null,null;
// deux sons sur deuxième ligne
button = 174, 200, s_ile,s_ile,s_ile,so_ile,null,null;
button = 254, 200, s_joue,s_joue,s_joue,so_joue,null,null;
button = 334, 200, s_mou,s_mou,s_mou,so_mou,null,null;
button = 414, 200, s_nez,s_nez,s_nez,so_nez,null,null;
button = 494, 200, s_noeud,s_noeud,s_noeud,so_noeud,null,null;
button = 574, 200, s_oeuf,s_oeuf,s_oeuf,so_oeuf,null,null;
// deux sons sur troisième ligne
button = 174, 300, s_paon,s_paon,s_paon,so_paon,null,null;
button = 254, 300, s_pont,s_pont,s_pont,so_pont,null,null;
button = 334, 300, s_pou,s_pou,s_pou,so_pou,null,null;
button = 414, 300, s_rang,s_rang,s_rang,so_rang,null,null;
button = 494, 300, s_roue,s_roue,s_roue,so_roue,null,null;
button = 574, 300, s_rue,s_rue,s_rue,so_rue,null,null;
// deux sons sur quatrième ligne
button = 174, 400, s_vent,s_vent,s_vent,so_vent,null,null;
// flags = overlay ; //transparent,FILTER,visible,refresh,overlay
}
panel trois_notes =
{
layer = 7;
alpha = 100;
button = 8,300,notes_3_R,notes_3_R,notes_3_V,choix_trois_sons,null,null;
// flags = overlay ; // visible,overlayrefresh,
}
panel trois_sons =
{
layer = 7;
alpha = 100;
// un son // deux sons sur première ligne
button = 174, 100, fl_porter,fl_porter,fl_porter,null,null,null; //fl = flute 210
button = 248, 116, fl_note_do,fl_note_do,fl_note_do,null,null,null;
// flags = overlay ; //transparent,FILTER,visible,refresh,overlay
}
panel b_mess_bravo =
{
layer = 7;
alpha = 100;
button = 710,80,bravo_j,bravo_j,bravo_v,choix_sons_bravo,null,null;
// flags = overlay; // refresh,visible,overlay
}
panel lesmessages =
{
layer = 7;
alpha = 100;
//messages sur première ligne
button = 200, 150, m_genial,m_genial,m_genial,so_genial,null,null;
button = 300, 150, m_bravo,m_bravo,m_bravo,so_bravo,null,null;
button = 400, 150, m_excellent,m_excellent,m_excellent,so_excellent,null,null; //
button = 500, 150, m_bonneR,m_bonneR,m_bonneR,so_bonneR,null,null; //
// deuxième ligne
button = 200, 200, m_tresbien,m_tresbien,m_tresbien,so_tresbien,null,null; //
button = 300, 200, m_tuasR,m_tuasR,m_tuasR,so_tuasR,null,null; //
button = 400, 200, m_Qpareil,m_Qpareil,m_Qpareil,so_Qpareil,null,null; //
button = 500, 200, m_pareil,m_pareil,m_pareil,so_pareil,null,null; //
// troisième ligne
button = 200, 300, m_diff,m_diff,m_diff,so_diff,null,null; //
// flags = overlay; //refresh,transparent,FILTER,visible,overlay
}
panel b_mess_erreur =
{
layer = 7;
alpha = 100;
button = 710,160,erreur_j,erreur_j,erreur_v,choix_sons_erreurs,null,null;
// flags = overlay ; // visible,overlay
}
panel messageserreurs =
{
layer = 7;
alpha = 100;
//messages sur première ligne 100 ne fonctionne pas
button = 200, 200, m_denouv,m_denouv,m_denouv,so_denouv,null,null;
button = 300, 200, m_voirdemo,m_voirdemo,m_voirdemo,so_voirdemo,null,null;
// flags = overlay ; //transparent,FILTER,visible
}
panel porte_dans_demo =
{
layer = 7;
alpha = 100;
button = 725,500,porte_j,porte_j,porte_v,m_porte,null, so_porte; //porte
// le boutton pour le menu
button = 725,400, esca_j ,esca_j , esca_v, arretesonspanel, null, so_esca; //porte
// flags = overlay ; //refresh,transparent,FILTER,visible,overlay
}
panel lescredits
{
bmap = credits;
layer = 1;
pos_x = 10;
pos_y = 400;
// flags = overlay ; //refresh, visible,overlay
}
panel titre_inc
{
bmap = t_inc;
layer = 1;
pos_x = 245;
pos_y = 5;
// flags = overlay ; // refresh,visible,overlay
}
panel titre_cible
{
bmap = t_cible;
layer = 1;
pos_x = 50;
pos_y = 450;
// flags = overlay ; // refresh,visible,overlay
}
panel droits_auteurs
{
bmap = droits;
layer = 1;
pos_x = 20;
pos_y = 480;
// flags = overlay ; // refresh,visible,overlay
}
panel legende_01
{
bmap = leg_01;
layer = 2;// 1 cadre qui entoure les UN sons
pos_x = 90; //120
pos_y = 70;
// flags = overlay ; //refresh,visible,overlay
}
panel legende_02
{
bmap = leg_02;
layer = 2;// 1 cadre qui entoure les UN sons
pos_x = 90; //(95)
pos_y = 45;
// flags = overlay ; //refresh,visible,overlay
}
panel legende_03
{
bmap = leg_03;
layer = 2;// 1 cadre qui entoure les UN sons
pos_x = 90; //120(95)
pos_y = 45;
// flags = overlay ; //refresh,visible,overlay
}
panel legende_04
{
bmap = leg_04;
layer = 2;
pos_x = 135;
pos_y = 70;
// flags = overlay ; //refresh,visible,overlay
}
panel legende_05
{
bmap = leg_05;
layer = 2;
pos_x = 135; //
pos_y = 70; //
// flags = overlay ; //refresh,visible,overlay
}
// make the center options available
function choix_un_son ()
{
deux_sons.visible = off;
legende_02.visible = off;

trois_sons.visible = off;
legende_03.visible = off;

lesmessages.visible = off;
legende_04.visible = off;

messageserreurs.visible = off;
legende_05.visible = off;

wait (1);
un_son.visible = on;
legende_01.visible = on;
}
// make the center options available
function choix_deux_son ()
{
un_son.visible = off;
legende_01.visible = off;

trois_sons.visible = off;
legende_03.visible = off;

lesmessages.visible = off;
legende_04.visible = off;

messageserreurs.visible = off;
legende_05.visible = off;

wait (1);
deux_sons.visible = on;
legende_02.visible = on;
}

function choix_trois_sons ()
{
un_son.visible = off;
legende_01.visible = off;

deux_sons.visible = off;
legende_02.visible = off;

lesmessages.visible = off;
legende_04.visible = off;

messageserreurs.visible = off;
legende_05.visible = off;

wait (1);
trois_sons.visible = on;
legende_03.visible = on;
}

function choix_sons_bravo ()
{
un_son.visible = off;
legende_01.visible = off;

deux_sons.visible = off;
legende_02.visible = off;

trois_sons.visible = off;
legende_03.visible = off;

messageserreurs.visible = off;
legende_05.visible = off;

wait (1);
lesmessages.visible = on;
legende_04.visible = on;
}

function choix_sons_erreurs ()
{
un_son.visible = off;
legende_01.visible = off;

deux_sons.visible = off;
legende_02.visible = off;

trois_sons.visible = off;
legende_03.visible = off;

lesmessages.visible = off;
legende_04.visible = off;

wait (1);
messageserreurs.visible = on;
legende_05.visible = on;
}

function m_porte ()
{
wait (1);
main_quit(); //exit the level and the game
}
// execute this function before leaving the level
function arretesonspanel ()
{
wait (1); // close all panels before changing level
une_note.visible = off;
deux_notes.visible = off;
trois_notes.visible = off;
b_mess_bravo.visible = off;
b_mess_erreur.visible = off;
lescredits.visible = off;
titre_inc.visible = off;
titre_cible.visible = off;
droits_auteurs.visible = off;
porte_dans_demo.visible = off;
//
legende_05.visible = off;
legende_01.visible = off;
legende_02.visible = off;
legende_03.visible = off;
legende_04.visible = off;

un_son.visible = off;
deux_sons.visible = off;
lesmessages.visible = off;
trois_sons.visible = off;
messageserreurs.visible = off;
}

function part_sons_panel ()
{
wait (1);
roule_mon_text(); // show text
while (mon_text.pos_y > 25) {wait (1);}
une_note.visible = on;
deux_notes.visible = on;
trois_notes.visible = on;
b_mess_bravo.visible = on;
b_mess_erreur.visible = on;
lescredits.visible = on;
titre_inc.visible = on;
titre_cible.visible = on;
droits_auteurs.visible = on;
porte_dans_demo.visible = on;
}

action depart
{
ma_souris ();
part_sons_panel (); //start le level
}




Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114739
03/22/07 08:36
03/22/07 08:36
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Well, that's just again the very mistake I told you about at the beginning of this post.

All your panels are unsized. If you don't give a size, they are automatically sized after their background bitmap or their first element. So if your panel consists only of a button, just place it at 0,0 - the size will then automatically be correct. However, if it has several buttons, make sure that you give a size_x/size_y area that covers all buttons.

Re: Panels and priorities [Re: jcl] #114740
03/23/07 00:04
03/23/07 00:04
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl!

I’m happy to say that I have finally understood what you have been telling me from the beginning.
This is the working result
Code:
panel one_note
{
pos_x = 8; // position of the panel on the screen
pos_y = 96;
layer = 7;
alpha = 100;

// x and y position of the button in the panel
// x = Horizontal distance to the panel's upper left corner, in pixels.
//y = Vertical distance to the panel's upper left corner, in pixels.

button = 0,0,note_1_R,note_1_R,note_1_V,choice_one_sond,null,null;
flags = overlay;
}


My panels are now working and I am happy.

May I suggest that the PANEL examples in the manual for sections
button, panel.flags, vslider and digits
reflect the fact that all panels must have pox_x and pos_y


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

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