Jump to content
The Dark Mod Forums

Bug: No more whole numbers in 3.0.0. :S


Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...