TeamCoop

by Darkcry

Teams can build their own Factory with separate research. By default the rocket silo can not be build by players but there is one randomly spawned in the world

3 years ago
0.14 - 1.1
1.17K

Changelog

Version: 4.0.2
Date: 2020.12.30
  Fix:
	- typo removed
Version: 4.0.1
Date: 2020.12.29
  Fix:
	- register of the interface in on_load and on_configuration_changed
	- this should made the mod load from previous same games
Version: 4.0.0
Date: 2020.12.29
  Changes:
	- Removed custom event from globals and published on remote interface
	- Event ID is fetched like remote.call("TeamCoop", "get_event_id_on_teamcoop_player_spawned")
	- Then you can listen for the player spawn event like
	
	script.on_event(remote.call("TeamCoop", "get_event_id_on_teamcoop_player_spawned"), function(customEvent)
		local player = game.players[customEvent.player_index]
		player.print("Test")
		player.print( player.name )
		player.print( player.position.x .. ", " .. player.position.y )
	end)
Version: 3.0.4
Date: 2020.12.26
  Changes:
	- Updated GUI Buttons on top
Version: 3.0.3
Date: 2020.12.21
  Changes:
	- possible fix for invalid spawn location
Version: 3.0.2
Date: 2020.11.25
  Changes:
	- updated to factorio version 1.1
Version: 3.0.1
Date: 2020.04.07
  Changes:
	- renamed custom event defines.events.on_teamcoop_player_spawned to global.on_teamcoop_player_spawned
Version: 3.0.0
Date: 2020.02.06
  Changes:
    - compatibility with base 0.18
  Added:
	- custom event defines.events.on_teamcoop_player_spawned
	-- is raised after player has been teleported to his spawn point
	-- event property player_index
	
	script.on_event(defines.events.on_teamcoop_player_spawned, function(customEvent)
		local player = game.players[customEvent.player_index]
		player.print("Test")
		player.print( player.name )
		player.print( player.position.x .. ", " .. player.position.y )
	end)
Version: 2.0.6
Date: 2020.01.03
  Changes:
    - reworked UI
	- added info to show silo coordinates if revealed setting is enabled
    - added admin functions to change player teams
Version: 2.0.5
Date: 2019.11.16
  Changes:
    - removed cliffs from spawn area
    - added compatibility for omnimatter mod. you will get 4 omnite resource patches
Version: 2.0.4
Date: 2019.11.09
  Changes:
    - optimzed ore patch layout
    - added compatibility for Industrial Revolution mod