Grid Sage Forums

Grid Sage Forums

  • November 24, 2024, 01:41:10 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

LINKS: Website | Steam | Wiki

Author Topic: Typo in Point Defense description  (Read 2588 times)

MJWkr

  • Unaware
  • *
  • Supported Cogmind Alpha Access 2015-2017 (Prime Tier)
  • Posts: 19
    • View Profile
Typo in Point Defense description
« on: November 18, 2015, 11:02:35 PM »

Hi there,

The Point Defense item appears to have a typo, indicating it gives a "0.0% chance" to do it's thing.

Thanks,

-MJWkr-
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Typo in Point Defense description
« Reply #1 on: November 18, 2015, 11:14:46 PM »

Thank you for reporting it :)

Hm, this isn't a typo but a calculation error in the output. The value is dynamic, and shows you what the actual chance is based on a couple different internal numbers. Odd, since I know they work but for some reason the reported number is not showing up. For the Point Defense System it should display 8.0%.

I'll get that fixed.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Typo in Point Defense description
« Reply #2 on: November 18, 2015, 11:53:35 PM »

Okay, this gets stranger: It appears perfectly correctly for me. And looking at the code it should be correct, too.

Did you modify the game at all?

The only circumstances I can imagine that could cause this is if the internal game data was somehow different from what it's supposed to be. Maybe someone else has seen this? I wonder what else could cause it... All it does for that value is show the result of 80.0/10.0.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

MJWkr

  • Unaware
  • *
  • Supported Cogmind Alpha Access 2015-2017 (Prime Tier)
  • Posts: 19
    • View Profile
Re: Typo in Point Defense description
« Reply #3 on: November 19, 2015, 05:46:44 PM »

Huh..wierd.

No modding here, promise! :)

Maybe it's a WINE/Linux thing? No idea, just throwing out a variable.

-MJWkr-
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Typo in Point Defense description
« Reply #4 on: November 19, 2015, 06:28:24 PM »

Shouldn't really have anything to do with Wine, but thanks for the extra variable just in case :)

One of the first things I can think of is some kind of memory corruption, but I'd think we'd get random crashes and other strange behavior if that were the case, and we're not. (I'm also prone to thinking memory corruption is behind any inexplicable bug where the associated code and data look fine, and I'm usually wrong :P)

I guess I'll have to leave this in the Bugs board until we get any more evidence for it. Obviously it happened to you, so it must be possible under some circumstance...

(Also, in future runs take a look at that and other Point Defense-type parts if you encounter them to see if it persists, or was a one-time thing. Thanks!)
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Typo in Point Defense description
« Reply #5 on: February 21, 2017, 10:05:44 PM »

To add to this, it does appear to be a Wine bug of some sort. Another Linux player encountered the same thing with the same item, despite it always working correctly for myself and other Windows players.

Moreover, today he reported another instance of this same issue occurring with another item which uses the same floating point method to display its effect value! Screenshot attached for future reference--displaying a "-2.0%" instead of the correct 1.3%... Maybe at some point down the line I'll find a way to redo the calculations using some other method that won't have this strange issue.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Typo in Point Defense description
« Reply #6 on: March 06, 2017, 10:30:14 PM »

So it's been confirmed this was some oddity with Wine, and all five such situations in the game I've simply converted to use a different function that doesn't exhibit the same results. Come Alpha 15 Linux players using whatever Wine version doesn't handle these decimal displays properly should see the usual numbers. Thanks to everyone who contributed data!
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Widmo

  • Derelict
  • **
  • Wiki Contributor Shared a Confirmed Stealth Win Bug Hunter Supported Cogmind Alpha Access 2015-2017 (Prime Tier) Weekly Seed Participant
  • Posts: 83
    • View Profile
Re: Typo in Point Defense description
« Reply #7 on: March 07, 2017, 04:11:08 PM »

Congratulations on squashing this bug! What I find best about this story is a hard proof Cogmind really does have Linux support. This is the first commercial game where I witnessed developer fixing a bug specific to a platform they do not target with ports.
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Typo in Point Defense description
« Reply #8 on: March 07, 2017, 04:50:02 PM »

It took a while, but with finally multiple players reporting it, and in a couple different places, the reason became more apparent, as did a potential solution. Glad to finally declare this one squashed :D

I did make a promise to Linux and Mac users that I will ensure Cogmind works as flawlessly as possible on their systems. It works so well in Wine by default that it would be a shame to leave little nagging bugs anywhere!
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon