Page 1 of 1

No error logs?

Posted: Fri Jun 13, 2014 11:41 am
by Colombo
Hello,

while browsing forum, I encountered many players getting error logs. But when I have error in mod or something, the game just fall down without any error or error log. No console output when running through console, nothing. Those two logs that are present in factorio folder are quite empty without any usable info.

How do you enable those error logs?

Re: No error logs?

Posted: Sun Jun 15, 2014 9:45 am
by Colombo
bump

Re: No error logs?

Posted: Sun Jun 15, 2014 11:21 am
by ssilk
Works for Mac and Linux only.

Re: No error logs?

Posted: Sun Jun 15, 2014 11:39 am
by Colombo
ubuntu (now 14.04)

Re: No error logs?

Posted: Sun Jun 15, 2014 11:40 am
by ssilk
Started in a shell?

Re: No error logs?

Posted: Sun Jun 15, 2014 11:47 am
by Colombo
Made error in mod.

Started Factorio in shell.

Factorio starts booting up

fails without any error provided.

Re: No error logs?

Posted: Sun Jun 15, 2014 9:18 pm
by ssilk
Hm. I must excuse, but I was sure, it works like so... :}

I can remember something about also installing a debugger?! What if you just search for "debug"?

Re: No error logs?

Posted: Sun Jun 15, 2014 10:46 pm
by Colombo
on forum, debugs seems like something about mode in game, not before game is actually started:/

Re: No error logs?

Posted: Tue Jun 17, 2014 5:15 am
by Colombo
bump

Re: No error logs?

Posted: Tue Jun 17, 2014 6:06 am
by sillyfly
Can you link to one such example, just so we know what you're looking for?

Re: No error logs?

Posted: Tue Jun 17, 2014 6:30 am
by Colombo

Re: No error logs?

Posted: Tue Jun 17, 2014 6:55 am
by sillyfly
I tried to make a mod with an error just to see what happens, and I get a message box in game, but nothing in the terminal...

Re: No error logs?

Posted: Tue Jun 17, 2014 7:22 am
by Colombo
sillyfly: I don't even get message box in game. Factorio just fails without an error. You have to agree that bugfixing in that case is quite hard.

I spend an hour to fix the bugs, searching for comma, checking against wiki, untill I find out that it doesn't work just because some prototypes don't have allowed burner energy.

Re: No error logs?

Posted: Tue Jun 17, 2014 7:37 am
by sillyfly
I agree. I don't know enough about Lua, but I suppose there is some form of exception handling mechanism (something like "try..catch" in java, for example). maybe you can use this to make your life easier.
But I think at this point you should probably file a bug in the bug reports forum. Maybe the developers could add better ways to see what went wrong in a mod...

Re: No error logs?

Posted: Tue Jun 17, 2014 3:43 pm
by cube