Jump to content

Heavy part buoyancy


L0ck0n

Recommended Posts

9 minutes ago, L0ck0n said:

Is there some way to make really heavy part (with mass like 10000 or more) floating? Maybe something in cfg file?

Yup but it has to proportional if it's going to look right,   But a simple "I dont care what it looks like" method  is to simply add  this line  to your part cfg

buoyancy = 1 // adjust to suit,  1 is the stock value, 

and adjust the number until your part floats , will take many restarts and will require that you delete the module manager cache files and use a new part each time, these changes do not get saved to an existing craft prefab.

Link to comment
Share on other sites

I wrote a small plugin some time ago to play with buoyancy without doing the whole test/reload/test thing. Minimal testing shows it works in 1.4.3 after a recompile. The intent was to be able to adjust buoyancy until I found the value I wanted - then I would write the value down and and make a config file change as SpannerMonkey(smce) mentioned above. You're welcome to use if you want (I did mention it's received minimal testing right?).

To use:

1) Download here - you want the buoyancy _143.zip file (obvious now but I may add others later)

2) Merge the included GameData folder into your test install

3) Edit the GameData\BuoyancyTest\Patch.cfg to patch your part - just replace the "mk1-3pod" in the first line with the in game part name of the part you want to tune

4) Put you part in the water and right click on it - there should be a slider labeled "buoyancy" - adjust to your liking

5) Remember the adjusted value and add the "buoyancy = <your value here>" in the parts config file.

Source code in included and License is MIT.

Edited by wasml
future proofing
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...