Error "attempt to get length of local "Key" (a nil value)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Mausmann
Posts: 5
Joined: Sat Mar 07, 2020 11:26 pm

Error "attempt to get length of local "Key" (a nil value)

#1 Post by Mausmann » Tue Jul 04, 2023 11:40 am

Heya
did anyone have the same problem or know how to fix this i cant find a way to do it cause i dont even know what the problem is?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Error "attempt to get length of local "Key" (a nil value)

#2 Post by Administrator » Wed Jul 05, 2023 6:56 am

Please provide more information. Copy and paste the full error (you can get this from the
log.txt
file in the same folder as
micromacro.exe
.
Also an explanation of what you were trying to do with the bot, and what it was doing when it crashed with that error, would help in debugging.

Mausmann
Posts: 5
Joined: Sat Mar 07, 2020 11:26 pm

Re: Error "attempt to get length of local "Key" (a nil value)

#3 Post by Mausmann » Wed Jul 05, 2023 11:06 am

so theres a screenshot for you now of the full log file and also the command error

Also the bot crashes as soon as i choose the character

If you dont have any ideas for the fix i would like to ask you if you have a working bot and potentially send it to me?

Thank you in advance for your time
Attachments
boot screen 2.png
bot screen.PNG

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Error "attempt to get length of local "Key" (a nil value)

#4 Post by Administrator » Thu Jul 06, 2023 7:10 am

A few minor things I noticed, but may not be causing the issue you're having:
- Your game version shows as 7.4.0.2985; the latest version (from Gameforge) is 7.4.0.2987 -- are you playing on a different client?
- Line 2600 of
functions.lua
does not contain the variable that is indicated in your error message - this indicates that your scripts might have been modified at some point, or just using an older version.

As for the error included in your
log.txt
, it looks like it is failing to read the cache version from the file. In the
rom-bot
folder, go to
cache
and then delete
texts.lua
. Try running the bot now; does that help?
If that does not help, I would recommend running the
rombot_updater.exe
from the
rom-bot
folder -- this will forcefully update your scripts to the latest version.

Mausmann
Posts: 5
Joined: Sat Mar 07, 2020 11:26 pm

Re: Error "attempt to get length of local "Key" (a nil value)

#5 Post by Mausmann » Fri Jul 07, 2023 12:08 pm

it didnt work so i installed a fresh version and now the bot activates on the character i also created a "Profile" with the exact Characters Name start the waypoint mode and mark the path but when i start the path it tells me this
2023-07-07 19:04:42 - ...wender\Desktop\micromacro\scripts\rom-bot-master\bot.lua:750: bad argument #1 to 'lower' (string expected, got boolean)

I cant figure out what it means any ideas?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Error "attempt to get length of local "Key" (a nil value)

#6 Post by Administrator » Sat Jul 08, 2023 8:25 am

In your profile, find the option for
RELOAD_AMMUNITION
. I'm guessing you set it to
true
(since I was able to reproduce the error with that). Ensure that the value is either
false
,
arrow
, or
thrown
enclosed in quotes, like this:

Code: Select all

<option name="RELOAD_AMMUNITION" 	value="false" />

Next - do you have anything in your profile or waypoints that would modify the value of RELOAD_AMMUNITION?

Mausmann
Posts: 5
Joined: Sat Mar 07, 2020 11:26 pm

Re: Error "attempt to get length of local "Key" (a nil value)

#7 Post by Mausmann » Sat Jul 08, 2023 10:47 am

yea i changed it to false and now its working again finally thank you you saved me :D

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 36 guests