Error-Messages mostly useless

This subforum contains all the issues which we already resolved.
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Error-Messages mostly useless

Post 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
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Re: Error-Messages mostly useless

Post 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
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Error-Messages mostly useless

Post 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.
Attachments
error.png
error.png (7.22 KiB) Viewed 8145 times
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Re: Error-Messages mostly useless

Post by YuokiTani »

Thanks !
Post Reply

Return to “Resolved Problems and Bugs”