LF freezes at 2,147,483,647

Mojo Rising
Forum Irregular
Posts: 375
Joined: Wed Jun 06, 2007 7:10 pm
ID: 1975707

LF freezes at 2,147,483,647

I just discovered a bug that needs to be fixed quickly. I was converting DMU to LF and the LF froze on 2,147,483,647. For those of you who are saying, "That number looks familiar" it is because there was a bug in main income for awhile that froze on the same number. The reason I bring this up is that I didn't notice it until I had converted about 22 trillion DMU into LF and found that I only had slightly more than I had started with. Please fix this bug and give me my 2.2 billion LF that I should have for converting my income. Thank you.
User avatar
Hensenshi
Strange Soldier
Posts: 2360
Joined: Tue Apr 05, 2005 12:27 pm
ID: 0
Location: On the command bridge of the Ravager

Re: LF freezes at 2,147,483,647

2147483647 is also the largest integer that PhP can understand. Although I don't understand why it wasn't just converted to a float and moved on.
Image
Mojo Rising
Forum Irregular
Posts: 375
Joined: Wed Jun 06, 2007 7:10 pm
ID: 1975707

Re: LF freezes at 2,147,483,647

Jason,

I am still waiting for my LF. I understand you are a busy man but you are costing me a lot of DMU currently.
Mato
Forum Expert
Posts: 1340
Joined: Mon Jul 24, 2006 2:34 am
ID: 0
Location: rome

Re: LF freezes at 2,147,483,647

cry me a river

spend that LF and dont you ever get near that limit
Mojo Rising
Forum Irregular
Posts: 375
Joined: Wed Jun 06, 2007 7:10 pm
ID: 1975707

Re: LF freezes at 2,147,483,647

Mato wrote:cry me a river

spend that LF and dont you ever get near that limit


As long as you are going to give it to me Lord Mato, fine. Otherwise, please don't spam my thread. This is the Ascended Bugs forum, not the bash Mojo Rising forum. You would need to go to The Legion's forum page for that forum. If you have something constructive to add to the bug and how it is personally affecting you, then we will be more than happy to entertain your posts. Otherwise, please keep your comments to yourself.
User avatar
Dynamo
Forum Newbie
Posts: 49
Joined: Sun Nov 26, 2006 10:10 pm
Alliance: The Dark Legion
ID: 93165
Location: Melbourne, Australia

Re: LF freezes at 2,147,483,647

For some reason php running on 32bit machines doesn't like that particular number.

Jason, I'm sure you're all over this, but to fix it, just add +0 to the resulting number at the end of the formula.

Courtesy of the php manual:

Code: Select all

To force the correct usage of 32-bit unsigned integer in some functions, just add '+0'  just before processing them.

for example
echo(dechex("2724838310"));
will print '7FFFFFFF'
but it should print 'A269BBA6'

When adding '+0' php will handle the 32bit unsigned integer
correctly
echo(dechex("2724838310"+0));
will print 'A269BBA6'


Hope this helps...
Image

To those who've forgotten sacrafice,
And To those who have no Pride.
To those who live in decadance,
And To those who run and hide.

I come for you...
Mato
Forum Expert
Posts: 1340
Joined: Mon Jul 24, 2006 2:34 am
ID: 0
Location: rome

Re: LF freezes at 2,147,483,647

Mojo Rising wrote:
Mato wrote:cry me a river

spend that LF and dont you ever get near that limit


As long as you are going to give it to me Lord Mato, fine. Otherwise, please don't spam my thread. This is the Ascended Bugs forum, not the bash Mojo Rising forum. You would need to go to The Legion's forum page for that forum. If you have something constructive to add to the bug and how it is personally affecting you, then we will be more than happy to entertain your posts. Otherwise, please keep your comments to yourself.


well a LF limit is a good thing, but market should reject any trade the moment that limit has been reached. And of course a refund which I m sure you will get. So dont worry be happy.

