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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...