Kosmor Forum Index
 Search Imprint      SearchSearch     Log inLog in 
 Search Legal      MemberlistMemberlist     ProfileProfile   

Financial reversal - Extremely nasty!

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Kosmor Forum Index -> Bug-Reports
View previous topic :: View next topic  
Author Message
Nikoy
Guest





PostPosted: Sun Feb 17, 2008 20:34    Post subject: Financial reversal - Extremely nasty! Reply with quote

Something very strange (and nasty) happened today.
In short: my financial status, which was very wealthy last turn and was expected to grow even more this turn, seemed to have a NEGATIVE value!

Maeli, please fix this, because you know what happens when somebody runs in minus! (I got one very sad mail from the Kosmor Host, called "Finances", which is informing me that basically my whole economy is bankrupt!)
------------------------------------------------------------------------
A little help for Maelstroem:

Several times already after integrating a sub I have noticed that my finances can not grow above certain threshold - the amount of money I had was suspiciously rounded.
Last turn I approached again that threshold, but I also sold a planet to someone for large amount of money. So, seems this time I succeeded to overcome that "money border". Surprisingly, the accumulated credits appeared to have one nasty "MINUS" in front of the sum!

What can be done? There must be a way my status from yesterday to be restored!?
I can give all details to Maelstroem if required.
Back to top
alphabravo
Major


Joined: 15 Feb 2004
Posts: 827
Location: UK

PostPosted: Sun Feb 17, 2008 21:56    Post subject: Reply with quote

interger bit overflow with signed bits?
_________________
Major alphabravo in the house Ashera
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Locutus
Guest





PostPosted: Mon Feb 18, 2008 08:43    Post subject: Reply with quote

Dang. Do you remember what your net gain/loss for today was on your finances page. If there was an integer overflow, then it should still report a gain (since the net gain/loss shouldn't be as extreme as the byte limit). Just the thought of an integer suddenly converting to its two's complement is rather nightmarish, but it seems somewhat likely.
Back to top
alphabravo
Major


Joined: 15 Feb 2004
Posts: 827
Location: UK

PostPosted: Mon Feb 18, 2008 10:46    Post subject: Reply with quote

that would depend on whether one was computed before the other, or simply daily diff = final - start (before extra moneys (integrating people, selling planets etc)) are calculated
_________________
Major alphabravo in the house Ashera
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Maelstroem
Commander


Joined: 30 Jan 2004
Posts: 430
Location: Munich, Germany

PostPosted: Mon Feb 18, 2008 15:48    Post subject: Reply with quote

Got the message, I will restore the account before the next turn.

Sounds like an integer overflow, yep. There should have been an amount of protection against it (2 Gig Credit Limit), but that was obviously broken by that solar system sale.
The limit won't be necessary in the next version, but it still takes time.

Bye,
Maelstroem
_________________
Commander Maelstroem in the house Nemesis
Back to top
View user's profile Send private message Visit poster's website
Maelstroem
Commander


Joined: 30 Jan 2004
Posts: 430
Location: Munich, Germany

PostPosted: Mon Feb 18, 2008 17:00    Post subject: Reply with quote

All done (did not take too long, was distracted by another mail). Lowered the system credits limit to 1.8 Gig to extend protection against this.
The next gpu version will use 64bit integers for credits.

Nikoy: you should really get rid of systems or build a bigger fleet Wink

Bye,
Maelstroem
_________________
Commander Maelstroem in the house Nemesis
Back to top
View user's profile Send private message Visit poster's website
Nikoy
Guest





PostPosted: Tue Feb 19, 2008 07:07    Post subject: Reply with quote

Uh, thanks Maeli - all is restored now as much as I can see! Yes, I am doing both right now - building fleet and selling systems. Smile

@ Locutus:
Normally I am at some 10 millions Deficit per day, but that turn i had Surplus 10.294.590!
Back to top
Nikoy
Guest





PostPosted: Tue Feb 19, 2008 20:08    Post subject: Reply with quote

Seems that many of my planets have their shipment orders cancelled! Can this also be restored Maeli? To restore it by hand will take ages for me!
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Kosmor Forum Index -> Bug-Reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group