Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
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 (AndrewAMD), 682 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
Problem !!! #344984
10/22/10 14:01
10/22/10 14:01
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
i have an odd problem in panel :

Quote:

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

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

BMAP* menu_jpg = "pic//Menu.jpg" ;
BMAP* LD_jpg = "pic//LD.jpg" ;
BMAP* SG_jpg = "pic//SG.jpg" ;
BMAP* NG_jpg = "pic//NG.jpg" ;
BMAP* HM_jpg = "pic//HM.jpg" ;
BMAP* CTM_jpg = "pic//CTM.jpg" ;
BMAP* EX_jpg = "pic//EX.jpg" ;

///////////////////////////////////////////////////////////////////////
function NGF ()
{
level_load("level_one.wmb");
beep();
}

PANEL* menu =
{
pos_x = 120 ;
pos_y = 10 ;
layer = 1 ;
bmap = "menu_jpg" ;
button (250, 134, NG_jpg, NULL, NULL, NGF, NULL, NULL);
flags = OVERLAY | SHOW;
}
function main ()
{
video_mode = 7 ;
video_screen = 2 ;
}


As you can see in this panel , engine should shows my panel background and a button .
my panel was showed but button is not . what is problem ? confused


Thanks .

Last edited by Mafia_IR; 10/22/10 14:02.
Re: Problem !!! [Re: Mafia_IR] #345039
10/22/10 19:01
10/22/10 19:01
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
you are using jpg's, that's the problem.
Use BMP or TGA instead.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Problem !!! [Re: Helghast] #345045
10/22/10 19:18
10/22/10 19:18
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
I've used :
Quote:
BMAP* NG_bmp = "pic//NG.bmp";

instead of
Quote:
BMAP* NG_jpg = "pic//NG.jpg";


but , no difference ... frown

and engine shows my panel background but button is not ...

Re: Problem !!! [Re: Mafia_IR] #345090
10/23/10 03:59
10/23/10 03:59
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
i cant convert this to TGA with paint and PhotoShop CS4 . do you have any program for convert ?

Re: Problem !!! [Re: Mafia_IR] #345103
10/23/10 09:05
10/23/10 09:05
Joined: Nov 2008
Posts: 216
J
jane Offline
Member
jane  Offline
Member
J

Joined: Nov 2008
Posts: 216
Here a free Batch-Converter:

http://easy-graphic-converter.softonic.de/

and i have changed a little bit the script:

Code:
#define PRAGMA_PATH "pic"

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

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

BMAP* menu_tga = "Menu.tga" ;
BMAP* LD_tga = "LD.tga" ;
BMAP* SG_tga = "SG.tga" ;
BMAP* NG_tga = "NG.tga" ;
BMAP* HM_tga = "HM.tga" ;
BMAP* CTM_tga = "CTM.tga" ;
BMAP* EX_tga = "EX.tga" ;

///////////////////////////////////////////////////////////////////////
function NGF ()
{
level_load("level_one.wmb");
beep();
}

PANEL* menu =
{
pos_x = 120 ;
pos_y = 10 ;
layer = 1 ;
bmap = "menu_jpg" ;
button (250, 134, NG_tga, NULL, NULL, NGF, NULL, NULL);
flags = OVERLAY | SHOW;
}
function main ()
{
video_mode = 7 ;
video_screen = 2 ;
level_load(NULL);
}



Last edited by jane; 10/23/10 09:07.
Re: Problem !!! [Re: jane] #345125
10/23/10 13:22
10/23/10 13:22
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
thanks jane ... laugh

but no difference . frown

When i used menu.tga and tested it ... Image was inverted. shocked

Re: Problem !!! [Re: Mafia_IR] #345127
10/23/10 13:34
10/23/10 13:34
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
this is my "new game" button if you can do that , take a shot for me .
http://up.iranblog.com/Files73/75f83b6f314248678c64.rar

thanks

Re: Problem !!! [Re: Mafia_IR] #345134
10/23/10 14:35
10/23/10 14:35
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
you can use the gimp for things like also , tga support alpha channels and free

Re: Problem !!! [Re: badapple] #345143
10/23/10 15:43
10/23/10 15:43
Joined: Nov 2008
Posts: 216
J
jane Offline
Member
jane  Offline
Member
J

Joined: Nov 2008
Posts: 216
sorry in the script is another error

the line:

bmap = "menu_jpg" ;

must be:

bmap = menu_tga;

your tga is correct, this should work.

EDIT: set the layer from 1 to 10

the button-position (x,y) is the distance from
the point top-left from the paneln not from
the screen.

the button must be complete inside of the panel .

EDIT: thanks Richi007


Last edited by jane; 10/23/10 16:04.
Re: Problem !!! [Re: jane] #345146
10/23/10 15:57
10/23/10 15:57
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
i think it should be
Code:
bmap = menu_tga;


without "!


Visit my site: www.masterq32.de
Page 1 of 4 1 2 3 4

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

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