i have a weird bug related to money: if i save my game and then reload, i suddenly have 10 times as much money as before. right now i'm up to something like 80 Billion (yes, Billion) credits.
i tried without the OXPs, same thing. which means the bug is in oolite. i think i have revision 4422, but the bug was also there in the last few revisions.
bug in trunk
Moderators: winston, another_commander, Getafix
bug in trunk
MacBook pro, OSX 10.8.5, Xcode 5
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: bug in trunk
harry747 wrote:i have a weird bug related to money: if i save my game and then reload, i suddenly have 10 times as much money as before.
I didn't notice, but my save game also has 100 times as much credits as the second newest. I think we soon hit the limit of what can be displayed.
but that means it cant be around for long as it means I only saved twice since the introduction of the bug.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: bug in trunk
Wow that means you had earned 8 billion credits, how the heck did you do that?harry747 wrote:i have a weird bug related to money: if i save my game and then reload, i suddenly have 10 times as much money as before. right now i'm up to something like 80 Billion (yes, Billion) credits.
Is your real name Warren buffet?
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: bug in trunk
I checked with the latest nighty (r4412) there the save file was still okay.harry747 wrote:i think i have revision 4422, but the bug was also there in the last few revisions.
Most likely would be:
Code: Select all
r4417
Several fixes related to credits handling:
* When loading saved games, floating-point credits values go through the same
clamping logic as JavaScript assignments. This fixes the equivalent problem
of maximum credits values being treated as 0 on load.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: bug in trunk
I just remembered that I had yesterday in the latest log:
I already wondered, as I never had edited the save game. But the one below it in my saved game folder was edited. At that time I just thought I opened the wrong file.
I now double checked. This message is now generated on opening such a corrupt file. At least when opening with the latest trunk. When opening the same file with vanilla 1.75 the credits are still okay.
EDIT:
The problem are the credits written as <real> in the plist. Older, pre 1.75 Oolite used <integer>. Those files open correct, but the files with the same number written as <real> are multiplied with 10 on opening.
Code: Select all
[cheat.tentative] PlayerEntity.m:7652: POSSIBLE CHEAT DETECTED
I now double checked. This message is now generated on opening such a corrupt file. At least when opening with the latest trunk. When opening the same file with vanilla 1.75 the credits are still okay.
EDIT:
The problem are the credits written as <real> in the plist. Older, pre 1.75 Oolite used <integer>. Those files open correct, but the files with the same number written as <real> are multiplied with 10 on opening.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: bug in trunk
They're multiplied by 10 on 'reading' (see what shows when you choose your saved Commander).
And the bug was not there for r4402. I switched to the newest trunk, flew a nice contract (8000 for flying to a planet 0.2 ly away) and then my jaw fell down, because it showed I had over 2 mln credits.
I decided to check when does it fire up, and went to open the save I just did, and it showed 24 mln credits before I even opened it.
And the bug was not there for r4402. I switched to the newest trunk, flew a nice contract (8000 for flying to a planet 0.2 ly away) and then my jaw fell down, because it showed I had over 2 mln credits.
I decided to check when does it fire up, and went to open the save I just did, and it showed 24 mln credits before I even opened it.
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: bug in trunk
This bug has been fixed in r4427.
Re: bug in trunk
Damn I missed it, I was going to start a dozen new commanders
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"