Space Engineers

Space Engineers

Not enough ratings
Phoera's PB API Extender
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
126.438 KB
3 Jun, 2016 @ 1:53am
11 Nov, 2016 @ 12:34am
13 Change Notes ( view )

Subscribe to download
Phoera's PB API Extender

Description
Mod which extends data avaliable for programmable blocks via terminal propertyes.
mod must fully work also in multiplayer.
all data is cached for fastest access.

Samples of code:
http://forums.keenswh.com/threads/wip-phoera-pb-api-extender.7384652/#post-1286983091

Part of added features includes:
- Assemblers
Add blocks to queue
Add components/items to queue
Read what assembler can produce.
Full access to queue
Add all missing blocks from projector to queue.

- Thrusters
Read max thrust(in newtons)

- Gas Tanks
Read capacity(in litres)
Read gas type(no more plays with subtype id)

- Batteryes
Read max input(in MW)
Read max output(in MW)

- Remote Control
Access to flight mode(temporary, while KSH not applyed my fix for property itself)

- Ship Controller(Both cockpit and remote control)
Gravity source info(center and max gravity)(always check max gravity for 0)

- Rotor
- Advanced Rotor
- Piston
- Wheel suspension
Allows to get connected grid(if exists)

DEV-ONLY
Font access for text panels.

info of properties here

WARNING!
Assembler properties changed, check prop info.

Feed back and suggestions are appreciated.
I will try to keep it errorless, but if you encounter any, please send me logs via PasteBin.
Popular Discussions View All (1)
18
10 Nov, 2016 @ 1:17pm
PINNED: new property list
Phoera
49 Comments
spidererrol 5 May, 2019 @ 11:54am 
This doesn't appear to work with the current version of space engineers (1.190.1) at least the extended IMyAssembler properties are no longer available.
Exis 2 Dec, 2018 @ 5:15pm 
I had a very odd crash related to this mod, whenever i placed a rotor it would crash my game. I have alot of mods installed but the only reason i singled out this one was because of the log.

@phoera PM me if you want the log.
Phoera  [author] 23 Jul, 2018 @ 3:12am 
not exactly, since those data not avaliaiable to modAPI(at least was not, when i was last time in SE)
so to do that, you must rewrite those subsystems in modAPI.
lblackthorne 21 Jul, 2018 @ 9:05pm 
I know this mod is a bit old, but do you think it might be possible to add the ability to get a list of detected items from the antenna and ore detector?

I've been considering something similar to give myself the tools I can't get from KSH.
Phoera  [author] 1 Feb, 2017 @ 10:13am 
you have same file in game folder.
maskisland 29 Jan, 2017 @ 8:44pm 
Finally get this right by reading the xmls on github repo.

The Id for Construction Component is Actually ConstructionComponent.
so for Girder, computer and motor.
maskisland 26 Jan, 2017 @ 10:45pm 
For the assembler queue manipulation. For some reason the following items does not response to add to queue command:

MyObjectBuilder_Component/Construction
MyObjectBuidler_Component/Girder
MyObjectBuidler_Component/Computer
MyObjectBuidler_Component/Motor

Also tried id without "MyObjectBuilder_", same result.
Phoera  [author] 20 Jan, 2017 @ 3:36am 
I will update it on weekend.
i forgot about it, sorry.
Brewmeistor 18 Jan, 2017 @ 9:37pm 
Hi, is the ability to set the font name for IMyTextpanels in the Stable build? Will it be part of the ModAPI.Ingame namespace and not require a separate mod to implement?

Yes, I would like to switch to the Monospace font via a Programmable Block script.

Thanks,
Brew