"NAN" + Steam ingame overlay weirdness

Discussion in 'Support' started by Fooshi, Apr 9, 2010.

  1. Fooshi

    Fooshi For fuck's sake Fooshi

    Messages:
    4,741
    Likes Received:
    18
    Trophy Points:
    0
    [​IMG]

    Kai so, everytime I open the Ingame overlay when I'm in a passenger seat of a vehicle, everything turns black (check screenshot) + the command "NAN" spams the console. (I posted this in a different forum)
    Anyone knows what this is?

    Since I can't code, this is like watching arabic news without subtitles.

    *EDIT*

    Tends to happen in APC's passenger seats!
     
    Last edited: Apr 9, 2010
  2. Krenzo

    Krenzo Administrator

    Messages:
    3,771
    Likes Received:
    0
    Trophy Points:
    0
    I remember way back I had some debug code in I think hud_crosshair. It would print out "NaN" if it couldn't get the location the player was aiming, but that would only happen with a very obscure bug which was tied to vehicles. That might be it.
     
  3. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    nan means you're dividing by zero (usually)

    I had a few issues like this with weapon scripts and shotguns and certain settings.

    I've also had this issue when I changed the turret model of a vehicle to be something that isn' ta turret model (like an ML turret) I ended up with a camera underground a fuckton of NaN and lag.
     
  4. MOOtant

    MOOtant Member

    Messages:
    4,047
    Likes Received:
    0
    Trophy Points:
    0
    Yes, only NAN printing code is in the hud_crosshair. If I were you, I'd wait for 2.25 which shouldn't take long and might fix it.
     
  5. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    i once had the nan code when i wanted a shotgun infantry weapon to gain accuracy as shots where placed
     
  6. Krenzo

    Krenzo Administrator

    Messages:
    3,771
    Likes Received:
    0
    Trophy Points:
    0
    That bug has been around since 1.08.
     
  7. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    It's something to do with like divisions or square roots in the code and you can't square root a negative.
     
  8. Beerdude26

    Beerdude26 OnThink(){ IsDownYet(); }

    Messages:
    7,243
    Likes Received:
    13
    Trophy Points:
    0
    Something like that. I got this message when the shotty pistol's spread decrement value was bigger than its spread increment value.
     
  9. Krenzo

    Krenzo Administrator

    Messages:
    3,771
    Likes Received:
    0
    Trophy Points:
    0

Share This Page