PDA

View Full Version : Oglib help



Cyanempire
12-12-2015, 10:15 AM
i Can`t seem to run any oglib based scripts
i always get a compilation error.
(its a different line for every script)

any help?
i think obscurity told me something about viewport update
which i have no idea what is/ how to update??.

thanks for you help.

trying to get back into the rs3 world. one step at a time

Joopi
12-12-2015, 11:16 AM
https://github.com/ObscuritySRL/ogLib
Press the "Download ZIP" button, delete the content of your old ogLib folder probably located in /Includes/
extract this there, make sure it only extracts the files into the folder, not a folder inside of a folder.

I am not sure whether or not this is actually your problem since I don't use ogLib, but I will gladly try to help you if it doesn't work.

P1ng
12-12-2015, 03:14 PM
Follow the instructions here (https://villavu.com/forum/showthread.php?t=112599) and you can update ogLib as an extension just like you do with SPS etc.

Not sure what script you are trying to run but any personal ones I use the main thing I had to update was:
ogl.setup();
had to be changed to:
ogl.setup([800, 600], [0, 0, 576, 388]);
for a script working with a fixed screen.

Hope this has helped, otherwise if you could post the name of the script or at least the error being thrown that would be very helpful :spot:

Clarity
12-12-2015, 09:32 PM
The scripts you're trying to run might just be out of date. Posting the individual errors are your best plan for getting help.

Cyanempire
12-13-2015, 12:44 AM
i did what p1ng said. got a new compile error
i think im just doing something wrong...
its mostly ross` scripts

Error: Unknown declaration "__graphics" at line 225
Compiling failed. (Ross` Runespan)

Error: Unknown declaration "__graphics" at line 128
Compiling failed. (Ross` AIO WC) same error

yup after i did what p1ng said thats the new compiling error
i get.

Clarity
12-13-2015, 02:07 AM
i did what p1ng said. got a new compile error
i think im just doing something wrong...
its mostly ross` scripts

Error: Unknown declaration "__graphics" at line 225
Compiling failed. (Ross` Runespan)

Error: Unknown declaration "__graphics" at line 128
Compiling failed. (Ross` AIO WC) same error

yup after i did what p1ng said thats the new compiling error
i get.

The script is out of date, you did not do anything wrong.

Change "__graphics" to "graphics" in all instances.