Page 1 of 1

0.16.3 artillery turrent not firering on_chunk_generated

Posted: Sat Dec 16, 2017 11:46 am
by Jelmergu
The artillery wagon does not fire the on_chunk_generated event. I had a try of using the wagon as a 'radar' by using the manual targeter on 'black' tiles on the map. While that works splendidly, it does not seem to call on the on_chunk_generated event.

What did I do:
1 Add a game.print("hi") to a mod with script.on_event("defines.events.on_chunk_generated', function...
2 Load the game with the mod
3 hop in a train with a artillery wagon
4 drive to a piece of undiscovered map
5 target a undiscovered piece of map at the edge of the wagon's range

What did I expect
1 at least one "hi" to be printed

What did I get
A nice line of discovered terrain, but no hi's

In the map image it is quite clear to see(the mod used was my noRocks_redux with layconcrete on) the chunks generated by the wagons are not paved over, where the rest is paved

I will leave this save with the train used on nearby the spawn region

Re: 0.16.3 artillery turrent not firering on_chunk_generated

Posted: Sat Dec 16, 2017 2:47 pm
by Rseding91
Thanks for the report but I can't reproduce your problem. The event is fired correctly or you wouldn't see biter bases/resources/trees on the map - them existing and the event are 1-in-the-same. In fact in order for the chunk to be charted it has to be generated fully or the game won't chart it.

Are you sure the mod is actually enabled correctly?

Re: 0.16.3 artillery turrent not firering on_chunk_generated

Posted: Sat Dec 16, 2017 4:50 pm
by Jelmergu
And I found the problem I had... The directory I was working in had 0.0.6 as version, and down the list there was a zip with 0.0.7 in it
Sorry for wasting your time

I really feel stupid now...