Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Stooq now requires an API key
by VHX. 06/08/26 20:14
ZorroGPT
by TipmyPip. 06/06/26 12:36
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 3,688 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Tutorial Help Part 4! #314803
03/11/10 05:43
03/11/10 05:43
Joined: Mar 2010
Posts: 6
VT USA
E
Eternus Offline OP
Newbie
Eternus  Offline OP
Newbie
E

Joined: Mar 2010
Posts: 6
VT USA
Im doing the 25 starter tutorials from this website and they were working just fine until i got to part 4 which is for loading bitmaps etc and im using the prewritten code and its giving me errors.... idk for some reason demo code on tutorials fails alot for me even with c+/++ i had the same issues



here is the code,
its saying error in MAIN line 2:"BMAP" undeclared identifier



////////////////////////////////////////////////////////////////////
BMAP first_pcx = "first.pcx"; // my first bmap
PANEL first_pan = // my first panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | SHOW;
}
/////////////////////////////////////////////////////////////////////
function main()
{
screen_size.x = 800;
screen_size.y = 600;
screen_color.blue = 150;
}

Re: Tutorial Help Part 4! [Re: Eternus] #314805
03/11/10 06:38
03/11/10 06:38
Joined: Mar 2010
Posts: 6
VT USA
E
Eternus Offline OP
Newbie
Eternus  Offline OP
Newbie
E

Joined: Mar 2010
Posts: 6
VT USA
For some reason it stripped off the header info in the code.... now its loading but im still getting an error saying unknown flag SHOW and the bitmap isnt showing on the screen its still just blue lol... any ideas?

Re: Tutorial Help Part 4! [Re: Eternus] #314807
03/11/10 06:55
03/11/10 06:55
Joined: Mar 2010
Posts: 6
VT USA
E
Eternus Offline OP
Newbie
Eternus  Offline OP
Newbie
E

Joined: Mar 2010
Posts: 6
VT USA
Anyone??? ive been at this for several hours even replaced the pcx with a bmp because my system doesnt recognize pcx files..... im running Windows 7 64bit....



Here is the tutorial im following:
http://www.conitec.net/litec/work04.htm

Re: Tutorial Help Part 4! [Re: Eternus] #314808
03/11/10 06:59
03/11/10 06:59
Joined: Mar 2010
Posts: 6
VT USA
E
Eternus Offline OP
Newbie
Eternus  Offline OP
Newbie
E

Joined: Mar 2010
Posts: 6
VT USA
Original Issue was header paths were stripped off fixed that... ive tried replacing the image file due to corruption/unable to read... ive changed the positions for the screen, resolution etc... also its saying there is no flag called SHOW so basically if i just leave OVERLAY and remove the show flag, it compiles without any errors but its complete bluescreen, if i leave the code as is it gives one error about no flag SHOW and then does the same thing...?? well im off to bed i hope someone can help shouldnt be this tough for a starting tutotial its only a few lines, setting up emulators and databases more work then this -,-

Re: Tutorial Help Part 4! [Re: Eternus] #314810
03/11/10 07:23
03/11/10 07:23
Joined: Mar 2009
Posts: 88
Walori Offline
Junior Member
Walori  Offline
Junior Member

Joined: Mar 2009
Posts: 88
Try adding "*" to the pointers like this:
Code:
//And make sure you've included acknex.h!
////////////////////////////////////////////////////////////////////
BMAP* first_pcx = "first.pcx"; // my first bmap
PANEL* first_pan = // my first panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | SHOW;
}
/////////////////////////////////////////////////////////////////////
function main()
{
screen_size.x = 800;
screen_size.y = 600;
screen_color.blue = 150;
}



Re: Tutorial Help Part 4! [Re: Walori] #314851
03/11/10 15:28
03/11/10 15:28
Joined: Mar 2010
Posts: 6
VT USA
E
Eternus Offline OP
Newbie
Eternus  Offline OP
Newbie
E

Joined: Mar 2010
Posts: 6
VT USA
Thanks, but its still doing it lol

Re: Tutorial Help Part 4! [Re: Eternus] #314853
03/11/10 15:41
03/11/10 15:41
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Do you have the
#include <acknex.h>
at the beginning of your script?

(As Walori says)

Re: Tutorial Help Part 4! [Re: Widi] #314855
03/11/10 16:15
03/11/10 16:15
Joined: Mar 2010
Posts: 6
VT USA
E
Eternus Offline OP
Newbie
Eternus  Offline OP
Newbie
E

Joined: Mar 2010
Posts: 6
VT USA
yes
Code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

BMAP* first_pcx = "first.pcx"; // my first bmap
PANEL* first_pan = // my first panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | SHOW;
}
/////////////////////////////////////////////////////////////////////
function main()
{
screen_size.x = 800;
screen_size.y = 600;
screen_color.blue = 150;
}



Re: Tutorial Help Part 4! [Re: Eternus] #315064
03/13/10 01:40
03/13/10 01:40
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
You are sure you save it as *.c and not as *.wdl (witch is standard)

Re: Tutorial Help Part 4! [Re: Widi] #315073
03/13/10 04:25
03/13/10 04:25
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
I tested this code and it works fine here confused

my pcx file. I'm also on win7 64...
http://www.ninjawarriors.net/first.pcx



Last edited by Rich; 03/13/10 04:27.
Page 1 of 2 1 2

Moderated by  HeelX, Tobias_Runde 

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