Author Topic: The Debug-to-English Thread  (Read 1673 times)

0 Members and 1 Guest are viewing this topic.

Offline Trivial Psychic

  • 212
  • Snoop Junkie
The Debug-to-English Thread
Also known as "what the hell does this debug message mean" thread.  Pretty much as advertised, I'd like to know what these messages mean:

Associated with placing a specific non-:V: model on the grid (CVS 2006/11/13 or older).

Assert: (header.pixel_depth == 16) || (header.pixel_depth == 24) || (header.pixel_depth == 32)
File: c:\fs2_open\code\tgautils\tgautils.cpp
Line: 558
[This filename points to the location of a file on the computer that built this executable]

... followed by:

Assert: be->handle == handle
File: c:\fs2_open\code\bmpman\bmpman.cpp
Line: 2650
[This filename points to the location of a file on the computer that built this executable]

Anyone (say, a coder) can translate this?

Anybody else, feel free to use this thread to post your own unknown debug error messages.


The Trivial Psychic Strikes Again!

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: The Debug-to-English Thread
one of it's tga textures is fubar?
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: The Debug-to-English Thread
I'd assume just from looking at it that your model has a TGA texture that is of a colour depth other than 16, 24 or 32 bit.

Take a look at the file info for them in photoshop or whatever you use.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: The Debug-to-English Thread
one of it's tga textures is fubar?

When did I become a tga texture?  :D
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: The Debug-to-English Thread
Well, I couldn't see any obvious errors to the 2 tga textures on the models in question, but re-saving them as DDS caused the error messages to go away.  I also had some spline path errors, but I know how to fix those, and a couldn't open XXX texture, but it was a nameplate texture, so I just changed it to "invisible" in the pof.

Since no one else is using this thread for other debug error messages, maybe someone can give me a comprehensive explanation for the:

"X many normals caped to zero"

... error message.
The Trivial Psychic Strikes Again!

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: The Debug-to-English Thread
Since no one else is using this thread for other debug error messages, maybe someone can give me a comprehensive explanation for the:

"X many normals caped to zero"

... error message.
Happens when it hits this:
Code: [Select]
int check_values(vec3d *N)
{
    // Values equal to -1.#IND0
    if((N->xyz.x * N->xyz.x) < 0 ||
       (N->xyz.y * N->xyz.y) < 0 ||
       (N->xyz.z * N->xyz.z) < 0 ||
       !is_valid_vec(N))
    {
        N->xyz.x = 1;
        N->xyz.y = 0;
        N->xyz.z = 0;
        return 1;
    }

    return 0;
}
So, if "X*X < 0" or "Y*Y < 0" or "X*X < 0" or any of "X|Y|Z == NaN" then it will fail the check and return an error for that normal (after setting the normal to a sane value)

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: The Debug-to-English Thread
So its a problem with the creation of the model, not with anything post-POFing, so its out of my hands as far as fixing.  Its not realy anything serious is it?
The Trivial Psychic Strikes Again!

  

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
Re: The Debug-to-English Thread
The seriousness of the error seems to depend on how bad/where the error is. Of all the model related errors I've encountered, this one was the hardest to find ever, but an easy fix once the problem area was located.

When I got it on one of my models, I think I eventually tracked it down to a few connected polygons that had become tangled and twisted - in my case it was the polygons forming the HUD of Nico's cockpit.

I'm still not entirely sure of the effect this particular error would have on a model in-game though. Ie, would it result in a bogus part on a collision mesh? A problematic, inverted or missing part of the rendered geometry? Bad per-vertex lighting problems? No visible effect at all?
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities