Page 1 of 1

Points bug

Posted: Fri Jul 23, 2010 7:47 pm
by removed
Hello there, In my game I have one problems with points reset..

Jason Spezza stats before game with Dallas:
Games 73 Goals 37 Assists 254 Points 291

In game with Dallas Jason score one goal and adds 3 assists, but if I look into his stats
Games 74 Goals 38 Assists 0 Points 38

This is his first season with so many points, last year he ends with 47 + 139 and no problem. I'm using 3.04 patch, so I don't understand it.. Any solutions or suggestion?

Re: Points bug

Posted: Sat Jul 24, 2010 1:47 am
by timmy_t
removed wrote:Hello there, In my game I have one problems with points reset..

Jason Spezza stats before game with Dallas:
Games 73 Goals 37 Assists 254 Points 291

In game with Dallas Jason score one goal and adds 3 assists, but if I look into his stats
Games 74 Goals 38 Assists 0 Points 38

This is his first season with so many points, last year he ends with 47 + 139 and no problem. I'm using 3.04 patch, so I don't understand it.. Any solutions or suggestion?
Can you post a screen shot so we can see what we're working with?

Posted: Tue Jul 27, 2010 12:53 am
by harmonica
250+ assists? who are his wings and how many points do they have?

id make a joke about the game being in disbelief that spezza could do so well, but that would be poor form

Posted: Fri Jul 30, 2010 12:09 pm
by Vanaja
I think its because assist variable probably is unsigned 8bit integer, so max value is 0-255. if it goes over 255 then it rolls back to begining (255 -> 0).

16 bit unsigned integer would be 0 to 65535 ,but it uses double amount memory. Maybe Riz think that no one never ever do +255 goals or assists so its good place save memory here ????

hm

Posted: Mon Aug 09, 2010 6:34 pm
by removed
Sorry I was hollidays..
Can you post a screen shot so we can see what we're working with?
Sorry but that's not possible, I don't save my game every time..
250+ assists? who are his wings and how many points do they have?
Yes 255+ assists, his wings are Marian Gaborik (99 goals + 72 assist) and Jordan Stall (89 goals + 46 assists) and sometimes Gaborik and Patrick Kane (59 Goals + 48 assists).

But he also play SH with Hammil (67 goals) and PP with Gaborik and Hammil
I think its because assist variable probably is unsigned 8bit integer, so max value is 0-255. if it goes over 255 then it rolls back to begining (255 -> 0).
Yes I think this is the problem, you are right.. but how to solve it? It's very shame 291 points drop to 38..

Posted: Tue Jan 18, 2011 5:42 pm
by alanschu
It's likely hardcoded in the game and there is nothing you can do about it.

It's a classic programming issue and without changing the data type in the code directly it will always happen.