I've tried the models but it didn't show me any model id's.
I've tried the models but it didn't show me any model id's.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
I do. When I used the models debugmode, it didn't show me the fishing spots. It showed me players and when I wanted to let it kill some chickens, it showed me the chicken id's aswell. Fishing spots = the bubbling water that you can click on.
I'm happy to announce that code hints and the function list are fully supported now in the latest ogLib update. This should be make starting out with the include a lot easier and lead to faster, more fun scripting!
Enjoy
I'll be right back with the guide update now.
![]()
Last edited by Clarity; 06-01-2015 at 01:34 AM.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
Nvm i'll just send over skype
Updated tutorial to work with latest ogLib. Thanks @Bly for saving me some time!![]()
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
What's up with the access violation?
And here's the picture:
![]()
Ok, I found the right modelid.
For people that wonder what the fishingspot modelid is:
fishSpot := ogl.getModels(3122259503);
But still, I don't know why I keep getting this access violation :S
In computing, a segmentation fault (often shortened to segfault) or access violation is a fault raised by hardware with memory protection, notifying an operating system (OS) about a memory access violation; on x86 computers this is a form of general protection fault.
An operating system, as defined by Google, is the software that supports a computer's basic functions, such as scheduling tasks, executing applications, and controlling peripherals.
If you're still confused, I saved you a further Google, and will define a peripheral device. A peripheral device is generally defined as any auxiliary device such as a computer mouse or keyboard, that connects to and works with the computer in some way. Other examples of peripherals are image scanners, tape drives, microphones, loudspeakers, webcams, and digital cameras.
Ahha.. ok. And now in English? Why does it give me the access violation error?
Make sure your ogLib is updated to the latest version. An access violation is failure to access.
An access violation is a broad error that can happen in many situations, you'll need to post the code that led to the error in order for us to best help you
For instance, you may be trying to work with an empty array of models due to lack of length checking.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
Yush dragon are you still having problems?
edit : removed something i originally posted, forgot something :P
Last edited by Lucidity; 06-03-2015 at 10:35 AM.
It's alternative to color, yes? Is it like Reflection in Simba style? How is it different from reflection, because I sure as hell I'm interestedSo hard for me to pick colors no matter CTS0/2, this is such a tempting perspective.
I found out sometimes I have to restart the Simba client after running the ogLib script once, as I get Access Violation otherwise.
Also, since it finds a model/texture, and clicks based on it, does similar TPA-randomized clicking occur? I saw randomizePointEllipse in Clarity's example script, does it function well enough, anti-ban-measure speaking?
Also curious. If RS's NXT client get's developed, and perhaps OpenGL support get's dropped (will it?), this method could no longer be viable then?
Other than that, looking forward to try it out. My color-finding is horrible.
Would be nice if somebody could answer a few of my questions.
Cheers and thanks a lot for good work!
EDIT:
I found out you can't have setDebugMode and ogl.getModels going on at the same time. Well, you can, but it's buggy, as in sometimes the setDebugMode blocks the getModels, and vice versa. Managed to workaround this by setDebugMode, wait(X), getmodels, wait(Y), until false.
Last edited by Krzysztof; 06-04-2015 at 07:48 PM.
Thanks for replying!
setDebugMode certainly affected getModels. Couldn't get both of them to run, unless I did the mainloop with wait(X) periods between them, for some reason. I could've made a mistake, however.
Will drop DX? I have a pretty old computer, DX works more smoothly, hitches less, and also the game looks quite better. How come it's the one that could get dropped? It's because of the cross-platform and progressively improving driver support?
Last edited by Krzysztof; 06-05-2015 at 10:36 AM.
Thanks for answering, Obscurity.
Now, can somebody tell me what is wrong?
That's the current script. It worked once already, and now for some reason I can't get it to work:
Because I'm not getting any compilling errors, however i do get this:Code:program ogLib; {$i ogLib\lib\core\core.simba} var clientCenter: TPoint; procedure mainLoop; var willowTrees: glModelArray; clickPoint:tPoint; begin willowTrees := ogl.getModels(892814592); clickPoint:= clientCenter.closest(willowTrees)[0].randomizePointEllipse(15); clearDebug; if willowTrees.isEmpty() then writeln('No trees were found.') else clickMouse(clickPoint.x, clickPoint.y, 1); wait(random(5000, 10000)); end; begin ogl.setup(); clientCenter := ogl.getClientMidPoint(); //ogl.setDebugMode('models'); repeat // clearDebug(); mainLoop; // writeLn(ogl.getModels(897174394)); // wait(100000) until false; end.
When I replaced randomizePointEllipse(15); with randomizePoint(36, 32)Code:Error: Access violation at line 1369 >>method.simba gets opened<< line 1369: result:=[self.x+round((funcRadius:=funcDiameter div 2)*(funcRandom:=random())*cos(funcAngle:=random()*(pi*2))),self.y+round((funcRadius*funcRandom)*sin(funcAngle))];
core.simba gets opened instead, and the error line is 779 because of
Code:Error: "0.26179938779915" is an invalid float at line 779 line 779: oglAngleTolerance:=strToFloat(replaceRegExpr('^$',readINI('Default','oglAngleTolerance','includes/ogLib/lib/core/core.ini'),'0.26179938779914943653855361527335',false));
Last edited by Krzysztof; 06-05-2015 at 04:12 PM.
Yeah, you're likely trying to work with arrays that have no contents, hence the access violation error. You will need to make sure you actually find things with the length check in order to proceed, else continue and skip.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
There are currently 1 users browsing this thread. (0 members and 1 guests)