bash Mojo Rising forum: a good idea, you complain all the time , so the forum will be alive.(only your comment calling us terorists has been posted so far)
User avatar
Hensenshi
Strange Soldier
Posts: 2360
Joined: Tue Apr 05, 2005 12:27 pm
ID: 0
Location: On the command bridge of the Ravager

Re: LF freezes at 2,147,483,647

Dynamo wrote:For some reason php running on 32bit machines doesn't like that particular number.

Integers hold whole numbers either positive or negative such as 1,-20 5502893, etc. There is a maximum limit to the size of integers-- any numbers lower than -2,147,483,647 and any number higher than 2,147,483,647 are automatically converted to floats which can hold a much larger range of values.

I've always just converted to a float anytime the number gets above 2bill to avoid the problem. :? Although I like your fix better, seems easier (that's what I get for learning PhP through a book and not the official manual).
Image
User avatar
Hells__Angel
Forum Elder
Posts: 2220
Joined: Sat Jun 24, 2006 2:38 am

Re: LF freezes at 2,147,483,647

Show off.
Image
Mojo Rising
Forum Irregular
Posts: 375
Joined: Wed Jun 06, 2007 7:10 pm
ID: 1975707

Re: LF freezes at 2,147,483,647

Jason,

It has been eight days now and I am still waiting for my LF. This is a little ridiculous. Of course, I have been waiting two and a half years for my IP exception as well. Anyway, you are currently costing me 10.5 billion DMU per turn, which would be 4 trillion DMU over the past eight days. Please fix this bug and give me my LF as soon as possible. Thank you.
~Krys~
Forum Irregular
Posts: 488
Joined: Sat Jun 25, 2005 11:07 pm
Alliance: Nemesis
ID: 68005

Re: LF freezes at 2,147,483,647

hmm i believe a email would work better if its taken 8 days



and if you have trouble you can always send to the doanate to dirtnap/krys fund :)

bump
~krys~ the last 2ic of The Order
RIP
Mojo Rising
Forum Irregular
Posts: 375
Joined: Wed Jun 06, 2007 7:10 pm
ID: 1975707

Re: LF freezes at 2,147,483,647

OK Jason,

It is now 12 days since I have reported this bug. To date it has cost me about 10 trillion DMU or thereabouts. I am trying to be civil and polite, but constantly ignoring me does nothing to improve my attitude. A simple, "Hey Mojo! I have heard your input and am working to rectify the situation" would be sufficient.
User avatar
Hells__Angel
Forum Elder
Posts: 2220
Joined: Sat Jun 24, 2006 2:38 am

Re: LF freezes at 2,147,483,647

Jason was told at the admin meeting on Wednesday. He said he would take care of it.
Image
Mojo Rising
Forum Irregular
Posts: 375
Joined: Wed Jun 06, 2007 7:10 pm
ID: 1975707

Re: LF freezes at 2,147,483,647

Hells__Angel wrote:Jason was told at the admin meeting on Wednesday. He said he would take care of it.


Jason also said that he wasn't going to make any changes to ascension for at least two months, a day before he implemented his new update. So pardon me if his credibility with me is greatly diminished at this point. When the bug is fixed and I get my 2.2 billion LF, then I will believe him. Until then, I will keep posting until the bug is fixed, which by the way, is at 14 days now.

All the coders on the site are saying it is an easy fix. I don't know about coding so I don't know but I would have to believe them. Jason if you need help, I am sure that there are people on the site that would love to help you. I will do what I can from my end but if you keep ignoring me/us, bad things are going to start happening that you will NOT be able to fix.
Munchy
Forum Expert
Posts: 1408
Joined: Sat Apr 01, 2006 8:54 pm
Alliance: Tauri Alliance
ID: 60881

Re: LF freezes at 2,147,483,647

Threatening Jason really is not the answer... Although yes, the bug should be fixed.
Image

ID=60881
Locked

Return to “Ascended Bugs Archive”