[0.12.12] Crash with a syntactic typo in code

Things that has been reported already before.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

[0.12.12] Crash with a syntactic typo in code

Post by Adil »

Whilst searching for errors in one of my mods I've come over this crash with this code.
The code contains a typo, which causes a crash even before interpreter reaches the erroneous line of code.
code
What's weird for me is that it keeps coming up with new ways to crash with the same code.
First crashlog
If you keep poking it, it'll dump this:
Different crashlog
EDIT: Yes, it definitely hates bad grammer now, I've faced another one when put space between "else" and "if".
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.12.12] Crash with a syntactic typo in code

Post by orzelek »

Please add mod and zip with save file :)
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: [0.12.12] Crash with a syntactic typo in code

Post by Adil »

It's not a mod or save, it's interpreter issue.
You can actually crash the game by typing the following

Code: Select all

/c if (true==false then end
or by making a typo in a script.
Crashing with the console typo
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: [0.12.12] Crash with a syntactic typo in code

Post by prg »

That's the pcall on Linux thing, you already commented in that thread.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Post Reply

Return to “Duplicates”