"Structure not found" error

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

"Structure not found" error

#1 Post by beanybabe » Tue Jun 16, 2015 7:14 pm

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

Code: Select all

		
if ... then
			loadPaths("mypath");
else
...			
end	
-------->mypath.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
		<!-- #  1 --><waypoint x="123" z="123" y="123">
            repeat
             yrest(500)
			 player:sleep()

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#2 Post by rock5 » Wed Jun 17, 2015 4:12 am

I found a "Structure not found" message in my GotoGuild userfunction. Do you use the GotoGuild function anywhere?
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#3 Post by beanybabe » Wed Jun 17, 2015 12:58 pm

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()")

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#4 Post by rock5 » Fri Jun 19, 2015 4:05 am

Thanks. I'll change it.
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#5 Post by beanybabe » Wed Jul 01, 2015 8:25 am

had error but figured it out. wanted to erase this but cannot seem to.

It was a couple of errors. I had a variable not defined that I missed and a second call to a waypoint I had not created yet.
Last edited by beanybabe on Wed Jul 01, 2015 8:50 am, edited 2 times in total.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#6 Post by rock5 » Wed Jul 01, 2015 8:46 am

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.
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#7 Post by beanybabe » Wed Jul 01, 2015 9:34 am

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.

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#8 Post by beanybabe » Fri Jul 03, 2015 9:38 am

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

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: "Structure not found" error

#9 Post by noobbotter » Fri Jul 03, 2015 10:19 am

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

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#10 Post by beanybabe » Sun Jul 05, 2015 8:58 am

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#11 Post by rock5 » Sun Jul 05, 2015 10:46 am

I'm pretty sure partial names should work for the structure names. Of course it has to match your language.
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#12 Post by beanybabe » Mon Jul 06, 2015 4:52 pm

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#13 Post by rock5 » Mon Jul 06, 2015 5:02 pm

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.
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#14 Post by beanybabe » Mon Jul 06, 2015 5:56 pm

i thought about that and tried a few things i put wait for load in the onload i did player update i totaly removed the onload.

The strange thing is some days it works totaly fine. Ill keep seeing if i can find out why.

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#15 Post by beanybabe » Mon Jul 06, 2015 6:19 pm

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.

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#16 Post by beanybabe » Mon Jul 06, 2015 6:33 pm

I have attached a main and sub wp to demonstrate this runaway error. It should work from anywhere watch it as it enters the drill ground.

This may be related to the gotoPortal I wrote about here http://www.solarstrike.net/phpBB3/viewt ... =27&t=4940

I sort of got it to work by changing the lines to this
sendMacro("ChoiceOption(1);");
waitForLoadingScreen(20);
yrest(2000)

I think the wait for loading needs to be put into the gotoGuild function. I cannot tell were it needs to go.
Attachments
runnawaytest.zip
(741 Bytes) Downloaded 114 times

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#17 Post by rock5 » Tue Jul 07, 2015 3:25 am

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.
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#18 Post by beanybabe » Tue Jul 07, 2015 8:44 am

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.

main
call sub
wait for loading
end

sub
1 ....

end

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: "Structure not found" error

#19 Post by rock5 » Tue Jul 07, 2015 9:17 am

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.
  • 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
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: "Structure not found" error

#20 Post by beanybabe » Thu Jul 09, 2015 10:14 pm

I enter drill ground, then call a waypoint
the first line of the waypoint is a number line

but it gets skipped.

The order I found that worked was to enter drillground
wait for portal loading screen, then run waypoint

I was just thinking the waif for load portal might be added to the enter drill ground code but after thinking about it I was wrong.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests