Creating a variable called "type" breaks world saving

This subforum contains all the issues which we already resolved.
AlienX
Fast Inserter
Fast Inserter
Posts: 105
Joined: Wed May 17, 2017 7:13 pm
Contact:

Creating a variable called "type" breaks world saving

Post by AlienX »

Hi devs,
So I stumbled across a strange bug, if i run the following code in-game the game can no longer save.

Code: Select all

/c type="hello"
Originally i was saving the type of a entity on the players cursor to a temp var, called type.

Code: Select all

/c type=game.player.selected.name
Just a heads up.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5414
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Creating a variable called "type" breaks world saving

Post by Klonan »

Yea, That is because type is used for serpent to serialize the script data,
I would say, just don't do that
Post Reply

Return to “Resolved Problems and Bugs”