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
0.16.3 artillery turrent not firering on_chunk_generated
0.16.3 artillery turrent not firering on_chunk_generated
- Attachments
-
- ArtilleryWagonRadar.png (73.24 KiB) Viewed 1074 times
-
- ArtilleryWagonSave.zip
- (3.69 MiB) Downloaded 70 times
Re: 0.16.3 artillery turrent not firering on_chunk_generated
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?
Are you sure the mod is actually enabled correctly?
If you want to get ahold of me I'm almost always on Discord.
Re: 0.16.3 artillery turrent not firering on_chunk_generated
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...
Sorry for wasting your time
I really feel stupid now...