Comments (15)
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.
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.
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.
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.
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.
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.
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.
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.
good to hear its working for you, would love to see a solution for drawing the debug options.
from osrsbot.
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.
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.
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.
You are really doing a great job, will try get used to github. so i can make changes also and send pull.
from osrsbot.
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.
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)
- [BUG] Inventory is currently bugged relating to empty entries HOT 2
- [FEATURE] Tempfix or Permfix for current freezing issue HOT 1
- [FEATURE] Finish implementation of multi-bot including GUI functionality. HOT 1
- [FEATURE] Finish fleshing out the CLI module to better enable headless run HOT 1
- [FEATURE] Check for latest version HOT 1
- [BUG] Bank Inventory Bug
- [REVIEW] Remove excessive and invasive implementations
- [BUG] Check on NPC getDef to ensure it is behaving correctly
- [BUG] VarcIntValues (and likely others) aren't entirely well-written
- [BUG] walking.setRun() needs updating HOT 1
- the client didn't work after the update Unknown command-line option '--bot-runelite'.
- [QUESTION] HOT 1
- [SUGGESTION] Equipment .vs Inventory signature irregularity with containsOneOf HOT 3
- [question] OSRSbot.jar
- [QUESTION] need help to run osrsbot
- [FEATURE] Add Inventory.contains note sensitive
- [FEATURE] Add zoom to Camera.java
- [BUG] New popup in bank may break banking
- [QUESTION] Can't build when importing and using gradle for this project or script template HOT 2
- [BUG] Trading players with names that contain space HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osrsbot.