Jump to content

Incorrect funds after recovering vehicle


Recommended Posts

I'm trying to figure out a strange scenario where recovered funds become my new amount of funds, meaning wrong.

In general, this is how things work.

[New amount of funds] = [Old fund amount] + [Recovered fund amount]

However, this is what happens for me:

[New amount of funds] = [Recovered fund amount]

Meaning it disregards any previous amount of funds!

 

It doesn't always happen, but it usually happens when I'm recovering large sums of funds (several million).
I'm using USI MKS, and I'm recovering large amounts of ExoticMinerals. Most often then, it happens.

If I make a small vessel and recover that, things look normal and it's the "old" correct equation applied.

Any idea what could be wrong?

 

My mod list:

Spoiler

000_AT_Utils
000_ClickThroughBlocker
000_FilterExtensions
000_FilterExtensions_Configs
000_USITools
001_ToolbarControl
B9AnimationModules
B9PartSwitch
B9_Aerospace
B9_Aerospace_HX
B9_Aerospace_ProceduralWings
BetterTimeWarp
Chatterer
CommunityCategoryKit
CommunityResourcePack
CTTP
DeployableEngines
DistantObject
DynamicBatteryStorage
EasyVesselSwitch
EnvironmentalVisualEnhancements
Explainer
FerramAerospaceResearch
Firespitter
FShangarExtender
FuelTanksPlus
GravityTurn
GroundConstruction
HeatControl
JSI
KAS
KerbalEngineer
KIS
Kopernicus
KSPRescuePodFix
LETech
MarkIVSystem
MechJeb2
mods.txt
ModularFlightIntegrator
ModuleManager.3.1.1.dll
ModuleManager.ConfigCache
ModuleManager.ConfigSHA
ModuleManager.Physics
ModuleManager.TechTree
NavyFish
NearFutureAeronautics
NearFutureConstruction
NearFutureElectrical
NearFutureLaunchVehicles
NearFutureProps
NearFuturePropulsion
NearFutureSolar
NearFutureSpacecraft
OPM
OPM_FinalFrontier
PlanetShine
PoodsSkyboxes
PreciseNode
ProceduralDynamics
ProceduralParts
RCSBuildAid
RealPlume
RealPlume-Stock
SCANsat
scatterer
ShipManifest
Sigma
SmokeScreen
SpaceY-Expanded
SpaceY-Lifters
Squad
StationPartsExpansionRedux
SurfaceLights
TheWorldBeyond
TrackingStationEvolved
TriggerTech
UmbraSpaceIndustries
VenStockRevamp
WildBlueIndustries
Workshop
zFinal_FilterExtensions
 

 

Link to comment
Share on other sites

Are you 100% sure?

1000% sure?

The screen where you recover your craft actually tells you both, and I always thought the "total funds" was a bit too prominent compared to the "recovered funds"

T0a2MCo.png

That big blue number is your total funds. Recovered funds is right above it, dimmer and less prominent.

Image stolen from this post, unstolen by virtue of attribution:

 

Edited by 5thHorseman
Gramar and speeling fixs.
Link to comment
Share on other sites

I'm 100% sure.

Example of how it looks:

Before recovery, 52.6 mil
OS3gt2q.png

After recovering 83 mil, it should be 52 + 83 mil, but instead:

gW2nNFQ.png

Now, I think I'm onto something here.. I just tried this again (not the same numbers in screenshots there), and checking the persistent.loadmeta I notice the funds is using a float value instead of integer.

So, recovering 49.8 million, while previously having 30 million, nets you:

funds = 49883974.30078125

It's not adding; it's appending. Am I refunding too large sums?

Edited by TackleMcClean
Link to comment
Share on other sites

40 minutes ago, TackleMcClean said:

Am I refunding too large sums?

That could very well be your issue.    Try recovering something for 50k, right off the pad, and see if it works.  Then keep increasing the value till you see a failure. 

This might just be the case of the devs not foreseeing how crazy we really are, and using a variable type that can't handle the size, although, the behavior really doesn't match that exact hypothesis. 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...