Space Engineers

Space Engineers

(DevTool) Programmable Block DebugAPI
Showing 1-5 of 5 entries
Update: 14 May, 2024 @ 11:03am

- Fixed not compiling in 204 because of unit tests in code, I've disabled that to not be a problem in the future but I can still use it whenever I add new stuff to validate them.

Update: 26 Nov, 2023 @ 12:00am

Backwards compatible changes, you don't need to update the API in your script unless you want the new measure feature.

- Added GetTimestamp() and Measure() + examples in ForPB.cs
- Exposed DefaultOnTop for realtime changing + example in ForPB.cs
( https://github.com/THDigi/PBDrawAPI/blob/master/Data/Scripts/PBDebugAPI/ForPB.cs#L44 )
- Improved on-top rendering by drawing it twice, once in 3D as normal and again very close to camera with half color, making it easier to distinct if you're seeing it or it's behind/intersecting geometry.
- Changed the error on GetAdjustNumber() not finding the ID to remind to not RemoveAll() but instead RemoveDraw() (which did happen to me so here we are xD)
- Updated ForPB_Lite.cs and ForPB_Dummy.cs with the additions, and made lite slightly smaller too by renaming vars.

Update: 31 May, 2022 @ 8:27pm

NOTE: breaking changes, you'll need to update your existing DrawAPI classes and some method renames, sorry xD

- Added new methods for PrintHUD, PrintChat, adjustable number, get tick, remove drawables only.
- Made all PB methods to simply do nothing if the mod is not present, this allows you to leave them in the release code.
- Added chat command: /pbdraw clear.

- Added ForPB_Lite.cs without comments for a cleaner view of the setup.
- Fixed not working on PBs already in world at load time.
- Lots of file renames and various class renames too to better match their purpose.
- Fixed OBB in example being slightly wrong (was drawing from center of each corner cell).

Update: 19 Mar, 2022 @ 2:43pm

- Fixed it spewing errors when world is in online mode (which is still not supported btw :P)

Update: 14 Nov, 2021 @ 10:49am