From: Brandon
All of the above solutions/attempts at solutions are nice but they don't have anything to do with the plugins :S.. Here's why..
@OP NEVER loaded the OpenGL plugin OR the Direct-X plugin. You can tell because there is no extra buttons on his SMART which the plugins add. So if you are actually getting the minimap glitch WITHOUT the plugin, then it is in fact RS that is causing it and should be bug reported.
To fix the flashing, load the plugins. SMART cannot capture colours in either mode without it. That's why you will get the flashing. This is also the reason your console says, "Waiting up to 5 minutes…".
You need to do:
smartPlugins := ['opengl32.dll', 'd3d9.dll']; //you don't have to use both. Direct-X is usually better (for windows).
somewhere in your script's main (right before SetupSRL).
Exactly the response I was looking for. I knew I found it odd that the other buttons didn't pop up.
Thanks for that Brandon! Haha now I don't have to develop on my servers xD
————
Is there a way to force it to load in directx? I added that code (I already had it using directx, not the opengl dll), and it always uses opengl. In opengl mode, my minimap is always like in the first post, with most of the map not showing. However when i switch to directX mode my mininmap returns.
In opengl mode (with the minimap blank):
—- Setup area "CLAY_MAP_NEW" in 235ms
– sps.init()
– sps.getPlayerPos(): result = {X = 510, Y = 70}, took 1000 ms
– sps.getPlayerPos(): result = {X = 510, Y = 70}, took 1015 ms
– sps.getPlayerPos(): result = {X = 510, Y = 70}, took 1015 ms
– sps.getPlayerPos(): result = {X = 510, Y = 70}, took 1031 ms
– Succesfully freed SMART[4268]
It does nothing, as the minimap is blank.
If I switch the game settings to directx, the minimap loads, however..
– sps.getPlayerPos(): Angle is at 192.528807709152, Setting angle to 0 degrees
—- TRSMinimap.clickCompass(): Clicked compass
– WARNING: sps.getPlayerPos(): Didn't find enough matches accurately calc your postion
– sps.getPlayerPos(): result = {X = -1, Y = -1}, took 4485 ms
– WARNING: TRSActionBar.__findButton(): Failed to find any vaild bounds
—- TRSActionBar.__find(): result = false
– WARNING: TRSActionBar.__findButton(): Failed to find any vaild bounds
—- TRSActionBar.__find(): result = false
– sps.getPlayerPos(): Angle is at 192.528807709152, Setting angle to 0 degrees
– Succesfully freed SMART[4268]
Successfully executed.
(The button at the bottom of the screen still says disable/enable opengl though)
If I remove the opengl plugin from the smartplugins code, and only have
smartPlugins := ['d3d9.dll'];
The screen flashes in loading mode, and the buttons on the bottom only have
[ATTACH=CONFIG]23754[/ATTACH]
It doesn't have a disable directx mode.
How do I force it to load smart in directx format?