SRL Archive - General Botting Help

OpenGL/DirectX Help - Minimap & Glitchy Screen


theorange

2014-08-07 08:38:25

I'm trying to develop a script right now, and when I open SMART in Opengl, the minimap is ALWAYS like this: (everything is gone except for npc/loot dots, even when i teleport/reload smart, it is still like this.
[ATTACH=CONFIG]23747[/ATTACH]


When I switch to directX and use the directx plugin, the minimap works, however, when it hits the login screen, this is what shows (there is no option for disable directx, idk why), and on that screen it is constatly flashing black to that, saying loading -please wait at the top left corner.
[ATTACH=CONFIG]23748[/ATTACH]

Any ideas on how to fix this? Smart is version 8.3

Happy to do TV if you have the time.

cosmasjdz

2014-08-07 08:57:31

had this problem before and fixed. All you need to do is not to use integrated video card if u on laptop, use the real one like nividia. and UPDATE drivers. This helped for me, hope it will work for you.

KeepBotting

2014-08-07 17:30:19

Your VPS doesn't have a graphics card, does it?

theorange

2014-08-07 17:42:24

From: KeepBotting
Your VPS doesn't have a graphics card, does it?


The dedicated server actually works fine, its my physical laptop that is now having this issue. Right now my solution is just to develop the servers, but being able figure out/fix the problem on the laptop would be ideal.

Spaceblow

2014-08-07 19:05:21

I also have this problem, it fixes it when I run to a point where it has to refresh the minimap, then it works again. But it's kind of annoying that I have to do this every time I want to use SMART. My drivers for my AMD Radeon HD 7850 are up to date. This problem only occurs when I'm using OpenGL. I hope somebody could help us, this is very annoying.

EDIT: I wasn't aware that there's a Direct-X plugin… Now the problem is fixed for me. :)

Brandon

2014-08-07 19:21:35

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).

theorange

2014-08-07 20:45:09

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?

Brandon

2014-08-07 22:27:32

From: theorange
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?

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?



That's correct. You can remove 'OpenGL32.dll' from the SmartPlugins array. However, you need to make sure your SMART loaded the direct-x plugin. Go to C:/Simba/Plugins or wherever your Simba is. Check if it has d3d9.dll in there. Judging from that picture, I can only assume 2 things.

A: The plugin failed to load for some reason.

OR

B: You just don't have the plugin.



Navigate to your Plugins folder. You should see something like:

C:/Simba/Plugins/libsmartremote32.dll
C:/Simba/Plugins/libsmartjni32.dll
C:/Simba/Plugins/OpenGL32.dll
C:/Simba/Plugins/D3D9.dll
C:/Simba/Plugins/Smart.jar

etc.. etc..

If d3d9.dll isn't there, you can download it from: https://github.com/SRL/SRL-Plugins/blob/master/plugins/d3d9.dll?raw=true OR https://github.com/Brandon-T/DXI/releases/download/v0.4/d3d9.dll

Either one is fine. Then place it in C:/Simba/Plugins or wherever your Simba plugins folder is located. Then try loading SMART and switch your graphics settings to Direct-X.

If it is already there and you're already in Direct-X mode in RS, then copy paste your SMART console here so that I can look at it further (if the above does not solve the problem)..

theorange

2014-08-07 23:04:12

From: Brandon
That's correct. You can remove 'OpenGL32.dll' from the SmartPlugins array. However, you need to make sure your SMART loaded the direct-x plugin. Go to C:/Simba/Plugins or wherever your Simba is. Check if it has d3d9.dll in there. Judging from that picture, I can only assume 2 things.

A: The plugin failed to load for some reason.

OR

B: You just don't have the plugin.



Navigate to your Plugins folder. You should see something like:

C:/Simba/Plugins/libsmartremote32.dll
C:/Simba/Plugins/libsmartjni32.dll
C:/Simba/Plugins/OpenGL32.dll
C:/Simba/Plugins/D3D9.dll
C:/Simba/Plugins/Smart.jar

etc.. etc..

If d3d9.dll isn't there, you can download it from: https://github.com/SRL/SRL-Plugins/blob/master/plugins/d3d9.dll?raw=true OR https://github.com/Brandon-T/DXI/releases/download/v0.4/d3d9.dll

Either one is fine. Then place it in C:/Simba/Plugins or wherever your Simba plugins folder is located. Then try loading SMART and switch your graphics settings to Direct-X.

If it is already there and you're already in Direct-X mode in RS, then copy paste your SMART console here so that I can look at it further (if the above does not solve the problem)..

Oh wow I feel silly. I am almost certain that I had previously downloaded the plugin on this computer before, I suppose it might have gotten deleted in my process of installing/uninstalling simba and forgetting to replace the dll file.

Good to know that those buttons come up when you don't actually have the plugins properly installed though. It works now, thank you for your help!

theorange

2014-08-10 15:34:20

From: KeepBotting
Your VPS doesn't have a graphics card, does it?


After revisting this, yes, this is the problem. Although the servers have high specs, I don't believe that they have their own indvidual graphic cards. I'm writing work-arounds for the errors it causes, but yeah also working on changing to servers that have their own non-integrated graphic cards.

I'm curious that it still works, albeit glitch-y, as they don't really have their own graphic cards?

KeepBotting

2014-08-10 15:56:03

From: theorange
After revisting this, yes, this is the problem. Although the servers have high specs, I don't believe that they have their own indvidual graphic cards. I'm writing work-arounds for the errors it causes, but yeah also working on changing to servers that have their own non-integrated graphic cards.

I'm curious that it still works, albeit glitch-y, as they don't really have their own graphic cards?
Virtual servers work off the host machine's graphics card, which (being a server machine itself) is either nonexistent or integrated.

theorange

2014-08-10 16:47:45

From: KeepBotting
Virtual servers work off the host machine's graphics card, which (being a server machine itself) is either nonexistent or integrated.


I have dedicated servers, not a virtual server. It is my understand that I might be able to work something out with my hosting company to add their own graphics card, or find one that will do that/has that in their plans.

Cyanempire

2014-08-26 05:15:26

Can anyone help me on this i have the same issue and my plugins are there. i think most of scripts im running doesnt work because my mini map disappears like in his case.

riwu

2014-08-26 06:40:27

From: Cyanempire
Can anyone help me on this i have the same issue and my plugins are there. i think most of scripts im running doesnt work because my mini map disappears like in his case.

As Brandon has said, it's an issue on jagex side. Either use DX mode or update/switch ur graphic card&driver.

Lipcot

2014-08-26 15:03:54

yeah, rs sucks, i cant even opengl , with or without plugin, it just crashes lol. Its a pretty common error with RS (from what i read from the internet) and has to do with what was said above about integrated graphics cards