Page 1 of 1

weapons Training

Posted: Sat Jun 18, 2022 1:45 am
by mattstar81
Hello,
I had always used the profile "weptraining" to level up my weapons.
now I get the following error message
2022-06-18 08:39:27 - [string "..."]:12: attempt to perform arithmetic on field 'skillRemainingCooldown_offset' (a nil value)
does anyone have an idea ?
Many Thanks

Re: weapons Training

Posted: Sat Jun 18, 2022 7:59 am
by Administrator
I think that waypoint script hasn't been updated in years, and I do not have a copy.
Can you upload it?

Re: weapons Training

Posted: Sat Jun 18, 2022 8:08 am
by mattstar81

Re: weapons Training

Posted: Sat Jun 18, 2022 6:08 pm
by Administrator
I added WepTraining.xml to versioning (as in it will be included with the bot from now on).

If you update your scripts, that should solve it for you. Please verify that updating your scripts overwrote your version of WepTraining.xml. Open it and on line 12, you should see this:

Code: Select all

getCD = getCooldownForId -- Shortcut to function getCooldownForId() in functions.lua

Re: weapons Training

Posted: Sun Jun 19, 2022 5:09 am
by mattstar81
Wow thank you very much.

The profile starts now, but hangs up on the fire training.
I entered the fire training in the profile
Have you test it ?

Re: weapons Training

Posted: Sun Jun 19, 2022 6:52 am
by Administrator
Kind of. I only tested it with normal enemies near the start of the game (I do not actually play the game and haven't since 2008).

I do not know what the script is supposed to even do, outside of what I was able to figure out from looking over the code. It was attacking the enemies for the IDs I entered, and occasionally reported stats on durability and how many hammers were left, so I figured it was doing its job.

Re: weapons Training

Posted: Sun Jun 19, 2022 2:08 pm
by mattstar81
It was attacking the enemies for the IDs I entered

good tip thank you very much^^