Page 1 of 1

Error-Messages mostly useless

Posted: Sat Dec 05, 2015 8:50 pm
by YuokiTani
I would appreciate some useful error-messages ...

Image

i fighting until this point with 2 similar useless messages before, but now i give up. i can't track it down manual, because all looks okay in editor.

why not give a hint last valid path, *.lua crashing, or path-line thats wrong ?

of course here is the log ...
factorio-Log

Re: Error-Messages mostly useless

Posted: Sat Dec 05, 2015 10:13 pm
by YuokiTani
after 3 frustrating hours i tracked it down to

correct:
filename = "__yi_railway__/graphics/entity/railway/2a_cws_tf1_sheet.png",

wrong:
filename = {
"__yi_railway__/graphics/entity/railway/2a_cws_tf1_sheet-0.png",
"__yi_railway__/graphics/entity/railway/2a_cws_tf1_sheet-1.png",
}

because correct is:
filenames = {
"__yi_railway__/graphics/entity/railway/2a_cws_tf1_sheet-0.png",
"__yi_railway__/graphics/entity/railway/2a_cws_tf1_sheet-1.png",
}

and before someone say easy ... this snipset is part of a 300 lines file and not the only 300+ lines-file i changed today.

i thinked the whole time some file-path was wrong, but in this case i suppose sprite not found - error.

a error-message like "parameter mismatch", "method wrong use" in xy.lua would more useful

Re: Error-Messages mostly useless

Posted: Wed Dec 09, 2015 10:12 am
by kovarex
Ok, this is fixed for the next version (0.12.21 or 0.13).

This error is specific to rotated sprite, as other sprite structures use either filename or stripes.

Re: Error-Messages mostly useless

Posted: Thu Dec 10, 2015 3:44 pm
by YuokiTani
Thanks !