[0.16.28] God controller does not raise on_player_changed_po

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.16.28] God controller does not raise on_player_changed_po

Post by eradicator »

A player with no associated character moving around does not raise an on_player_changed_position event, only if the player zooms in or out the event is raised.

Expected behavior: on_player_changed_position should be raised normally for god controllers.

Democode:

Code: Select all

/c
script.on_event(defines.events.on_player_changed_position,function(e)
 game.print(serpent.line(game.players[e.player_index].position))
end)
Last edited by eradicator on Wed Mar 14, 2018 10:26 am, edited 1 time in total.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.16.28] God controller does not raise on_player_changed_po

Post by bobingabout »

It probably should raise an event, because the god exploring can reveal map.

(in fact, when in ghost mod, not god or character, it uncovers the map too, when IMO it shouldn't, because I'd call that an observer mode)
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13202
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.28] God controller does not raise on_player_changed_po

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”