Page 16 of 17 FirstFirst ... 614151617 LastLast
Results 376 to 400 of 422

Thread: Smart-Overhaul

  1. #376
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    Not your cache, only those two files, restore your cache if you can. Only the preference ones should be deleted as well as all .#### files. Use your java 7. Tbh even try uninstalling jdk, then after you switch into ogl, reinstall



    Edit: Solved.

    Make sure to have all functions from the test script on page 14 on the script to fix it.
    Last edited by DemiseScythe; 06-30-2013 at 02:26 AM.

  2. #377
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    I apologize as I do hate asking questions even now :s

    As you can see, it appears to me that the OpenGL plugin is loading (and it tells me it's loading).


    However, I seem to be having some sort of issue with it even still as I can't seem to access many of the functions in it as seen here:

    I am grabbing every *.dll in the "Smart v8.1 Rev 5.7\SMART\bin" folder and pasting them all in the "Simba\Plugins" folder. I'm not really sure where to go with this now, if you (or anyone else here) would have any idea of how to go about working around this?

    edit - the include for the script would be"
    Simba Code:
    {$DEFINE SMART}
    {$DEFINE GLHOOK}
    {$I SRL/SRL.Simba}
    {$I GLHook/GLHook.Simba}

  3. #378
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    If you can see the paint, the plugin is working. Keep playing around until you get used to OGL.

  4. #379
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by DemiseScythe View Post
    If you can see the paint, the plugin is working. Keep playing around until you get used to OGL.
    But I can't call several function that (I believe) are stored in the plugin. Several functions I would refer to as important such as GLHEnabledFilter or GLHFilterModelsArea.

  5. #380
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Kevin View Post
    But I can't call several function that (I believe) are stored in the plugin. Several functions I would refer to as important such as GLHEnabledFilter or GLHFilterModelsArea.
    Did the function names change with the most recent OpenGL plugin? When you load the plugin for the first time in Simba all of the functions should be printed in the debug box. From there you can check if the functions still exist of if they've been renamed recently.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  6. #381
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Did the function names change with the most recent OpenGL plugin? When you load the plugin for the first time in Simba all of the functions should be printed in the debug box. From there you can check if the functions still exist of if they've been renamed recently.
    Hmm... Maybe I'm looking through the function list incorrectly, but I can't see any of the GLH functions - the ones I can successfully call nor the ones I can't call.

    As a side note, how does one find the MeanID of an item?

  7. #382
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    Quote Originally Posted by Kevin View Post
    Hmm... Maybe I'm looking through the function list incorrectly, but I can't see any of the GLH functions - the ones I can successfully call nor the ones I can't call.

    As a side note, how does one find the MeanID of an item?
    Simba Code:
    procedure GLH_IdentifyItem(x1, y1, x2, y2: Integer);
    var
      I, L: Integer;
      GI: TTextureArray;
    begin
      ClearDebug;
      GI := GLHook_GetTexturesByArea(InttoBox(x1, y1, x2, y2));
      L := Length(GI);
      if L > 0 then
      begin
        for I := 1 to L-1 do
        begin
          Writeln('Item Number: ' + IntToStr(I));
          Writeln('Coordinates: (' + IntToStr(GI[I].X) + ', ' + IntToStr(GI[I].Y-50) + ')');
          Writeln('BaseID: ' + IntToStr(GI[I].BaseID));
          Writeln('MeanID: ' + IntToStr(GI[I].MeanID));
        end;
      end;
    end;

    You can identify 28 items at a time by having them in inventory
    1234
    5678
    9...

    use this params:

    GLH_IdentifyItem(545, 255, 740, 515);

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

    Default

    Quote Originally Posted by Kevin View Post
    Hmm... Maybe I'm looking through the function list incorrectly, but I can't see any of the GLH functions - the ones I can successfully call nor the ones I can't call.

    As a side note, how does one find the MeanID of an item?

    You're simply using the wrong plugin. I need to update the OP. I'll do it later but if you download the plugins from "GLHook v3.0" as it says on the OP, you'll be able to see the GLHFilter* functions. Then you can simply do: GLHDrawHudTexture(SomeID); and it'll display all information about that specific texture on screen. It'll display everything you need to know. Or you can do what Demise just showed above.
    Last edited by Brandon; 06-30-2013 at 05:05 AM.
    I am Ggzz..
    Hackintosher

  9. #384
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    You're simply using the wrong plugin. I need to update the OP. I'll do it later but if you download the plugins from "GLHook v3.0" as it says on the OP, you'll be able to see the GLHFilter* functions. Then you can simply do: GLHDrawHudTexture(SomeID); and it'll display all information about that specific texture on screen. It'll display everything you need to know. Or you can do what Demise just showed above.
    As in: "GLHook v3.0\GLHook\bin\Release\GLHook.dll" and "GLHook v3.0\OpenGL32\bin\OpenGL32.dll" to "Simba\Plugins"? When I use those dlls instead, I have an even more limited access among the functions wherein I can't even access functions like 'GLHGetPanelItems' (and neither set of dlls allow access to GLHDrawHudTexture as far as I can see).

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

    Default

    Quote Originally Posted by Kevin View Post
    As in: "GLHook v3.0\GLHook\bin\Release\GLHook.dll" and "GLHook v3.0\OpenGL32\bin\OpenGL32.dll" to "Simba\Plugins"? When I use those dlls instead, I have an even more limited access among the functions wherein I can't even access functions like 'GLHGetPanelItems' (and neither set of dlls allow access to GLHDrawHudTexture as far as I can see).


    Or you're just not calling the right functions:


    Look through the include. There is no function with "Panel" in the name. Look in the Simba console and you should see the function is GLHDrawTextureHud.
    I am Ggzz..
    Hackintosher

  11. #386
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Aw. 'GLHDrawHudTexture' was the name you originally said; sorry I didn't even check for any similar names.

    As for 'GLHGetPanelItems': that is most definitely called within GLCommunication.Simba. So would that include be invalid, referencing old code and simply remaining outdated?

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

    Default

    Quote Originally Posted by Kevin View Post
    Aw. 'GLHDrawHudTexture' was the name you originally said; sorry I didn't even check for any similar names.

    As for 'GLHGetPanelItems': that is most definitely called within GLCommunication.Simba. So would that include be invalid, referencing old code and simply remaining outdated?

    No you just never updated your include (it came with the DLLs). I just finished re-writing Smart from scratch again and updating the OP and the Github for all three projects. It shouldn't be hard to install now. It's an exact copy of the original Smartv8.1 with some of the new features added. It shouldn't have any problems. Did 103 tests straight no problems/bugs found.. Hopefully it's the same for everyone.

    No one should have a problem installing now I hope (No SRL-Include changes either). Same installation as the Original Smart v8.x.
    Last edited by Brandon; 06-30-2013 at 09:34 AM.
    I am Ggzz..
    Hackintosher

  13. #388
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    The latest files don't have .simba files is this how it's supposed to be? Last time I had to replace abunch of include files.

    Also, whats a test for the new smart to get it to load?
    this one gives me a smart params error

    Simba Code:
    {$DEFINE SMART}
    {$I SRL/SRL.Simba}

    begin
      setupsrl;

    end.
    thanks

  14. #389
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    The latest files don't have .simba files is this how it's supposed to be? Last time I had to replace abunch of include files.

    Also, whats a test for the new smart to get it to load?
    this one gives me a smart params error

    Simba Code:
    {$DEFINE SMART}
    {$I SRL/SRL.Simba}

    begin
      setupsrl;

    end.
    thanks
    Quote Originally Posted by Brandon View Post

    No one should have a problem installing now I hope (No SRL-Include changes either). Same installation as the Original Smart v8.x.
    ...
    SRL->setting->override update
    SRL->Update.

    As for the params problem fix it yourself. go to the file and add an extra parameter to the function under {$IFDEF SMART8}. If your gonna use the smart put {DEFINE SMART8} at the top of your script.
    Last edited by Kasi; 06-30-2013 at 05:15 PM.

  15. #390
    Join Date
    Feb 2013
    Posts
    89
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    ererm how do i install this?

  16. #391
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Kasi View Post
    ...
    SRL->setting->override update
    SRL->Update.

    As for the params problem fix it yourself. go to the file and add an extra parameter to the function under {$IFDEF SMART8}. If your gonna use the smart put {DEFINE SMART8} at the top of your script.
    But he said there should be no problems:

    Simba Code:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
    <--- type mismatch

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

    Default

    Quote Originally Posted by Officer Barbrady View Post
    The latest files don't have .simba files is this how it's supposed to be? Last time I had to replace abunch of include files.

    Also, whats a test for the new smart to get it to load?
    this one gives me a smart params error

    Exactly the same as the original Smart v8.1.. See this old 2012 post:

    http://villavu.com/forum/showthread....30#post1102330
    Last edited by Brandon; 06-30-2013 at 05:31 PM.
    I am Ggzz..
    Hackintosher

  18. #393
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Exactly the same as the original Smart v8.1.. See this old 2012 post:

    http://villavu.com/forum/showthread....30#post1102330
    W0000T:


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

    Default

    Quote Originally Posted by Officer Barbrady View Post
    W0000T
    See it actually works on your comp now. FINALLY! Lol. Guess your comp hated the C++x11 features Aka the console.

    You can do SmartShowConsole(true/false); right before SetupSRL if you want debugging. Hopefully it works for everyone else too. I'm heading out to Ribfest so yeah. I'll check in on the thread later.
    I am Ggzz..
    Hackintosher

  20. #395
    Join Date
    Feb 2013
    Posts
    89
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    so what files do i put where? do i just use the bin?

  21. #396
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by xxpoopyxx View Post
    so what files do i put where? do i just use the bin?
    https://mega.co.nz/#!ZJh0ibSR!IdAsY1...ECoMY6KW4sCEzk

    extract and run that. if your Simba Path aint "C:\Simba" then change it when it prompts you.

  22. #397
    Join Date
    Feb 2013
    Posts
    89
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    k got it any official release coming?

  23. #398
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    How do you make it load OpenGL with the newest one now?
    I get a acess voilation error when I try to print the GL_uptext
    Also, the screen freezes when I try to set the mode to openGL, but I am able to set the mode to OpenGL via RS

  24. #399
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    How do you make it load OpenGL with the newest one now?
    I get a acess voilation error when I try to print the GL_uptext
    Also, the screen freezes when I try to set the mode to openGL, but I am able to set the mode to OpenGL via RS
    no way you can do it with that include (SmartParams.simba), make your own function to load it. the last param of SmartSpawnClient is plugins.

  25. #400
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Firstly my own fault, but as a note: I ran the new installer, and it may be good to think first about how it overrides all includes one may or may not have been working on <.<

    Also, having now run the installer, my SmartParams seems to be referencing a new procedure: 'SmartClientCount' that can't be found? Replacing that with the original version of 'SmartGetClients' fixes that. After that, I'm back to introducing issues that had long since gone away and now I can no longer run the example script I include at the end due to the long since mentioned failure to find the function 'GLHGeTTextures' mentioned in GLCommunication.Simba.

    I assume this was supposed to be as simple as running the newly included bat file "runme_noob.bat" and directing it at the relevant simba folder?


    Simba Code:
    {$DEFINE GLHOOK}
    {$DEFINE SMART}
    {$I GLHook/GLHook.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
       
    begin
      ClearDebug;
      Smart_Plugins := 'OpenGL32.dll';
      SetupSRL;
      SmartSetOperatingMode(0); //To Safemode.

      if (NOT GLHSetup(ToStr(SMART_CURRENTCLIENT))) THEN
      Begin
        Writeln('Failed to Setup GLHook. Please Check your Installation.');
      End;

      SmartSetOperatingMode(1); //To OpenGLMode.
      GLHSetDebug(True, true, 0);

      //Testing Mouse Drawing GLX Beta Test v0.1..
      while(true)do
      begin
        MMouse(Random(100), Random(100), 1, 1);
        sleep(10);
      end;  
    end.

    Edit: As another note - I did have it all working before I ran the new installer for any updates.

    Final Edit: Kasi helped me out with this. It appears certain dlls weren't being overridden till he manually deleted them and re-updated.

Page 16 of 17 FirstFirst ... 614151617 LastLast

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
  •