Recent Topics

Ads

solved

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
bichka
Posts: 430

solved

Post#1 » Sat Apr 06, 2019 10:29 pm

issue solved.

shame on me, prise full relog.
Last edited by bichka on Mon Apr 08, 2019 6:23 pm, edited 1 time in total.

Ads
User avatar
bichka
Posts: 430

Re: Addon editing (lua files)

Post#2 » Sat Apr 06, 2019 10:46 pm

issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:23 pm, edited 1 time in total.

User avatar
OldSerpenT
Game Artist
Posts: 103

Re: Addon editing (lua files)

Post#3 » Mon Apr 08, 2019 4:38 pm

You're trying to return "false" which inflicts further processing when your settings are not loaded and your last transaction doesn't exist.
Put this "return false" after the line that checks "now" value.

I'd also suggest editor that supports line numbers. Helps a lot when pointing on what line has an issue.
Image Image

User avatar
bichka
Posts: 430

Re: Addon editing (lua files)

Post#4 » Mon Apr 08, 2019 5:11 pm

issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:24 pm, edited 1 time in total.

User avatar
OldSerpenT
Game Artist
Posts: 103

Re: Addon editing (lua files)

Post#5 » Mon Apr 08, 2019 5:27 pm

That's why you need an editor with line numbers.
You probably just need to turn them on.
If your editor doesn't support it, try something like Notepad++

if not now then return end
return false
if earlier and blahblahblah
Image Image

User avatar
bichka
Posts: 430

Re: Addon editing (lua files)

Post#6 » Mon Apr 08, 2019 5:39 pm

issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:24 pm, edited 1 time in total.

User avatar
OldSerpenT
Game Artist
Posts: 103

Re: Addon editing (lua files)

Post#7 » Mon Apr 08, 2019 5:41 pm

Put it between 147 and 148.
Image Image

User avatar
bichka
Posts: 430

Re: Addon editing (lua files)

Post#8 » Mon Apr 08, 2019 5:47 pm

my whole point is to turn function into simple

Code: Select all

function ThinkOutLoud.SuperUsefulFunc()
      return false
end
i don't need any initialization of variables for it which is not here anyway.

Ads
User avatar
OldSerpenT
Game Artist
Posts: 103

Re: Addon editing (lua files)

Post#9 » Mon Apr 08, 2019 5:51 pm

You can't because the expected return values are "true", "false" or "nil". If it is not "nil" then there should be further processing.
If you want to just skip the entire function then put empty return without true or false value.

Code: Select all

function ThinkOutLoud.SuperUsefulFunc()
      return
end
Image Image

User avatar
bichka
Posts: 430

Re: Addon editing (lua files)

Post#10 » Mon Apr 08, 2019 5:51 pm

issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:24 pm, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 77 guests