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

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post 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
Attachments
Mining_Drones_1.1.1.zip
(34.29 MiB) Downloaded 148 times

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

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

Post by Oxyd »

Done. In 0.12.5, .chart will create a new chart when necessary.

Scyth3
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jul 30, 2015 11:47 pm
Contact:

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

Post 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.

Post Reply

Return to “Resolved Problems and Bugs”