bottingbackup Posted July 26, 2013 Share Posted July 26, 2013 [ERROR][07/26/13 03:01:06 PM]: Error on paint : MasterFarmerThief! java.lang.ArrayIndexOutOfBoundsException: -1 at GUIPaint.addCell(GUIPaint.java:95) at MasterFarmerThief.onPaint(MasterFarmerThief.java:183) at org.osbot.engine.Bot.L(zk:427) at org.osbot.engine.canvas.BotCanvas.L(gp:21) at org.osbot.lPt1.L(vo:208) at org.osbot.engine.canvas.BotCanvas.getGraphics(gp:223) at client.j(client.java:1259) at bs.pp(bs.java:205) at bs.run(bs.java:162) at java.lang.Thread.run(Unknown Source) What is causing this problem? Link to comment Share on other sites More sharing options...
Isolate Posted February 12, 2014 Share Posted February 12, 2014 http://uppit.com/vrkhkxohfryb/GUIPaint.java please add a new link Link to comment Share on other sites More sharing options...
Isolate Posted February 18, 2014 Share Posted February 18, 2014 http://uppit.com/vrkhkxohfryb/GUIPaint.java Divine Plez.... Link to comment Share on other sites More sharing options...
Swift Posted February 18, 2014 Share Posted February 18, 2014 Divine Plez.... If you have basic java knowledge you should be able to write one yourself. Link to comment Share on other sites More sharing options...
Isolate Posted February 18, 2014 Share Posted February 18, 2014 If you have basic java knowledge you should be able to write one yourself. oh sorry i missed the part here where i asked for your opinion ^_^ Link to comment Share on other sites More sharing options...
lolop99 Posted February 18, 2014 Share Posted February 18, 2014 nice Link to comment Share on other sites More sharing options...
Isolate Posted February 24, 2014 Share Posted February 24, 2014 Divine's GUI Paint System What is this paint system, and how can it benefit me?: This is an open source class which you can implement into any script for extremely quick + clean paint. It is not paint, but can be used instead or along with paint. It is a seperate window which displays whatever information you wish to display!How easy is it?: Notice how few lines create and draw the entire window: Media: Does it consume a lot of memory?: Very low memory usage, much smaller than drawing paint on the client screen.Instructions for use: Add the new .java file into your project (GUIPaint.java). Code with few easy methods. Make sure to include the compiled .class inside the script jar, or along with the other script classes. Code Syntax: This code goes in onPaint(Graphics g) inside YOUR script. Always start with this line: GUIPaint.buildFrame("GUI WINDOW TITLE"); Then, you MUST define a category. When you want to set a new category, after the last cell in the previous category, use the same code again. GUIPaint.setCategory("Category Name"); Next, add as many cells as you wish! If you go too high, specify in GUIPaint.buildFrame(name, MAX_CELLS) to increase the maximum amount of cells. The default is 20. Also, addCell supports value types of String, doubles, booleans, longs, and integers. GUIPaint.addCell("NAME OF ITEM (WITHOUT COLON)", "VALUE"); Always End with RefreshPaint(): GUIPaint.RefreshPaint(); To have the Window CLOSE on script exit, add GUIHandler.CloseGUI() inside your onExit(): public void onExit() { GUIPaint.CloseGUI(); } A good example of a full implementation, displaying static text: public void onPaint(Graphics g) { GUIPaint.buildFrame("Clay Miner"); GUIPaint.setCategory("Time"); GUIPaint.addCell("Time Running", "00:00:00"); GUIPaint.setCategory("Clay"); GUIPaint.addCell("Clay", 0); GUIPaint.addCell("Clay / Hour", 0); GUIPaint.setCategory("Experience"); GUIPaint.addCell("Experience", 0); GUIPaint.addCell("Experience / Hour", 0); GUIPaint.RefreshPaint(); } public void onExit() { GUIPaint.CloseGUI(); } Download the GUIPaint class HERE: http://uppit.com/vrkhkxohfryb/GUIPaint.java Divine, do you still have a copy of this i may have. Link to comment Share on other sites More sharing options...
GoldenGates Posted February 24, 2014 Share Posted February 24, 2014 Rather than copy pasting other's code. Try figuring it out yourself. As a Script Writer (assuming from your signature) you should be able to look into the Java libraries or even Google as problem like this. Just pointing it out, not intending to be harsh. Link to comment Share on other sites More sharing options...
Isolate Posted February 24, 2014 Share Posted February 24, 2014 Rather than copy pasting other's code. Try figuring it out yourself. As a Script Writer (assuming from your signature) you should be able to look into the Java libraries or even Google as problem like this. Just pointing it out, not intending to be harsh. i understand what you're saying. and i am a SW for another site, i just wanted to know if he still had it, unlike the misconception you all have about java and script writing, i have not learnt java profficiently, i learnt to write scripts, they are 2 completely different things. ill google docs now then :* Link to comment Share on other sites More sharing options...
Wiz Khalifa Posted February 24, 2014 Share Posted February 24, 2014 i understand what you're saying. and i am a SW for another site, i just wanted to know if he still had it, unlike the misconception you all have about java and script writing, i have not learnt java profficiently, i learnt to write scripts, they are 2 completely different things. ill google docs now then :* On what site are you an script writer? Link to comment Share on other sites More sharing options...
Isolate Posted February 24, 2014 Share Posted February 24, 2014 On what site are you an script writer? i'm 99.99% + 00.01% sure i cant post that on these forums... Link to comment Share on other sites More sharing options...
PolishCivil Posted May 20, 2014 Share Posted May 20, 2014 (edited) Cool but, "much smaller than drawing paint on the client screen" is a lie.Also u can do this in normal paint so i dont see a point? @EDITGolden spade awards won PolishCivil! Edited May 20, 2014 by PolishCivil Link to comment Share on other sites More sharing options...
Stefano Posted August 18, 2014 Share Posted August 18, 2014 (edited) Nice one too bad dl was broken haha had to see it working Edited August 18, 2014 by Stefano Link to comment Share on other sites More sharing options...
renangiffoni Posted December 9, 2014 Share Posted December 9, 2014 awesome Link to comment Share on other sites More sharing options...
Calle Posted January 12, 2015 Share Posted January 12, 2015 Download link expired Link to comment Share on other sites More sharing options...