Page 1 of 1

[0.12.4][O] Chart Map "Specified surface doesn't have chart"

Posted: Tue Aug 18, 2015 7:50 pm
by Klonan
Screenshot
So i've been making a custom scenario, and i want each force to chart the map. So it seems i cannot chart for a force if the force has no players, whether i call it with the surface name or player.surface. this is some of the code i have been using to chart the map:

Code: Select all

function chart_map()
	game.forces.blue.chart(game.players[1].surface,{{-200, -300}, {200, 300}})
	game.forces.red.chart(game.surfaces["nauvis"],{{-200, -300}, {200, 300}}) --trying both methods, both results in error
	end

Neither of the options works using the camge script, but i can use the console to chart the map sometimes.
Sucessful using console
Either im doing something wrong or it is a bug

Re: [0.12.4][O] Chart Map "Specified surface doesn't have chart"

Posted: Wed Aug 19, 2015 11:22 am
by Oxyd
Done. In 0.12.5, .chart will create a new chart when necessary.

Re: [0.12.4][O] Chart Map "Specified surface doesn't have chart"

Posted: Fri Aug 21, 2015 10:14 am
by Scyth3
Oxyd wrote:Done. In 0.12.5, .chart will create a new chart when necessary.
Sorry to hijack but is it possible that this is related in any way?

https://forums.factorio.com/forum/vie ... 25&t=14315

I sincerely apologize if it isn't.