Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Error loading a TGA #247469
01/21/09 04:18
01/21/09 04:18
Joined: Jan 2009
Posts: 19
CT, US
V
v3c7r0n Offline OP
warned - Warez
v3c7r0n  Offline OP
warned - Warez
V

Joined: Jan 2009
Posts: 19
CT, US
Hi all,

I'm playing with A7 for the first time, and I've looked through a lot of the example scripts and played around a bit, but when I tried to write one of my own, I get the following error on the splash screen:

Compiling Main.wdl [Esc] to abort...
<BMAP* NoAlpha_tga=^flat.tga";>
main.wdl 6:3 (): Syntax Error - flat.tga invalid character.

Script Error
Engine Shutdown

Now, before I get pasted with the "You screwed up the code." responses, here is the entire script generating this error:

///////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////////////////////////////////
// Resource Definitions
BMAP* NoAlpha_tga ="flat.tga";
//BMAP * AlphaImage = "flat alpha.tga";
///////////////////////////////////////////////////////////

function Config()
{
// set the mouse mode to 2
mouse_mode = 2;
}


function main()
{
var number;
//string TestString;
Config();
}

It does nothing. Why? I haven't gotten that far yet. I don't understand how the "flat.tga" translates to ^flat.tga"?!

Any help is greatly appreciated.

Re: Error loading a TGA [Re: v3c7r0n] #247471
01/21/09 04:47
01/21/09 04:47
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
The strange little ^ symbol occers a lot in compiler errors, and doesnt appear
to mean much as far as I can see. Usually it replaces an opening ", I think
it may be a mangled system font at fault.

As for your error, all you code looks OK, so I would say the TGA file is at
fault. TGA files must be either 24bit or 32bit(with alpha) TGA files.
All other bitcounts are not accepted by 3DGS.
Quote:
{clipped from "File Formats" section of the manual}
TGA true color (24-bit RGB) and true color alpha (32-bit ARGB) images are used for high quality textures. They are internally stored in 16-bit high color or 32-bit true color, depending on the setting of d3d_alphadepth. 32-bit ARGB images contain an alpha channel which gives a transparency value for every single pixel. For creating an alpha channel in Photoshop, open the channels window, and click onto the small "new channel" button below. Now an alpha channel is created, and you can paint onto it. When saving the picture, use the 32 bit TGA format.



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Error loading a TGA [Re: EvilSOB] #247472
01/21/09 05:17
01/21/09 05:17
Joined: Jan 2009
Posts: 19
CT, US
V
v3c7r0n Offline OP
warned - Warez
v3c7r0n  Offline OP
warned - Warez
V

Joined: Jan 2009
Posts: 19
CT, US
Thanks for the response. I just checked the TGA and it is a 32-bit per pixel TGA. That would be why I am so confused. If it has any relevance, the image is not compressed.

Re: Error loading a TGA [Re: v3c7r0n] #247473
01/21/09 06:40
01/21/09 06:40
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hmm, odd.
OK try this.

1> Rename your tga to something else for safekeeping.
2> Copy some other tga from somewhere in the Gamestudio folder,
say the Gstudio\templates\images folder.
2a> Save it to the same folder as your .C script lives in.
3> Change your code to match its name, and try it out.
4> If it works, rename the tga to the same as your old ("flat.tga"),
and change your code too. Try it out.

What happens?
Also, what program is creating your tga file? Shareware is sometime a bit funky.
Post the TGA if you can. I never could, Im forum-challenged.



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Error loading a TGA [Re: EvilSOB] #247483
01/21/09 08:44
01/21/09 08:44
Joined: Jan 2009
Posts: 36
Philippines
U
unknown_master Offline
Newbie
unknown_master  Offline
Newbie
U

Joined: Jan 2009
Posts: 36
Philippines
i think the targa bitmap is for ent_sky only...the targa contains 24 bit...use .bmp or .pcx....








From: Philippine Game Developers.

Re: Error loading a TGA [Re: EvilSOB] #247516
01/21/09 12:16
01/21/09 12:16
Joined: Jan 2009
Posts: 19
CT, US
V
v3c7r0n Offline OP
warned - Warez
v3c7r0n  Offline OP
warned - Warez
V

Joined: Jan 2009
Posts: 19
CT, US
No joy.

I used the arrow.tga from the gstudio folder, same error. I also tried changing it over to a bmp (32-bit) and got the same result.

Re: Error loading a TGA [Re: v3c7r0n] #247519
01/21/09 12:28
01/21/09 12:28
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Maybe because you're using a warez version?

Re: Error loading a TGA [Re: Cowabanga] #248464
01/27/09 01:22
01/27/09 01:22
Joined: Jan 2009
Posts: 19
CT, US
V
v3c7r0n Offline OP
warned - Warez
v3c7r0n  Offline OP
warned - Warez
V

Joined: Jan 2009
Posts: 19
CT, US
I just bought the commercial version (7.06.1) and this still happens.

I also tried deleting and recreating the script. On launch I get the error in the splash and now I get an actual msg box captioned "Error E355" saying "startup failure".

Ok, but then I comment out the offending line of code, run it, uncomment the line and now it freaking works?!?!?!?!?!

Does the SED have a Clean & Rebuild like VS.net?

Last edited by v3c7r0n; 01/27/09 01:31. Reason: WTH?
Re: Error loading a TGA [Re: v3c7r0n] #248465
01/27/09 01:45
01/27/09 01:45
Joined: Jan 2009
Posts: 19
CT, US
V
v3c7r0n Offline OP
warned - Warez
v3c7r0n  Offline OP
warned - Warez
V

Joined: Jan 2009
Posts: 19
CT, US
Originally Posted By: v3c7r0n
I just bought the commercial version (7.06.1) and this still happens.

I also tried deleting and recreating the script. On launch I get the error in the splash and now I get an actual msg box captioned "Error E355" saying "startup failure".

Ok, but then I comment out the offending line of code, run it, uncomment the line and now it freaking works?!?!?!?!?!

Does the SED have a Clean & Rebuild like VS.net?


heh heh...just kidding. Still broken.

Code is:
///////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////////////////////////////////
// Resource Definitions
BMAP* NoAlpha ="flat.bmp";
//BMAP * AlphaImage = "flat alpha.tga";
///////////////////////////////////////////////////////////

PANEL* TestPanel =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = NoAlpha;
flags = OVERLAY | VISIBLE;
}

function Config()
{
// set the mouse mode to 2
mouse_mode = 2;
video_mode = 7; // Set Res to 800x600
screen_color.blue = 150; // make background blue
}




function main()
{
var number;

Config();
}

and the errors are:
test.wdl 13 - Parameter unknown pos_y bad keyword in {}
test.wdl 12 - Parameter unknown pos_x bad keyword in {}
test.wdl 11 - Parameter unknown PANEL * bad keyword in {}

Re: Error loading a TGA [Re: v3c7r0n] #248467
01/27/09 02:41
01/27/09 02:41
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
have you tried updating?
the latest gamestudio is 7.664 i believe not 7.06.1

So i take it you are still using a warez version



Last edited by Blade280891; 01/27/09 02:42.

My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Page 1 of 2 1 2

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