SRL Archive - Jr. Member General Help and Discussion

Is it possible?


Lucidity

2014-08-28 12:06:50

Are you able to bind a script with drawing debug text onto a regular rs client? I always got an exception in script when I did.

tls

2014-08-28 12:36:36

Unless you are using a plugin, such as DirectX or OpenGL, no.

Brandon

2014-08-28 13:20:15

From: Blytez
Are you able to bind a script with drawing debug text onto a regular rs client? I always got an exception in script when I did.



As ^ said, it's not possible without a plugin OR native interface.. In other words, with or without a plugin, you can use GetTClient.getHandle() to get a:


Linux:

Display*

or

Windows:


HWND


and using those, you can draw on top of any single-buffered backed window (almost all windows except OpenGL & Direct-X which will flicker).. You can also double buffer your drawing to reduce flicker on double-buffered backed windows.

But there's no native interfaces for Simba (unless using PascalScript [not Lape] which allows Native System Calls).

Lucidity

2014-08-29 20:21:45

Bump, didn't really get what you said.

xception in Script: Runtime error: "Access violation" at line 78, column 17 in file "C:\Simba\Includes\srl-6\lib\utilities\drawing.simba"

Olly

2014-08-29 20:42:05

From: Blytez
Bump, didn't really get what you said.

xception in Script: Runtime error: "Access violation" at line 78, column 17 in file "C:\Simba\Includes\srl-6\lib\utilities\drawing.simba"


It's not possible unless you use a plugin.