MM 103 issue?

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

MM 103 issue?

#1 Post by Cindy » Mon Apr 01, 2013 7:35 pm

A script that works fine in 102 gives the following error:

Did not find any crashed game clients.
7:27pm - [string "..."]:64: attempt to call field 'mod' (a nil value)


Any suggestions on what causes this?

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

Re: MM 103 issue?

#2 Post by lisa » Mon Apr 01, 2013 9:07 pm

change it to .fmod

lua 5.2 doesn't support .mod but you can use .fmod instead which basically does the same thing.

I am guessing you mean cot_tele

change

Code: Select all

local ss = string.format("%02s", math.floor(math.mod(secondsleft, 60)))
to

Code: Select all

local ss = string.format("%02s", math.floor(math.fmod(secondsleft, 60)))
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

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: MM 103 issue?

#3 Post by Cindy » Wed Apr 03, 2013 5:51 pm

Bingo! thanks Lisa

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests