Results 1 to 15 of 15

Thread: OpenGL/DirectX Help - Minimap & Glitchy Screen

  1. #1
    Join Date
    Jul 2014
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default OpenGL/DirectX Help - Minimap & Glitchy Screen

    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.
    openglmap.PNG


    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.
    directxscreen.PNG

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

    Happy to do TV if you have the time.

  2. #2
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    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.

  3. #3
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Your VPS doesn't have a graphics card, does it?
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  4. #4
    Join Date
    Jul 2014
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    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.
    Last edited by theorange; 08-07-2014 at 10:20 PM.

  5. #5
    Join Date
    Jul 2014
    Location
    Europe
    Posts
    182
    Mentioned
    7 Post(s)
    Quoted
    103 Post(s)

    Default

    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.
    Last edited by Spaceblow; 08-08-2014 at 09:45 AM.

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    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:


    Simba Code:
    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).
    Last edited by Brandon; 08-07-2014 at 11:25 PM.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Jul 2014
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    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:


    Simba Code:
    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
    directxmode.PNG

    It doesn't have a disable directx mode.

    How do I force it to load smart in directx format?
    Last edited by theorange; 08-08-2014 at 01:04 AM.

  8. #8
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by theorange View Post
    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
    directxmode.PNG

    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/b...9.dll?raw=true OR https://github.com/Brandon-T/DXI/rel.../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)..
    Last edited by Brandon; 08-08-2014 at 02:30 AM.
    I am Ggzz..
    Hackintosher

  9. #9
    Join Date
    Jul 2014
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    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/b...9.dll?raw=true OR https://github.com/Brandon-T/DXI/rel.../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!

  10. #10
    Join Date
    Jul 2014
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    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?

  11. #11
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by theorange View Post
    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.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  12. #12
    Join Date
    Jul 2014
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    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.

  13. #13
    Join Date
    Aug 2014
    Posts
    278
    Mentioned
    10 Post(s)
    Quoted
    113 Post(s)

    Default

    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.

  14. #14
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Cyanempire View Post
    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.

  15. #15
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •