[0.14.22] Canceling deconstruction planner still changes BY

Bugs that are actually features.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

[0.14.22] Canceling deconstruction planner still changes BY

Post by mophydeen »

Canceling a deconstruction planner order still changes the build by playerName.

It should only change the name if there is a change to the entity.

Possible solution: add an extra value, field eg. 'marked by'
This could work for blueprints aswell.

a blueprint or a deconstruction order are not 'build ...'
Rseding91
Factorio Staff
Factorio Staff
Posts: 15940
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by Rseding91 »

That's by design. Marking it for deconstruction changes the entity and canceling deconstruction changes it again.
If you want to get ahold of me I'm almost always on Discord.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by mophydeen »

Rseding91 wrote:That's by design. Marking it for deconstruction changes the entity and canceling deconstruction changes it again.
This makes it impossible to know who build it if someone drags a deconstruction planner over it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15940
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by Rseding91 »

mophydeen wrote:
Rseding91 wrote:That's by design. Marking it for deconstruction changes the entity and canceling deconstruction changes it again.
This makes it impossible to know who build it if someone drags a deconstruction planner over it.
Yes, it's not a built-by property. It's a last-modified-by property.

Changing circuit conditions, rotating, changing recipes and so on will also update the value.
If you want to get ahold of me I'm almost always on Discord.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by darkfrei »

Rseding91 wrote: Yes, it's not a built-by property. It's a last-modified-by property.

Changing circuit conditions, rotating, changing recipes and so on will also update the value.
Can we suggest on_pre_marked_to_deconstruction?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15940
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by Rseding91 »

darkfrei wrote:
Rseding91 wrote: Yes, it's not a built-by property. It's a last-modified-by property.

Changing circuit conditions, rotating, changing recipes and so on will also update the value.
Can we suggest on_pre_marked_to_deconstruction?
Why?
If you want to get ahold of me I'm almost always on Discord.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by DaveMcW »

Rseding91 wrote:Why?
Anti griefing mod.

Compare the player who last modified it to the player trying to deconstruct it.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by mophydeen »

what I would do:

* lastModifiedBy: someName (always visible for entities)
* markedBy: someName (only visible when marked for deconstruction or blueprint)
blueprint's markedBy is transfered to lastModifiedBy in case a robot build it. An other player in case he build it manualy.

tip: dont call it 'build by X' if it's modifiedBy.


just my 2c.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15940
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by Rseding91 »

DaveMcW wrote:
Rseding91 wrote:Why?
Anti griefing mod.

Compare the player who last modified it to the player trying to deconstruct it.
That's the wrong reason for such an event. Besides I've already got a proper solution to prevent griefing for 0.15.
If you want to get ahold of me I'm almost always on Discord.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by mophydeen »

Rseding91 wrote:
DaveMcW wrote:
Rseding91 wrote:Why?
Anti griefing mod.

Compare the player who last modified it to the player trying to deconstruct it.
That's the wrong reason for such an event. Besides I've already got a proper solution to prevent griefing for 0.15.
:o :o
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [0.14.22] Canceling deconstruction planner still changes BY

Post by darkfrei »

Rseding91 wrote: That's the wrong reason for such an event. Besides I've already got a proper solution to prevent griefing for 0.15.
Good news, everyone!

Why event.entity.last_user and event.player_index are always same?
Post Reply

Return to “Not a bug”