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
1 registered members (TipmyPip), 18,618 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
LITE C sky wont work BAD FILE FORMAT error #220347
08/07/08 03:40
08/07/08 03:40
Joined: Aug 2008
Posts: 61
Neurosys Offline OP
Junior Member
Neurosys  Offline OP
Junior Member

Joined: Aug 2008
Posts: 61
I dont get it... I am using this very simple stuff below:

Code:
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
#define xmax 1024
#define ymax 768
#define fscreen 1
 
BMAP* nneglogo = "images\\nnegamingLOGO.bmp";
BMAP* dhlogo = "images\\dementia_hillsLOGO.bmp";
BMAP* dhmenustart = "images\\dhmenustart.bmp";
BMAP* dhmenustartover = "images\\dhmenustart_over.bmp";
BMAP* mcursor = "images\\brokenarrow.pcx";
ENTITY* skycube;

PANEL* splash1 = {
	pos_x=0;
	pos_y=0;
	layer=1;
	bmap = nneglogo;
	flags = VISIBLE;	
}

PANEL* mainmenu = {
	pos_x=0;
	pos_y=350;
	layer=2;
	button(0,0,dhmenustart,dhmenustart,dhmenustartover,startworld,NULL,NULL);
	flags = OVERLAY;
}

function startworld(){
	level_load("");
	skycube = ent_createlayer("images\\Sky_2+6.tga", SKY | CUBE | VISIBLE, 0);
	vec_set(skycube.blue,vector(128,128,128));
	toggle(mainmenu,VISIBLE);
	toggle(splash1,VISIBLE);
		
}


function main()
{
	video_set(xmax,ymax,32,fscreen);
	screen_color.blue=150;
	wait(2);
	wait(-10);
	splash1.bmap=dhlogo;
	wait(-1);
	toggle(mainmenu,VISIBLE);
	
	
	mouse_map= mcursor;
	mouse_mode = 2;
	//delay the inevitable
	while(key_pressed(key_for_str("q"))  == 0) {
		mouse_pos.x = mouse_cursor.x;
      mouse_pos.y = mouse_cursor.y;
		wait(1);
	}
	sys_exit("p00!");
}


EVERYTHING in it works great except it sez bad file format for ANY skyecube TGA i try to use.


See more code and crap @ www.neuroticnetworks.com
Re: LITE C sky wont work BAD FILE FORMAT error [Re: Neurosys] #220351
08/07/08 05:26
08/07/08 05:26
Joined: Aug 2008
Posts: 61
Neurosys Offline OP
Junior Member
Neurosys  Offline OP
Junior Member

Joined: Aug 2008
Posts: 61
HOLY CRAP it doesnt happen when I put in the local folder... only when I put it in a subfolder like "images\\".

Im dying here someone please throw me a line.


See more code and crap @ www.neuroticnetworks.com
Re: LITE C sky wont work BAD FILE FORMAT error [Re: Neurosys] #220412
08/07/08 10:14
08/07/08 10:14
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
When you put something in a subfolder you must declare the path!

#define PRAGMA_PATH "images";

and not put "images\\" in the file name!

Re: LITE C sky wont work BAD FILE FORMAT error [Re: Tobias] #220414
08/07/08 10:16
08/07/08 10:16
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
that will work for you if you have 7.07 or newer version



Ubi bene, ibi Patria.
Re: LITE C sky wont work BAD FILE FORMAT error [Re: croman] #220502
08/07/08 12:26
08/07/08 12:26
Joined: Aug 2008
Posts: 61
Neurosys Offline OP
Junior Member
Neurosys  Offline OP
Junior Member

Joined: Aug 2008
Posts: 61
o. thanks smile


See more code and crap @ www.neuroticnetworks.com
Re: LITE C sky wont work BAD FILE FORMAT error [Re: Neurosys] #220655
08/08/08 02:59
08/08/08 02:59
Joined: Aug 2008
Posts: 61
Neurosys Offline OP
Junior Member
Neurosys  Offline OP
Junior Member

Joined: Aug 2008
Posts: 61
WOW HEY YEA THATS ALOT EASIER

TY!! smile


See more code and crap @ www.neuroticnetworks.com

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

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