Git Product home page Git Product logo

Comments (15)

GigiaJ avatar GigiaJ commented on June 16, 2024 1

I'm pretty sure the debug is attached here, but it has been a bit so I forget as to why they're non-functional. I believe it is due to the bot not actually performing the rendering, but I'm certain if that is the case it is FAIRLY easy to work around.
private static String[] constructDebugs() { List<String> debugItems = new ArrayList<String>(); debugItems.add("Hide Toolbar"); debugItems.add("Hide Log Window"); debugItems.add("All Debugging"); debugItems.add("-"); for (String key : DEBUG_MAP.keySet()) { Class<?> el = DEBUG_MAP.get(key); if (PaintListener.class.isAssignableFrom(el)) { debugItems.add(key); } }

Edit: This is simply where the debugs are loaded on, but that doesnt exactly help you.

To clarify, the bot is currently rendering using however RuneLite is doing it. This is because I simply didnt take the time to hook (for lack of a better word) into that and create a fluid way for the API to interact with it. It should be possible to do so, and I will take a go at it tomorrow.

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024 1

All debugs work excluding models, webs, and calc test.
Only models and calc test will cause issues currently.

Mouse can still not be enabled or disable and any debug utilizing models will be broken for now.
Shouldn't affect much, but models won't be outlined.
Hopefully can finish up tomorrow.

from osrsbot.

vuurman100 avatar vuurman100 commented on June 16, 2024

Any update about this? trying to make a new gui, but cant find anyway to attach to the paint to the botpanel. same for the paint for on scripts

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

Okay, so while testing this I came across a far more debilitating issue that prevents me from testing further. Scripts currently don't seem to do anything. This includes painting.
I did, however, manage to interact with the client and draw text on it, but since scripts are so broken I couldn't really look further into that.

from osrsbot.

vuurman100 avatar vuurman100 commented on June 16, 2024

How did ya draw text to it?
and what do you mean with scripts are broke? havent test much but seems like i can interact with npcs. only like you mention before the turnTo is broke

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

You're getting scripts made in the testsScript to work and interact with npcs?
As for drawing, I simply called upon the client canvas (can't test in scripts because they don't seem to be working) and directly drew on top of it. Not the best way to go about it and if I can get the scripts functional I'll try adding cleaner solution.

from osrsbot.

vuurman100 avatar vuurman100 commented on June 16, 2024

yeay can load script from the testScript folder also .jar and .classes are working for me. interact works, beside that it click to walls ect because the the turnto and onscreen dont work as you know.

but having no problems with loading scripts.

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

Alright, weirdly enough. Scripts seem to be working, but I have to start the script to login, and then stop it and restart for it to actually execute. That said, I tested whether the script could interact with the panels and client and that seemed to work so after I figure out why the script behaves like that I'll try to make a cleaner solution for drawing on the client.

from osrsbot.

vuurman100 avatar vuurman100 commented on June 16, 2024

good to hear its working for you, would love to see a solution for drawing the debug options.

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

image

I've managed to get drawing on the screen and tested the FPS function (it isn't properly implemented yet). I'll clean this tidbit up as well as I can and integrate the debug functions properly.
Consistent drawing that refreshes with the client so it is synced

from osrsbot.

vuurman100 avatar vuurman100 commented on June 16, 2024

Nice work, cant wait for it so i can at least see my mouse position. and if the debugger works it will make it more easy to rewrite the api, have the feeling the is much changed in the past months

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

image

Not completely finished, as I believe some debug functions are still a little broken. Several are working though.

Additionally,

This should allow one to create a new listener in a script and add it to the EventManager to draw directly to the screen.

You in theory should be able to draw on the screen with a script doing that.

from osrsbot.

vuurman100 avatar vuurman100 commented on June 16, 2024

You are really doing a great job, will try get used to github. so i can make changes also and send pull.

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

Thanks! Take your time getting used to it and feel free to make changes and pull requests whenever.
I'll certainly appreciate any help I get on this. :)

I've fixed all the TextEvent debug functions. The PaintEvent ones rely on Calculations which appear to be wrong. Hopefully I'll have that fixed soon as well.

from osrsbot.

GigiaJ avatar GigiaJ commented on June 16, 2024

Closed due to changes in GUI, since most were fixed and the GUI is being moved away from this isn't needed anymore.

from osrsbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.