accessing the code of a programmable block via ModAPI

HOOK Hawkins shared this feedback 4 years ago
Submitted

Making the code of a programmable block availible inside the modAPI to enable remote updates of scripts.

My usecase: A communication-script inside every ship / drone should be able to get remote-updates when in range of a central antenne. This antenna holds a new version of the script as a string and accesses any ship's / drone's programmable block and replaceses its code. Right now you need to swap out the version manually in every ship / drone.

Replies (1)

photo
1

Not sure when it was added but at least since 2020 based on mods that use it.


IMyProgrammableBlock has this:

	/// <summary>
	/// Program contents. Automatically recompiles when set, if possible.
	/// </summary>
	string ProgramData
	{
		get;
		set;
	}
Therefore can be marked solved :}


And mods that do the use case:


Leave a Comment
 
Attach a file