Help: IGF:[string "?"]:1569: attempt to index field '?' (a n

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
haplo
Posts: 10
Joined: Mon Feb 21, 2011 9:56 am

Help: IGF:[string "?"]:1569: attempt to index field '?' (a n

#1 Post by haplo » Mon Jan 21, 2013 5:38 am

I run various chars at the same time and I make group with them.
My main char sends invitations for party and the followers accept.

When I invite a follower who is connecting but hasn't entered the game (is on the loading screen) appears as connected to all the people so my main ca invite him

When the followers enters game, he sees the static popup to accept invitation for party pending.

The problem is that in that case the addons where not loaded yet so the follower doesn't auto-accept invitation.

To solve this I put in the onload secction of the follower's waypoint:

Code: Select all

RoMScript("StaticPopup_OnClick(StaticPopup1, 1);")
It usually goes well, the follower enters the game and accepts party. But after two or three "changeChars" I get that error:


Did not find any crashed game clients.
11:12am - IGF:[string "?"]:1569: attempt to index field '?' (a nil value)


I tried looking if I had a "popup" pending:

Code: Select all

    local   invitepopup = RoMScript("StaticPopup_Visible('PARTY_INVITE')")
    if invitepopup == "StaticPopup1" then
		sendMacro("StaticPopup_OnClick(StaticPopup1, 1);")
    end
but in that case invitepopup is always false and the follower never accepts party.

When I get the IGF error, I tried running the CommandLine.lua and executing from ther the StaticPopup_onClick and I get the same error.

Also executed ingame:

Code: Select all

/run StaticPopup_OnClick(StaticPopup1, 1);
and surprisingly executing ingame it doesn't make any error.

The line 1569 in IGF doesn't exists and I don't know where to search. Also the problem is that this error doesn't appears always. It crashes at random.
Also I tried to restart the client, but the error persist in that char. Now I'm not sure if it crashes in the same chars or if it is 100% random. I use the default.xml profile

Can you help me? I'm lost

thanks in advance

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Help: IGF:[string "?"]:1569: attempt to index field '?'

#2 Post by lisa » Mon Jan 21, 2013 6:14 am

haplo wrote:but in that case invitepopup is always false and the follower never accepts party.
That exact code worked fine for me.

Code: Select all

Command> local   invitepopup = RoMScript("StaticPopup_Visible('PARTY_INVITE')") if invitepopup == "StaticPopup1" then sendMacro("StaticPopup_OnClick(StaticPopup1, 1);") end
Use MACRO: Executing RoMScript "StaticPopup_OnClick(StaticPopup1, 1);".
it accepted the invite just fine, are you sure the character has fully logged in before trying to do the macro?

You can do a check if the character is in game fully, can't remember it off hand, Rock would know, since he wrote it ;)
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

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

Re: Help: IGF:[string "?"]:1569: attempt to index field '?'

#3 Post by rock5 » Mon Jan 21, 2013 8:15 am

For starters are you using honor parties? That's a different popup.

The error you get is because the popup isn't visible (or it's the wrong one). I get the same error if I do this in-game when there is no popup.

Code: Select all

/script StaticPopup_OnClick(StaticPopup1, 1)
Note: You have to do it twice to get the error. I'm not sure why it doesn't error the first time. It's always been like that. So the fix you came up with should work, unless it's the wrong popup or the popup hasn't appeared.

Now about the error
haplo wrote:11:12am - IGF:[string "?"]:1569: attempt to index field '?' (a nil value)
the "IGF" means it's not an error that happened in MM but was passed from in game after executing a RoMScript. So whatever command was sent in-game, failed. Actually these are usually hard to trace. Maybe I should include the actual RoMScript command in the error message for reference.

If you do need to check if the game has full started yet then you can use isInGame(). Maybe something like

Code: Select all

while not isInGame() do
    yrest(100)
end
  • 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

haplo
Posts: 10
Joined: Mon Feb 21, 2011 9:56 am

Re: Help: IGF:[string "?"]:1569: attempt to index field '?'

#4 Post by haplo » Mon Jan 21, 2013 8:50 am

Thank you for your quick answer. I'll put the

Code: Select all

while not isInGame() do
    printf("*")
    yrest(100)
end
in the onload of my waypoint to test and try it tomorrow and tell you the result.

Oh, I make a normal party (not a honor party)

haplo
Posts: 10
Joined: Mon Feb 21, 2011 9:56 am

Re: Help: IGF:[string "?"]:1569: attempt to index field '?'

#5 Post by haplo » Tue Jan 22, 2013 3:31 pm

I started all the bots and finished without any problems. I haven't see my printf("*") because I wasn't looking at the computer while the bot was running, but I'm sure this solved my problem. It's the first time that this script finished in time ;)
Many thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests