[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: 3178
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.16.28] God controller does not raise on_player_changed_po

Post by eradicator » Wed Mar 14, 2018 12:19 am

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: 6735
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 » Wed Mar 14, 2018 8:55 am

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: 9478
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 » Thu Mar 15, 2018 12:17 am

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”

Who is online

Users browsing this forum: No registered users