Just has a error I never seen before. Structure not found. happened when trying to call a path from inside a if. the error happens after the path loads and before the sleep. Any ideas?
mm 1.04.174 rb 3.29 rev 784 game ver 6.3.0.2744
I had used it earlier in that script I was messing with your would travel and guild travel functions to see how they worked. I had called it to get to the location then did some code to enter inside. Ihen I called my wp file. I had copied bits of code from other examples. i think I used GotoGuild("Drill") as the other person has in there code. I am going to try some other ways your code says it can support.
I looked at the code a bit and this looks like a typo
error("Specify a destination for GuildGoto()")
i think you meant
error("Specify a destination for GotoGuild()")
It means a nil value was passed to a player:moveTo function somewhere. Do you have any player:moveTo commands in your waypoint file? What lines immediately preceded the error message? In that code you show you have an <onload> but no </onload>. Do you have that mistake in your actual file?
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.
had structure not found again I was cut and pasting code I found in forums. Someone had an example with gotoguild(xxxx) that should have been travelTo(xxxx) that was messing me up.
if you use gotoguild and put a travelto point you get Structure not found error.
another error one I have no idea what point 67 is this wp is all onload code. line 67 of the code would not have met condition's to even be executed. Any ideas what 67 is coming from?
here is the code it was running when this happened. I hope its just a one time glitch.
IF ... code ...
player:sleep();
end
If getZoneId() == 401 then
GotoGuild("Drill Ground");
Awake from sleep after pressing Delete at 07/03/15 09:20:04.
Going to point #67
The game client did not crash.
2015-07-03 09:20:04 - C:/micromacro/scripts/rom/classes/memorytable.lua:213: attempt to concatenate a nil value
If you look at Rock5's first post on his gotoGuild page, it mentions that the gotoGuild function uses points as well as names. See the page here: http://solarstrike.net/phpBB3/viewtopic ... =gotoguild. Is Drill Ground the correct name for the structure you're trying to move to? you could try the ID of it instead.
Here's what I got from the Rom Database. Maybe you have to specify what level drill ground it is?
Drill Ground I - 112896
Drill Ground II - 112897
Drill Ground III - 112898
Drill Ground IV - 112899
Drill Ground V - 112900
Drill Ground VI - 112901
Drill Ground VII - 112902
Drill Ground VIII - 112903
Structure not found can happen if you are outside the guild castle and call a structure in it also. I was trying shortened forms of names that someone posted in an example and that is what caused it. It just confused me I was thinking in programming terms and thought that it was talking about structure of some code.
would you happen to know why when i do loadpath xxx
and xxx is just made with create path
1
2
3
when it starts running it will skip 1 and go to 2 saying it is closer even though 1 is exactly were you start at?
We use the normal waypoint path mywp.xml now.
Waypoint #2 is closer then #1. Hence we start with waypoint #2.
Clearing target.
Moving to waypoint #2, (209, 240)
It seems like it starts testing were you are before the char is even loaded into that map so it gets the wrong location. that code may need be changed. I tried to put a waitforloadscreen in the onload but that fail.
Maybe waypoint 2 is closer. Or maybe you added an onload to the waypoint file. Sometimes I noticed that if there is an onload, the waypoint number is off by 1. It's always best to look at the actual coordinates and match them up to the waypoint instead of looking at the waypoint number.
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.
So strange after an hour now its working like it should again. I swear rom changed something in there program certain times of the day that affects this code.
I have noticed that it works different also depending on how many rom clients are loaded. when you hit 3 rom clients they tend to corrupt then sometimes when starting the bot it will cause the first client loaded to crash. I have seen this happen on a few computers with different versions of windows windows updates seem to affect it so it makes me think its a problem in the way windows handles rom in memory.
beanybabe wrote:I sort of got it to work by changing the lines to this
sendMacro("ChoiceOption(1);");
waitForLoadingScreen(20);
yrest(2000)
Do you mean in your own code? Well obviously if you do something that makes the loading screen appear then you need to use waitForLoadingScreen. That goes without saying. The only time you don't need to use it is if you use a function that does it for you such as goThroughPortal or travelTo.
beanybabe wrote:I think the wait for loading needs to be put into the gotoGuild function. I cannot tell were it needs to go.
gotoGuild moves around inside the guild. I don't think it does any teleports.
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.
I had to use the waif for loading on entering the drill or the char skips wp 1 it has to go in the calling program. This is why i think it needs to be included in the gotoguild. But its is strange why it will work with out it every so often.
I'm not sure I follow. If you want to enter the drill ground you would
1. GotoGuild("Training Ground") -- Or whatever it's called
2. Talk to the npc and select the option to enter the drill ground.
3. wait a few seconds
4. Do a player update.
5. Continue with the waypoint or load another waypoint drill ground script.
In no way could you put the wait for loading screen in the GotoGuild function, it has to be done after taking to the npc.
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.