[1.190.1] Corner LCDs report a wrong SurfaceSize

Isy shared this bug 3 years ago
Outdated

When getting the surface size of a corner LCD with the new IMyTextSurface.SurfaceSize property, it returns a Vector2 {X:512 Y:512}. Same results can be seen when getting the IMyTextSurface.TextureSize.


This seems to be wrong since a large LCD has the same dimensions.


From my testing, the corner LCD should only have a SurfaceSize of {X:512 Y:86,399}. I measured this with IMyTextSurface.MeasureStringInPixels(new StringBuilder("Test"), "DEBUG", 3f), because at a font size of 3, the screen is filled with text entirely (heightwise).


Getting correct results is crucial to do any kind of sprite drawing or proper linebreaks on the screen when used by scripts!

Replies (4)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

photo
2

Ive noticed that the stock velocity script is visually MIA on the top flat small lcd block. Was trying to integrate it into my somewhat cramped rover's cockpit when i noticed the screens are halved and lopsided(?), may help somewhat? Top left, artificial horizon. Top right, analog clock.

photo
1

Hi,

i just stumbled over the same bug by trying to calculate a position on a screen, no matter which.


@Support team: Fixing this bug is most likely done in a few minutes by your devs. Please consider that this bug would be fixed probably very easily and fast, when prioritizing this bug.

Furthermore since drawing on LCDs by script is mostly undocumented and this bug makes it really hard and annoying when trying to make your first LCD drawing script (which is also a point to upvote this bug).


Greetings, Michel_0

photo
1

In the new public beta it's "fixed"... kind of. This size is correct but position way off. See this post.

Leave a Comment
 
Attach a file