magico13 / KCT

Kerbal Construction Time - An addon for Kerbal Space Program
29 stars 40 forks source link

Possible Bug #140

Open g0r3 opened 8 years ago

g0r3 commented 8 years ago

Hi,

today I encoutered something, that looks as a bug to me.

I was switching through my launch pads - I had two of them, one upgraded to lv 2 and one lv 1 currently being upgraded to lv 2 - and suddenly while clicking fast on the left 'switch launchpad' button, it gave me the message 'Facility already being upgraded'.

Afterwards my (upgraded) launchpads was disappeared and three others in the build queue. Now , if i click long enough anf fast enough (around 5 times, three clicks per second) on the left switch launchpad button, I again get the message "Facility already being upgraded". This also it adds around 30.000 credits to my account.

So at the moment I have no suitable launch pad for my rocked, a few in construction (which I never ordered) and I can fill my bank account by double clicking fast.

Is there a possibility (to hack the safe file maybe), so that I can get my upgrade launch pads back, without waiting months? I didn't even know, that I can demolish them. Also a cancel button for facility upgrades would be awesome.

2016-09-11 18_27_46-greenshot 2016-09-11 18_27_56-greenshot

magico13 commented 8 years ago

If you send me the save file and let me know how many pads and at what level, I can fix it. Alternatively, if you disable KSC upgrade times for a moment you should be able to upgrade them normally. I'm not surprised that clicking through quickly can cause issues based on how that code works. I'll try to remember to take a look at that next time I'm working on this.

On Sep 11, 2016 12:46, "g0r3" notifications@github.com wrote:

Hi,

today I encoutered something, that looks as a bug to me.

I was switching through my launch pads - I had two of them, one upgraded to lv 2 and one lv 1 currently being upgraded to lv 2 - and suddenly while clicking fast on the left 'switch launchpad' button, it gave me the message 'Facility already being upgraded'.

Afterwards my (upgraded) launchpads was disappeared and three others in the build queue. Now , if i click long enough anf fast enough (around 5 times, three clicks per second) on the left switch launchpad button, I again get the message "Facility already being upgraded". This also it adds around 30.000 credits to my account.

So at the moment I have no suitable launch pad for my rocked, a few in construction (which I never ordered) and I can fill my bank account by double clicking fast.

Is there a possibility (to hack the safe file maybe), so that I can get my upgrade launch pads back, without waiting months? I didn't even know, that I can demolish them. Also a cancel button for facility upgrades would be awesome.

[image: 2016-09-11 18_27_46-greenshot] https://cloud.githubusercontent.com/assets/3685646/18418880/ded329f2-784e-11e6-867d-942afd908d20.png [image: 2016-09-11 18_27_56-greenshot] https://cloud.githubusercontent.com/assets/3685646/18418881/ded4e094-784e-11e6-81cf-5375665fe2ef.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/magico13/KCT/issues/140, or mute the thread https://github.com/notifications/unsubscribe-auth/AFC21XqXRudkwkixtVBNQXo1g-M5P81lks5qpDBUgaJpZM4J6DBj .

g0r3 commented 8 years ago

Hi,

thanks for your fast reply! While pulling out my savegame for you I've found out, that the game actually created backups of the persistent.sfs file. So fortunately I have a backup of the game from about a hour earlier, I've only lost mission to the moon, which I've done between this backup and the bug occuring.

I've also tried it out again. Only the left button seems to be affected, it seems to overwrite the launchpad you currently own, issuing new upgrade orders and also giving you the money each time.

I am probably a bit more affected than most others, because my mouse seems to die soon, sometimes doubleclicking very fast, even though I clicked only once. But it also can happen, if you click during those very small short freezes that a heavily modded ksp has - the game then recognizes two seperate clicks as one very fast double click.

For now I keep playing with the backup save file. But thanks for your offer!