3 registered members (AndrewAMD, Akow, 1 invisible),
1,417
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Expert
|
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. {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: v3c7r0n]
#247473
01/21/09 06:40
01/21/09 06:40
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
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: Cowabanga]
#248464
01/27/09 01:22
01/27/09 01:22
|
Joined: Jan 2009
Posts: 19 CT, US
v3c7r0n
OP
warned - Warez
|
OP
warned - Warez
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
v3c7r0n
OP
warned - Warez
|
OP
warned - Warez
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? 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
Serious User
|
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"
|
|
|
|