Page 1 of 1
error to bot
Posted: Sat May 14, 2011 12:02 pm
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
Re: error to bot
Posted: Sat May 14, 2011 9:41 pm
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.
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,
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.
Re: error to bot
Posted: Sat May 14, 2011 11:09 pm
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?
Re: error to bot
Posted: Sun May 15, 2011 5:11 am
by rock5
Re: error to bot
Posted: Mon May 16, 2011 3:12 pm
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?
Re: error to bot
Posted: Mon May 16, 2011 7:04 pm
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>
Re: error to bot
Posted: Mon May 16, 2011 8:15 pm
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
Re: error to bot
Posted: Tue May 17, 2011 3:08 am
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.
Re: error to bot
Posted: Tue May 17, 2011 4:40 pm
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.
Re: error to bot
Posted: Tue May 17, 2011 4:40 pm
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>
Re: error to bot
Posted: Tue May 17, 2011 8:23 pm
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">
Re: error to bot
Posted: Tue May 17, 2011 8:52 pm
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
Re: error to bot
Posted: Wed May 18, 2011 8:50 pm
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.
Re: error to bot
Posted: Wed May 18, 2011 9:03 pm
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">
Re: error to bot
Posted: Thu May 19, 2011 7:03 am
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>
Re: error to bot
Posted: Thu May 19, 2011 3:25 pm
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.
Re: error to bot
Posted: Thu May 19, 2011 8:06 pm
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>
Re: error to bot
Posted: Thu May 19, 2011 8:43 pm
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
