Jump to content

webwalking crashing instantly


roguehippo

Recommended Posts

hello, whenever i try to use webwalking and give it an area or position to walk to it just crashes instantly. the area is not null and its even visible when im logged in but it just crashes.

here is the code: 

if(!myPlayer().isMoving())
                {
                    log("walking to portal");
                    walking.webWalk(portalFront);
                    mySleep(50,150);
                }

here is the error report:

[ERROR][Bot #1][08/28 05:13:53 PM]: Error in bot executor!
java.lang.NoClassDefFoundError: Could not initialize class org.osbot.Prn
    at org.osbot.rs07.event.WebWalkEvent.<init>(wg:262)
    at org.osbot.rs07.api.Walking.webWalk(qf:280)
    at main.walk(main.java:736)
    at main.onLoop(main.java:119)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(jj:122)
    at java.lang.Thread.run(Thread.java:745)

anyone know what could be going wrong?

Link to comment
Share on other sites

5 minutes ago, roguehippo said:

hello, whenever i try to use webwalking and give it an area or position to walk to it just crashes instantly. the area is not null and its even visible when im logged in but it just crashes.

here is the code: 

if(!myPlayer().isMoving())
                {
                    log("walking to portal");
                    walking.webWalk(portalFront);
                    mySleep(50,150);
                }

here is the error report:

[ERROR][Bot #1][08/28 05:13:53 PM]: Error in bot executor!
java.lang.NoClassDefFoundError: Could not initialize class org.osbot.Prn
    at org.osbot.rs07.event.WebWalkEvent.<init>(wg:262)
    at org.osbot.rs07.api.Walking.webWalk(qf:280)
    at main.walk(main.java:736)
    at main.onLoop(main.java:119)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(jj:122)
    at java.lang.Thread.run(Thread.java:745)

anyone know what could be going wrong?

if it is visible then why are you webwalking?

you should try using webwalking in a webwalking event and also account for how far you have to walk. if the position is close enough then you should not be using webwalker

Link to comment
Share on other sites

29 minutes ago, superuser said:

if it is visible then why are you webwalking?

you should try using webwalking in a webwalking event and also account for how far you have to walk. if the position is close enough then you should not be using webwalker

What's the point of using webwalking in a walking event?

And it's not about the distance. You should only consider using webWalking() if there are obstacles obstructing your way.

Link to comment
Share on other sites

10 minutes ago, Viston said:

What's the point of using webwalking in a walking event?

And it's not about the distance. You should only consider using webWalking() if there are obstacles obstructing your way.

i never said to use webwalking in a walking event.

i said to determine the distance and then determine whether to use webwalking or not. you also don't need to use webwalking if there are obstacles in the way. if you write a proper walking method then your script should be able to account for all obstacles no matter where you are walking.

don't comment if you have no idea what you're talking about.

as for the OP, is portalFront a position, or something else. try using its position if you aren't already. entities and npc's can sometime return values that the webwalker doesn't like. getPosition works 99% of the time though from my experience.

Link to comment
Share on other sites

6 minutes ago, superuser said:

i never said to use webwalking in a walking event.

i said to determine the distance and then determine whether to use webwalking or not. you also don't need to use webwalking if there are obstacles in the way. if you write a proper walking method then your script should be able to account for all obstacles no matter where you are walking.

don't comment if you have no idea what you're talking about.

as for the OP, is portalFront a position, or something else. try using its position if you aren't already. entities and npc's can sometime return values that the webwalker doesn't like. getPosition works 99% of the time though from my experience.

Read your comment, you are telling him to use webWalking() with a walking event.

Again, what does the distance have to do with whether to use webWalking() or not? Please elaborate, seems like you are confused. It's better to just use walkPath() if the route is static and has no obstacles. Otherwise it's up to you whether you want to handle the obstacles or not.

Yes, you can use any other method even if there is obstacles between you and the distance you are walking. However, you'll have to handle obstacles manually.

YOU clearly don't have any idea of what you are talking about bruh :???:

Edited by Viston
Link to comment
Share on other sites

26 minutes ago, Viston said:

Read your comment, you are telling him to use webWalking() with a walking event.

Again, what does the distance have to do with whether to use webWalking() or not? Please elaborate, seems like you are confused. It's better to just use walkPath() if the route is static and has no obstacles. Otherwise it's up to you whether you want to handle the obstacles or not.

Yes, you can use any other method even if there is obstacles between you and the distance you are walking. However, you'll have to handle obstacles manually.

YOU clearly don't have any idea of what you are talking about bruh :???:

read it again. no where does it say walking event.

you grab the distance to determine whether to use walkingevent or webwalking event. you could just use webwalking event for everything like you, a scripter 1, most likely do.

i however have wrote a custom walking method that will handle obstacles automatically when using a walkingevent. that is what i was referring to when i said that.

you can continue to use webwalker for everything and continue hardcoding all your walkingevents or you can understand what i am saying and become a better scripter.

you have a lot to learn

Edited by superuser
minor grammar changes
Link to comment
Share on other sites

39 minutes ago, superuser said:

read it again. no where does it say walking event.

you grab the distance to determine whether to use walkingevent or webwalking event. you could just use webwalking event for everything like you, a scripter 1, most likely do.

i however have wrote a custom walking method that will handle obstacles automatically when using a walkingevent. that is what i was referring to when i said that.

you can continue to use webwalker for everything and continue hardcoding all your walkingevents or you can understand what i am saying and become a better scripter.

you have a lot to learn

mnGE2LT.png

mnGE2LT.png

mnGE2LT.png

mnGE2LT.png

mnGE2LT.png

mnGE2LT.png

 

Wtf is a webwalking event. We only have a Walking Event, I don't know which community you are coming from bro

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...