Search found 9 matches

by iggyboo
Fri Sep 23, 2016 2:32 am
Forum: Multiplayer
Topic: Command to write a list of all players in your game to file
Replies: 0
Views: 1122

Command to write a list of all players in your game to file

I just hacked this out for to get a list of all players that logged into your game to a file. You can run this in the console with the game running or on a file you load after the fact: ` /c names="Names: "; for _, p in pairs(game.players) do names=names..p.name..", " end; game.w...
by iggyboo
Mon Sep 19, 2016 2:40 am
Forum: Mods
Topic: [MOD 0.14.x] TrollControl 0.1.1
Replies: 10
Views: 3346

Re: [MOD 0.14.x] TrollControl 0.1.1

Problem with events that might trigger troll control ... I don't see any. Looking at the available events http://lua-api.factorio.com/latest/ I see only on_entity_died and on_player_died would be the only way to determine damage, and those don't contain any data on the player that caused it (though ...
by iggyboo
Mon Sep 19, 2016 12:03 am
Forum: Mods
Topic: [MOD 0.14.x] TrollControl 0.1.1
Replies: 10
Views: 3346

Re: [MOD 0.14.x] TrollControl 0.1.1

Hmmm. I've been digging today to find ways to detect the "admins" and let them do damage and use weapons. Haven't made much progress. I think I'm going to have to deal with "forces" for this. [edit: Nope, I just found how to find game.players[index].admin = true then they are adm...
by iggyboo
Sun Sep 18, 2016 4:38 am
Forum: Modding help
Topic: Remove items with mod
Replies: 7
Views: 4544

Re: Remove items with mod

Ah, I think I see what you did there. That helps me understand how to modify and find values a bit better. Now that I can modify the damage, I'm digging into finding a way to determine a method to see if a player is damaging another player or player created building and then disable that damage. Thi...
by iggyboo
Fri Sep 16, 2016 2:33 am
Forum: Mods
Topic: [MOD 0.14.x] TrollControl 0.1.1
Replies: 10
Views: 3346

Re: [MOD 0.14.x] TrollControl 0.1.1

More brainstorming:

Add player list UI: List players and have a Ban/Promote buttons next to them
Add Ban Hammer: Admin shoots players with special BanHammer ammo to auto-ban
Greifer voting: Players vote to kick players and UI will provide top votes or set limit to auto-ban
by iggyboo
Fri Sep 16, 2016 12:01 am
Forum: Mods
Topic: [MOD 0.14.x] TrollControl 0.1.1
Replies: 10
Views: 3346

[MOD 0.14.x] TrollControl 0.1.1

Type: Mod Name: TrollControl Description: A mod aiming to control Trolls and their trolling in MP games License: MIT Version: 0.1.1 Release: 09-14-2016 Tested-With-Factorio-Version: 0.14.5 Category: Convenience Tags: Weapon, Multiplayer Prevent Trolls from damaging you and your factory Currently, a ...
by iggyboo
Thu Sep 15, 2016 2:50 am
Forum: Modding help
Topic: Remove items with mod
Replies: 7
Views: 4544

Re: Remove items with mod

Well, I decided to go even simpler: for _,gun in pairs(data.raw.gun) do gun.attack_parameters.ammo_category = "" end for _,projectile in pairs(data.raw.projectile) do if projectile.name=="grenade" or projectile.name=="cluster-grenade" or projectile.name=="poison-ca...
by iggyboo
Wed Sep 14, 2016 5:10 pm
Forum: Modding help
Topic: Remove items with mod
Replies: 7
Views: 4544

Re: Remove items with mod

Ah, very nice! I'll try that out tonight and see in how much trouble I can get myself :D

Thanks!
by iggyboo
Wed Sep 14, 2016 4:26 am
Forum: Modding help
Topic: Remove items with mod
Replies: 7
Views: 4544

Remove items with mod

I was wanting to write a quick mod for multiplayer games to remove weapons that can damage other players or items. Turrets would stay so there could be some defence. I've found all over the place where I can add items and recipes, but can't seem to find a way to remove a core item. Not from research...

Go to advanced search