Jump to content

How to update PartInfo after a game loads?


Recommended Posts

I'm updating a mod, and would like to be able to adjust the displayed info (via GetInfo) of a part AFTER a game loads, the reason is that one of the values is adjusted based on the game settings.

It's not a problem during gameplay, since I do that on the fly, but I would like the correct information displayed in the editor.

I can't figure out how, it seems that all that information is loaded at the time KSP is loaded and before a save is loaded.

Any ideas?

Link to comment
Share on other sites

I think there was a similar thread on this question a little while ago. 

The GetInfo string is stored in the moduleinfo (s) fields of the available part. So I think you can just identify which module's info needs to be updated and replace it with the new string.

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...