Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 76 to 100 of 197

Thread: OpenGL - A Beginner's Scripting Tutorial

  1. #76
    Join Date
    May 2012
    Location
    Texas
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    I am getting access violations regarding regarding obtaining the coordinates of the player in calling(self.x). This happens in both RandomizePoint as well as RandomizePointEllipse.
    ------------------------------------------------------------------------------------------------------------------
    Fimmy Jallon is here ! Lets get Fimmy!

  2. #77
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Any explanation for this?

    Compiled successfully in 1872 ms.
    Paired with SMART[3924]
    Successfully executed.
    Exception TLPThread.Destroy: Access violation
    Compiled successfully in 2543 ms.
    Paired with SMART[3924]
    Error: Access violation
    Execution failed.
    The following bitmaps were not freed: [0]

  3. #78
    Join Date
    May 2012
    Location
    Texas
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Fr3akNL View Post
    Any explanation for this?

    Compiled successfully in 1872 ms.
    Paired with SMART[3924]
    Successfully executed.
    Exception TLPThread.Destroy: Access violation
    Compiled successfully in 2543 ms.
    Paired with SMART[3924]
    Error: Access violation
    Execution failed.
    The following bitmaps were not freed: [0]
    Just try to disable/re-enable smart and try recompiling. About 5-10 times shld make it work.
    ------------------------------------------------------------------------------------------------------------------
    Fimmy Jallon is here ! Lets get Fimmy!

  4. #79
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Yea well I just restart simba and smart and then its workin again. Never had this problem when my ran 32bit version of windows now im on 64. But java 32bit version

  5. #80
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    SRL-6 has a lot of useful math functions in math.simba. We might copy those over. Apart from those, ogLib should have everything you need to make what you want! Nevertheless I will work on SRLCompatibility when I have time.
    Have you been able to work on SRL compatibility lately?

  6. #81
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    The Access Violation has been explained before.

    As for SRL compatibility, that might be more in Clarity's court.




    Skype: obscuritySRL@outlook.com

  7. #82
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Posted this in the JR help section, as it isn't using the ogLib, but someone might be able to help me with it:
    https://villavu.com/forum/showthread.php?t=113116

  8. #83
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Hey im running into some problems.. For some reason the debug shows the models, but not on the correct position, its like everything is off by 100px to right and 100px down. This makes my bot ALWAYS misclick.. what to do about this?

  9. #84
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Quote Originally Posted by Fr3akNL View Post
    Hey im running into some problems.. For some reason the debug shows the models, but not on the correct position, its like everything is off by 100px to right and 100px down. This makes my bot ALWAYS misclick.. what to do about this?
    You should not be using the old school layout. Make sure the 3D game world is taking up the entire client width and height.

  10. #85
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Hey,

    Lets say I have 4 models to chose to attack.
    I want to attack the first one random out of the 4.
    Then store that one globally.
    After that fight I want to chose out of the other 3, and store the new one model it picks globally, replacing the previous.
    Then chose out of the new 3 again, and so forth.

    This would prevent the script from attacking a monster it just killed a little better.

    How should I do this best? Does anyone have any suggestions?

    I Always end up with way more code then needed.

  11. #86
    Join Date
    Feb 2007
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all, great tutorial! really appreciate the time you've put into it. Secondly, my SIMBA works perfectly with SRL6 but as soon as I try and load up with OGL it likes to tell me that it cannot find my java path.

    I've reset my Java PATH to where it is multiple times... Any ideas?

    Edit: It seems SIMBA/OPENGLPLUGIN only searches for C:\Program Files (x86)\Java\jre7\bin. I had Java 8 Installed; I un installed 8 and just ran Java 7. Works fine now.
    Last edited by PheteyGee; 05-19-2015 at 07:47 AM. Reason: Possible Fix

  12. #87
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    You should not be using the old school layout. Make sure the 3D game world is taking up the entire client width and height.
    Hey man thanks it is working now, I also changed the width of the client and working like a charm.

    Another question:

    In this tutorial, there is shown how to attack a single model ID, if I'm correct.
    Now I was trying to make some openGL mining script, but the model of the rocks are the same for every kind of ore. How should I do this? And how to add multiple ID's instead of one?

    Thxn in advance!

  13. #88
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by PheteyGee View Post
    First of all, great tutorial! really appreciate the time you've put into it. Secondly, my SIMBA works perfectly with SRL6 but as soon as I try and load up with OGL it likes to tell me that it cannot find my java path.

    I've reset my Java PATH to where it is multiple times... Any ideas?

    Edit: It seems SIMBA/OPENGLPLUGIN only searches for C:\Program Files (x86)\Java\jre7\bin. I had Java 8 Installed; I un installed 8 and just ran Java 7. Works fine now.
    I have java 8 and 7 installed and both openGL and smart/srl are working great

  14. #89
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Quote Originally Posted by lovebotter View Post
    Hey,

    Lets say I have 4 models to chose to attack.
    I want to attack the first one random out of the 4.
    Then store that one globally.
    After that fight I want to chose out of the other 3, and store the new one model it picks globally, replacing the previous.
    Then chose out of the new 3 again, and so forth.

    This would prevent the script from attacking a monster it just killed a little better.

    How should I do this best? Does anyone have any suggestions?

    I Always end up with way more code then needed.
    Check my profile/recent posts. I explained this recently.

    As for the Java posts, you could just copy/duplicate your current Java folder and rename it JRE7.




    Skype: obscuritySRL@outlook.com

  15. #90
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Quote Originally Posted by Obscurity View Post
    Check my profile/recent posts. I explained this recently.

    As for the Java posts, you could just copy/duplicate your current Java folder and rename it JRE7.
    I'm pretty sure you mean something different. I dont want to get a tpoint where my last model/fight was and filter that location. I want it to attack a different model entirely.

  16. #91
    Join Date
    Feb 2007
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Fr3akNL View Post
    I have java 8 and 7 installed and both openGL and smart/srl are working great
    Hmm, next time you load up a SMART client can you tell me if it runs jre7 or 8.1 please. I didn't have 7 installed at all, which was my problem. Would be interesting to see if yours utilises 8 .

  17. #92
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Apologies to everyone, ogLib has changed a lot since the publishing of this tutorial. Now that I have graduated I finally have time to update! Check the first post in the next day or so

  18. #93
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    Apologies to everyone, ogLib has changed a lot since the publishing of this tutorial. Now that I have graduated I finally have time to update! Check the first post in the next day or so
    Congratulations!

  19. #94
    Join Date
    Feb 2015
    Location
    Taguig, Philippines
    Posts
    342
    Mentioned
    15 Post(s)
    Quoted
    137 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    Apologies to everyone, ogLib has changed a lot since the publishing of this tutorial. Now that I have graduated I finally have time to update! Check the first post in the next day or so
    Congratulations!

  20. #95
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by PheteyGee View Post
    Hmm, next time you load up a SMART client can you tell me if it runs jre7 or 8.1 please. I didn't have 7 installed at all, which was my problem. Would be interesting to see if yours utilises 8 .
    Hey I run x64 version of Windows 7 and smart is running fine with Java 8(Use the x86 version because x64 somehow spawns "My documents" for me..
    Everything is working with 8 except openGL (its throwing an exception) because this requires java 7 for some reason.

    Hope this helped

    note: All java versions are I use are x86 because I think simba doesn't like x64 java.

    edit:

    Proof of working: Java 8 Smart.png

  21. #96
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Btw haven't you changed the isbehindinterface name a while ago?
    I'm unsure if the guide has been updated aswell, but I remember it wasnt a couple of days ago

  22. #97
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    I'd suggest to make another debugmode for map stuff like Fishing Spots or teleporters and all that.

  23. #98
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Yush Dragon View Post
    I'd suggest to make another debugmode for map stuff like Fishing Spots or teleporters and all that.
    you mean the icons? those are textures.

  24. #99
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    No, I mean like the actual fishing spots on the mainscreen.

  25. #100
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

Page 4 of 8 FirstFirst ... 23456 ... LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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