Page 1 of 2
LF freezes at 2,147,483,647
Posted: Sat Aug 04, 2007 7:25 pm
by Mojo Rising
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.
Re: LF freezes at 2,147,483,647
Posted: Sun Aug 05, 2007 9:56 pm
by Hensenshi
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.
Re: LF freezes at 2,147,483,647
Posted: Tue Aug 07, 2007 9:46 am
by Mojo Rising
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.
Re: LF freezes at 2,147,483,647
Posted: Tue Aug 07, 2007 10:11 am
by Mato
cry me a river
spend that LF and dont you ever get near that limit
Re: LF freezes at 2,147,483,647
Posted: Tue Aug 07, 2007 9:17 pm
by Mojo Rising
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.
Re: LF freezes at 2,147,483,647
Posted: Tue Aug 07, 2007 9:26 pm
by Dynamo
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...
Re: LF freezes at 2,147,483,647
Posted: Tue Aug 07, 2007 10:39 pm
by Mato
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)
Re: LF freezes at 2,147,483,647
Posted: Wed Aug 08, 2007 8:19 am
by Hensenshi
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).
Re: LF freezes at 2,147,483,647
Posted: Sat Aug 11, 2007 12:10 am
by Hells__Angel
Show off.
Re: LF freezes at 2,147,483,647
Posted: Sun Aug 12, 2007 12:13 am
by Mojo Rising
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.
Re: LF freezes at 2,147,483,647
Posted: Sun Aug 12, 2007 4:13 am
by ~Krys~
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
Re: LF freezes at 2,147,483,647
Posted: Wed Aug 15, 2007 7:27 pm
by Mojo Rising
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.
Re: LF freezes at 2,147,483,647
Posted: Fri Aug 17, 2007 8:27 am
by Hells__Angel
Jason was told at the admin meeting on Wednesday. He said he would take care of it.
Re: LF freezes at 2,147,483,647
Posted: Fri Aug 17, 2007 9:30 pm
by Mojo Rising
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.
Re: LF freezes at 2,147,483,647
Posted: Sat Aug 18, 2007 7:36 am
by Munchy
Threatening Jason really is not the answer... Although yes, the bug should be fixed.