accessing the code of a programmable block via ModAPI
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.
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
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:
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:
Community doesn't accept new feedback!