Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Just updated my DR to 3.0.0, and began aligning my textures, when I noticed that it stepped from whole numbers, to very slightly off numbers, like for example:
0 - 1 - 2 - 3.0000000000000004 - 4 - 5 - 6.000000000000001 - 7.000000000000001 - 8.
These numbers are consistent when using both the horizontal and vertical shift buttons. Even when I try to manually type in "6", it adjusts it to "6.000000000000001".

I'm afraid to texture things now, because I want textures to be in whole numbers.

Increments.png

Posted

...and it's consistent too: I just started a whole new map, and made a single brush, and no texture, and it still steps in these increments. :S

Posted

It's just the representation in the editor. The map file itself is identical.

2.14:

Version 2
// entity 0
{
"classname" "worldspawn"
// primitive 0
{
brushDef3
{
( 0 0 1 -64 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 0 1 0 -7.5 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 1 0 0 -7.5 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 0 0 -1 -64 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 0 -1 0 -8 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( -1 0 0 -7.5 ) ( ( 0.0625 0 -0.1875 ) ( 0 0.0625 0.828125 ) ) "_default" 0 0 0
}
}
}

3.0

Version 2
// entity 0
{
"classname" "worldspawn"
// primitive 0
{
brushDef3
{
( 0 0 1 -64 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 0 1 0 -7.5 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 1 0 0 -7.5 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 0 0 -1 -64 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( 0 -1 0 -8 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "_default" 0 0 0
( -1 0 0 -7.5 ) ( ( 0.0625 0 -0.1875 ) ( 0 0.0625 0.828125 ) ) "_default" 0 0 0
}
}
}

 

No extra 0's with a 1 on the end.

 

2.14:

LADLwC9.png

 

3.0

lfZpbQ4.png

I always assumed I'd taste like boot leather.

 

Posted

Oh. So it's just "extra precision" then. ...but without actually having extra precision. It's still a bug, but not as disastrous as I thought.

Posted

No harmful behaviour here, it's just a formatting issue, the underlying value doesn't differ.

The difference between 2.14 and 3.0 is the fmtlib version DR is using. It appears that the fmtlib update to version 8.1.1 introduced a change in formatting behaviour when omitting the format specifier. Explicitly setting the format specifier to "g" removes the rounding of the rightmost digits:

fmt::format("{0:g}", value)

 

Posted

And @Nort, I'd appreciate you editing your status update to clarify the situation, to not needlessly get people scared about map corruption.

Posted
2 hours ago, greebo said:

And @Nort, I'd appreciate you editing your status update to clarify the situation, to not needlessly get people scared about map corruption.

Sure. I'll do that. Just understand that I was actually pretty scared there for a moment.

Posted

Since this bug also affects the rotation step value, you actually lose the ability to enter such a value completely, and have to rely on direct input, or only rotate in 90 degrees, in order to rotate textures.

Hopefully solving this, will also solve the nasty effects I sometimes get when I use "Fit" with certain values, and the texture just becomes some kind of smear.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Xolvix

      Dammit there are too many missions available now. That's what I get for being away for so long. Such a first-world problem.
      · 1 reply
    • DeTeEff

      The best thing about not mapping more than like every other year is the awesome feeling to see how far TDM has gotten in all appartments. I can just create some parallaxing cobblestones and walk to and fro and just let the jaw drop
      · 2 replies
    • Ansome

      Happy Halloween, TDM folks!
      · 1 reply
    • Acolytesix  »  nbohr1more

      Hey, was trying to use the TDM_Update.exe file, but when I do it doesn't do anything! It just goes back to 2.12. I'm trying to run Luitenant 4, but it won't update, so I can't play it. What am I doing wrong?
      · 2 replies
    • The Black Arrow

      Been away for quite a long time, didn't have much free time sadly, but the little that I had I was able to play a Romhack for Ocarina of Time called "Sands of Time".
      It's great, fun, rather hard but too but I like it (except when it's way too tedious, only some parts are, not all of them)
      Although the reason I'm sharing this is...Listen to the music, I've timestamped it to 27:56, it's titled "Memories Lost".
      Doesn't it sound so serene, so melodic...So Thief-like? It's fantastic, I love it, it reminded me of Thief and how much I want to get back to it, so hopefully this month or the next, I will have a lot of free time to play it.
      I can't wait to try that new big Thief campaign, The Black Parade, it seems to be promising.
      No spoilers please, but can someone tell me if it has horror elements? Or better yet, horror mission...Or even missionS?
       
      · 1 reply
×
×
  • Create New...