error to bot

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

error to bot

#1 Post by skiller n00b »

okay well i have everything I want to do, which is harvesting/gathering rescources.

When i start to script it saids something like can't fine profile and stuff so i make one with like rom\something.lua profile:name

something like that, i can't remember everything. But ive tried like 10 different things. I got my profile from runesofmagic and put it into this bot, that didn't work. I mean ive tried many different things and idk why this is?

I just don't know how to make it register to my profile that i want to bot on. So any help? also ive looked at many different post and idk am i blind or something lol
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: error to bot

#2 Post by rock5 »

Here is a bit of the basics.

When you run "rom/bot" in the micromacro window, it needs to load 2 files. One is the character profile and the other is the waypoint path. The profile is where information specific to the character is stored, eg. which skills to use, autobuy and sell settings, how to react to certain events, etc. The waypoint file is the path the bot should take. It also includes any actions or code that you want to happen at those waypoints, eg. talking to npcs, harvesting, etc.

Let's start with the profile.

If you just type "rom/bot" then it will look for a profile in the "profiles" folder that matches the character name eg. "charactername.xml". All profiles must exist in the "profiles" folder. If it doesn't find that file it will look for a user created default profile called "userdefault.xml". If it doesn't find that, then it errors.

To use a customised profile specifically designed for a particular character you should create the "charactername.xml" profile. You can start by copying the default.xml profile then editing that.

If you want it to use a default profile automatically (usually for low level temporary characters) then you could create the "userdefault.xml" profile. Again, you can start by copying the default.xml profile and leave it as it is or make minor changes to it to suite your needs.

Lastly on profiles, you can over-ride the automatic selection of the profile by specifying the profile to use when you run the bot eg.

Code: Select all

rom/bot profile:default
This will use the "default.xml" profile regardless of whether there is a character specific profile or userdefault profile.

Now to waypoint files.

If you type just "rom/bot" (or "rom/bot profile:xxx") then, after loading the profile, it will list all the waypoint files in your "waypoints" folder. You then type the number of the waypoint file to load. The bot should then start running.

You can also specify the waypoint file to load at the command promt like this,

Code: Select all

rom/bot path:mywaypointfile
If it doesn't find the file it will still show the list.

Lastly you can combine profile and waypoint file selections at the command prompt like this,

Code: Select all

rom/bot profile:profilename path:waypointname
One final point. If you have multiple game clients open then, when you first start the bot, you will have to select which window to attach the bot to. It may look like you are selecting the profile but you are not. You are only selecting the window. After selecting the window it will then load the profile based on what I discussed above.

Hope this makes things clearer.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#3 Post by skiller n00b »

okay one thing i finally got this but i started gathering rescources then all the sudden it attacked the monsters? and i pressed 2 which was the gathering nothing about attacking so how do i make it where they dont attack?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: error to bot

#4 Post by rock5 »

Set the waypoint type to "RUN" or "TRAVEL".
http://www.solarstrike.net/wiki/index.p ... oint_types
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#5 Post by skiller n00b »

well yeah i have done this, but when i do this, it errors me and im sure i did it the right way. and also the same error happens when i make a path and then the next day it doesnt work. so...? anything?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: error to bot

#6 Post by lisa »

an example of using travel type in a WP

Code: Select all

<waypoints type="TRAVEL">
	<!-- #1   --><waypoint x="5424" z="-4252">	</waypoint>
	<!-- #2   --><waypoint x="5438" z="-4232">	</waypoint>
</waypoints>
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#7 Post by skiller n00b »

haha yes i know, but idk if im doing this wrong but when im playing i just press numpad 2 which is harvest spot thing and then i save it. then i edit the travel on the 1 or 2nd line. But when that happens i get error or.... when i make 1 then i get error when i x out and try that one i jsut made without editing it. So yea lol idk whats up
Merlin
Posts: 54
Joined: Tue May 10, 2011 9:59 am

Re: error to bot

#8 Post by Merlin »

Post yor way file just few of the lines you have corected or the line you get the error from. If you aren't more specific there is no way we can know what's wrong on your site and can really help you.
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#9 Post by skiller n00b »

i use this <waypoints type="TRAVEL" >player:harvest(); or this one in the ones i add/change <waypoints type="TRAVEL">

this is the one i added travel

<?xml version="1.0" encoding="utf-8"?><waypoints>
<waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="32481" z="3420" y="32">player:harvest();</waypoint>
<!-- # 2 --><waypoint x="32481" z="3420" y="32">
player:mouseclickL(421, 246, 797, 613);
</waypoint>
<!-- # 3 --><waypoint x="32470" z="3508" y="31">player:harvest();</waypoint>
<!-- # 4 --><waypoint x="32511" z="3662" y="32">player:harvest();</waypoint>
<!-- # 5 --><waypoint x="32554" z="3732" y="32">player:harvest();</waypoint>
<!-- # 6 --><waypoint x="32589" z="3684" y="48">player:harvest();</waypoint>
<!-- # 7 --><waypoint x="32977" z="3778" y="54">player:harvest();</waypoint>
<!-- # 8 --><waypoint x="32959" z="3830" y="49">player:harvest();</waypoint>
<!-- # 9 --><waypoint x="32893" z="3954" y="40">player:harvest();</waypoint>
<!-- # 10 --><waypoint x="33001" z="4015" y="35">player:harvest();</waypoint>
<!-- # 11 --><waypoint x="32952" z="4150" y="58">player:harvest();</waypoint>
<!-- # 12 --><waypoint x="32874" z="4166" y="63">player:harvest();</waypoint>
<!-- # 13 --><waypoint x="33190" z="4302" y="57">player:harvest();</waypoint>
<!-- # 14 --><waypoint x="33243" z="4424" y="59">player:harvest();</waypoint>
<!-- # 15 --><waypoint x="33003" z="4625" y="45">player:harvest();</waypoint>
<!-- # 16 --><waypoint x="32531" z="4711" y="49">player:harvest();</waypoint>
<!-- # 17 --><waypoint x="32557" z="4812" y="43">player:harvest();</waypoint>
<!-- # 18 --><waypoint x="32591" z="5064" y="46">player:harvest();</waypoint>
<!-- # 19 --><waypoint x="32511" z="5034" y="53">player:harvest();</waypoint>
<!-- # 20 --><waypoint x="32421" z="5006" y="63">player:harvest();</waypoint>
<!-- # 21 --><waypoint x="32393" z="5103" y="48">player:harvest();</waypoint>
<!-- # 22 --><waypoint x="32335" z="5104" y="56">player:harvest();</waypoint>
<!-- # 23 --><waypoint x="32028" z="4913" y="13">player:harvest();</waypoint>
<!-- # 24 --><waypoint x="31912" z="4907" y="-9">player:harvest();</waypoint>
<!-- # 25 --><waypoint x="31999" z="4662" y="4">player:harvest();</waypoint>
<!-- # 26 --><waypoint x="32115" z="4636" y="44">player:harvest();</waypoint>
<!-- # 27 --><waypoint x="32092" z="4429" y="33">player:harvest();</waypoint>
<!-- # 28 --><waypoint x="32223" z="4479" y="40">player:harvest();</waypoint>
<!-- # 29 --><waypoint x="32497" z="4281" y="51">player:harvest();</waypoint>
<!-- # 30 --><waypoint x="32650" z="4267" y="81">player:harvest();</waypoint>
<!-- # 31 --><waypoint x="32868" z="4148" y="60">player:harvest();</waypoint>
<!-- # 32 --><waypoint x="33002" z="4014" y="35">player:harvest();</waypoint>
<!-- # 33 --><waypoint x="32904" z="3964" y="39">player:harvest();</waypoint>
<!-- # 34 --><waypoint x="32606" z="3677" y="52">player:harvest();</waypoint>
<!-- # 35 --><waypoint x="32565" z="3727" y="33">player:harvest();</waypoint>
<!-- # 36 --><waypoint x="32531" z="3687" y="33">player:harvest();</waypoint>
<!-- # 37 --><waypoint x="32310" z="3534" y="26">player:harvest();</waypoint>
<!-- # 38 --><waypoint x="32411" z="3386" y="28">player:harvest();</waypoint>
</waypoints>



and this isnt the one i added.
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#10 Post by skiller n00b »

i use this <waypoints type="TRAVEL" >player:harvest(); or this one in the ones i add/change <waypoints type="TRAVEL">

this is the one i added travel

<?xml version="1.0" encoding="utf-8"?><waypoints>
<waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="32481" z="3420" y="32">player:harvest();</waypoint>
<!-- # 2 --><waypoint x="32481" z="3420" y="32">
player:mouseclickL(421, 246, 797, 613);
</waypoint>
<!-- # 3 --><waypoint x="32470" z="3508" y="31">player:harvest();</waypoint>
<!-- # 4 --><waypoint x="32511" z="3662" y="32">player:harvest();</waypoint>
<!-- # 5 --><waypoint x="32554" z="3732" y="32">player:harvest();</waypoint>
<!-- # 6 --><waypoint x="32589" z="3684" y="48">player:harvest();</waypoint>
<!-- # 7 --><waypoint x="32977" z="3778" y="54">player:harvest();</waypoint>
<!-- # 8 --><waypoint x="32959" z="3830" y="49">player:harvest();</waypoint>
<!-- # 9 --><waypoint x="32893" z="3954" y="40">player:harvest();</waypoint>
<!-- # 10 --><waypoint x="33001" z="4015" y="35">player:harvest();</waypoint>
<!-- # 11 --><waypoint x="32952" z="4150" y="58">player:harvest();</waypoint>
<!-- # 12 --><waypoint x="32874" z="4166" y="63">player:harvest();</waypoint>
<!-- # 13 --><waypoint x="33190" z="4302" y="57">player:harvest();</waypoint>
<!-- # 14 --><waypoint x="33243" z="4424" y="59">player:harvest();</waypoint>
<!-- # 15 --><waypoint x="33003" z="4625" y="45">player:harvest();</waypoint>
<!-- # 16 --><waypoint x="32531" z="4711" y="49">player:harvest();</waypoint>
<!-- # 17 --><waypoint x="32557" z="4812" y="43">player:harvest();</waypoint>
<!-- # 18 --><waypoint x="32591" z="5064" y="46">player:harvest();</waypoint>
<!-- # 19 --><waypoint x="32511" z="5034" y="53">player:harvest();</waypoint>
<!-- # 20 --><waypoint x="32421" z="5006" y="63">player:harvest();</waypoint>
<!-- # 21 --><waypoint x="32393" z="5103" y="48">player:harvest();</waypoint>
<!-- # 22 --><waypoint x="32335" z="5104" y="56">player:harvest();</waypoint>
<!-- # 23 --><waypoint x="32028" z="4913" y="13">player:harvest();</waypoint>
<!-- # 24 --><waypoint x="31912" z="4907" y="-9">player:harvest();</waypoint>
<!-- # 25 --><waypoint x="31999" z="4662" y="4">player:harvest();</waypoint>
<!-- # 26 --><waypoint x="32115" z="4636" y="44">player:harvest();</waypoint>
<!-- # 27 --><waypoint x="32092" z="4429" y="33">player:harvest();</waypoint>
<!-- # 28 --><waypoint x="32223" z="4479" y="40">player:harvest();</waypoint>
<!-- # 29 --><waypoint x="32497" z="4281" y="51">player:harvest();</waypoint>
<!-- # 30 --><waypoint x="32650" z="4267" y="81">player:harvest();</waypoint>
<!-- # 31 --><waypoint x="32868" z="4148" y="60">player:harvest();</waypoint>
<!-- # 32 --><waypoint x="33002" z="4014" y="35">player:harvest();</waypoint>
<!-- # 33 --><waypoint x="32904" z="3964" y="39">player:harvest();</waypoint>
<!-- # 34 --><waypoint x="32606" z="3677" y="52">player:harvest();</waypoint>
<!-- # 35 --><waypoint x="32565" z="3727" y="33">player:harvest();</waypoint>
<!-- # 36 --><waypoint x="32531" z="3687" y="33">player:harvest();</waypoint>
<!-- # 37 --><waypoint x="32310" z="3534" y="26">player:harvest();</waypoint>
<!-- # 38 --><waypoint x="32411" z="3386" y="28">player:harvest();</waypoint>
</waypoints>
Mushroomstamp
Posts: 210
Joined: Wed Oct 27, 2010 11:34 am

