Page 1 of 1

Need logging function

Posted: Sat Oct 29, 2016 3:56 pm
by Tami
Iam playing multiplayer with a bigger count of players, but sometimes their happen weird things, in other word: griefing.

In Starcraft you can see which player crafted what at wish time, this i would like to see here too, a crafting log to follow what player crafted stuff (by hand).

Also some gamecommands shouldnt disable achivements like game speed or disable handcrafting (by setting it to 0 for infinite duration for example)

Actually you can see place stuff and randomly turns belts, but you cant see who removed part of infrastructure like rails, belts, spltters.

Re: Need logging function

Posted: Sat Oct 29, 2016 4:37 pm
by ssilk
Log:
I think that could be also griefed: I place 100,000 walls. Have fun searching the logs for the one thing I have griefed.
Or in other words: Unlike Starcraft in Factorio you can do factor 10 to 1000 more actions per minute.

This suggestion might be useful, but needs more input!


Not disabling commandline completely:
You mean: There should be specialized commands for this, like /color etc...

Re: Need logging function

Posted: Sat Oct 29, 2016 7:26 pm
by GlassDeviant
Maybe some sort of count for repeating actions, rather than logging each one individually.

Re: Need logging function

Posted: Sat Oct 29, 2016 8:50 pm
by ssilk
Ok, hm, I remove 1000 rails. Now prove me that the one rail I took was from another player.
:)

Re: Need logging function

Posted: Sun Oct 30, 2016 12:52 am
by Nexela
ssilk wrote:Ok, hm, I remove 1000 rails. Now prove me that the one rail I took was from another player.
:)
off the top of my head. assuming last_user isn't changed Could be cleaned up a lot better. But I am typing sideways on a laptop,

script.on_event(defines.events.removed_event)

line = event.entity.name .. event.entity.last_user ..event.player_index
if line == temp then
count = count + 1
else
log(player.."removed"..count..line)
count = 0
temp=line
end

Granted there are ways around this. I really wish they left in built_by when they added last_user as they mean totally different things.

Re: Need logging function

Posted: Sun Oct 30, 2016 3:55 pm
by n7m6e7
Well. In the log it would just state (player Griefmaster has removed 100 rails consecutively(within X time of eachother) and built 500 walls. ) and it could keep info as to where on the map this happened. Then the moderator can check and make the call.

Re: Need logging function

Posted: Sun Oct 30, 2016 4:44 pm
by Tami
I even would spend time and watch a replay to see what happened there. But actually a griefer can grief and there is absolutly no way find the culprit.

The log could also be filtered by location like show me what happened in the last 5 minutes in the area X=10 - X=20; Y=10 - Y20.

Re: Need logging function

Posted: Sun Oct 30, 2016 7:25 pm
by ssilk
Aha, that was, what I was aiming with my examples: It is too much afford to look through hundreds lines of logfiles.
You need to look at what players do before you log it.

A mod, that helps with griefing.

[And I think also from the other side: Players need to allow other players to do things, before the action is really done.
But that is another suggestion. :) ]