Re: error to bot

#11 Post by Mushroomstamp »

Change;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<waypoints type="TRAVEL">
to;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: error to bot

#12 Post by lisa »

Mushroomstamp wrote:Change;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<waypoints type="TRAVEL">
to;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
that will definately fix the error, I also noticed the mouseclick, seems weird to have it there so I am guessing you hit the wrong key when making your WP.

Code: Select all

<!-- # 2 --><waypoint x="32481" z="3420" y="32">
player:mouseclickL(421, 246, 797, 613);
</waypoint>
change to

Code: Select all

<!-- # 2 --><waypoint x="32481" z="3420" y="32">player:harvest();</waypoint>
Could you also use the [ code] [ /code] when posting code on the forum
Thanks
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#13 Post by skiller n00b »

PS: i never messed with anything in the "lib" folder


i did those, and still got the same error. Sorry for all this I'll wright the error on here. Maybe that will help.

Also is there a specific place i should have all this? cuz i just made a folder and did this.

Anyways heres the error.

8:42pm - ...r/desktop/new folder (3)/micromacro/lib/mods/xml.lua:336: error closing parser: no element found



okay thats what pops up in yellow after the loading items tables happens to 100%

after the error it just tells me to type the script up again. Which i use. - rom/bot profile:default path:(path name)


this happens even after i make a pathway and reupload micromacro.


also i never messed with the lib folder, the only folder ive been in is scripts.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: error to bot

#14 Post by rock5 »

I don't see anyone mentioning anything about the lib folder. They are talking about the waypoint file you created.
Mushroomstamp wrote:Change;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<waypoints type="TRAVEL">
to;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: error to bot

#15 Post by lisa »

you have 2 lots of <waypoints> this is creating the error becuase it only has 1 closing of course.

It should look like this

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="32481" z="3420" y="32">player:harvest();</waypoint>
<!-- # 2 --><waypoint x="32481" z="3420" y="32">player:harvest
</waypoint>
<!-- # 3 --><waypoint x="32470" z="3508" y="31">player:harvest();</waypoint>
<!-- # 4 --><waypoint x="32511" z="3662" y="32">player:harvest();</waypoint>
<!-- # 5 --><waypoint x="32554" z="3732" y="32">player:harvest();</waypoint>
<!-- # 6 --><waypoint x="32589" z="3684" y="48">player:harvest();</waypoint>
<!-- # 7 --><waypoint x="32977" z="3778" y="54">player:harvest();</waypoint>
<!-- # 8 --><waypoint x="32959" z="3830" y="49">player:harvest();</waypoint>
<!-- # 9 --><waypoint x="32893" z="3954" y="40">player:harvest();</waypoint>
<!-- # 10 --><waypoint x="33001" z="4015" y="35">player:harvest();</waypoint>
<!-- # 11 --><waypoint x="32952" z="4150" y="58">player:harvest();</waypoint>
<!-- # 12 --><waypoint x="32874" z="4166" y="63">player:harvest();</waypoint>
<!-- # 13 --><waypoint x="33190" z="4302" y="57">player:harvest();</waypoint>
<!-- # 14 --><waypoint x="33243" z="4424" y="59">player:harvest();</waypoint>
<!-- # 15 --><waypoint x="33003" z="4625" y="45">player:harvest();</waypoint>
<!-- # 16 --><waypoint x="32531" z="4711" y="49">player:harvest();</waypoint>
<!-- # 17 --><waypoint x="32557" z="4812" y="43">player:harvest();</waypoint>
<!-- # 18 --><waypoint x="32591" z="5064" y="46">player:harvest();</waypoint>
<!-- # 19 --><waypoint x="32511" z="5034" y="53">player:harvest();</waypoint>
<!-- # 20 --><waypoint x="32421" z="5006" y="63">player:harvest();</waypoint>
<!-- # 21 --><waypoint x="32393" z="5103" y="48">player:harvest();</waypoint>
<!-- # 22 --><waypoint x="32335" z="5104" y="56">player:harvest();</waypoint>
<!-- # 23 --><waypoint x="32028" z="4913" y="13">player:harvest();</waypoint>
<!-- # 24 --><waypoint x="31912" z="4907" y="-9">player:harvest();</waypoint>
<!-- # 25 --><waypoint x="31999" z="4662" y="4">player:harvest();</waypoint>
<!-- # 26 --><waypoint x="32115" z="4636" y="44">player:harvest();</waypoint>
<!-- # 27 --><waypoint x="32092" z="4429" y="33">player:harvest();</waypoint>
<!-- # 28 --><waypoint x="32223" z="4479" y="40">player:harvest();</waypoint>
<!-- # 29 --><waypoint x="32497" z="4281" y="51">player:harvest();</waypoint>
<!-- # 30 --><waypoint x="32650" z="4267" y="81">player:harvest();</waypoint>
<!-- # 31 --><waypoint x="32868" z="4148" y="60">player:harvest();</waypoint>
<!-- # 32 --><waypoint x="33002" z="4014" y="35">player:harvest();</waypoint>
<!-- # 33 --><waypoint x="32904" z="3964" y="39">player:harvest();</waypoint>
<!-- # 34 --><waypoint x="32606" z="3677" y="52">player:harvest();</waypoint>
<!-- # 35 --><waypoint x="32565" z="3727" y="33">player:harvest();</waypoint>
<!-- # 36 --><waypoint x="32531" z="3687" y="33">player:harvest();</waypoint>
<!-- # 37 --><waypoint x="32310" z="3534" y="26">player:harvest();</waypoint>
<!-- # 38 --><waypoint x="32411" z="3386" y="28">player:harvest();</waypoint>
</waypoints>
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
skiller n00b
Posts: 12
Joined: Sun May 08, 2011 6:12 pm

Re: error to bot

#16 Post by skiller n00b »

rock5 wrote:I don't see anyone mentioning anything about the lib folder. They are talking about the waypoint file you created.
Mushroomstamp wrote:Change;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<waypoints type="TRAVEL">
to;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
yea i did do that and still got it last time. I think lisa was right that i had to many waypoints idk what she did but that fixed it and i got another 1 when the waypoint had nothing because someone already took it, but its all good right now the bot is gathering everything in its radius.

So thanks so much for this - this will make my game experience more enjoyable so really thanks to everyone who helped.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: error to bot

#17 Post by rock5 »

skiller n00b wrote: idk what she did but that fixed it
It looks like Lisa changed the top 2 lines as we were saying and changed the mouseclick to a harvest. By the way, she missed out the brackets for the harvest function. Waypoint #2 should be,

Code: Select all

<!-- # 2 --><waypoint x="32481" z="3420" y="32">player:harvest()
</waypoint>
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: error to bot

#18 Post by lisa »

rock5 wrote:
skiller n00b wrote: idk what she did but that fixed it
It looks like Lisa changed the top 2 lines as we were saying and changed the mouseclick to a harvest. By the way, she missed out the brackets for the harvest function. Waypoint #2 should be,

Code: Select all

<!-- # 2 --><waypoint x="32481" z="3420" y="32">player:harvest()
</waypoint>
lol well no one is perfect ;)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Post Reply