[0.12.x] PvP Scenarios

Place to share custom user maps, scenarios and campaigns.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

[0.12.x] PvP Scenarios

Post by Klonan » Thu Aug 20, 2015 12:18 am

Hello all!

I will be updating this thread more when I release more stuff!


LATEST PVP SCENARIO:

This is my latest scenario, Orange vs Purple:
pvp.zip
New PvP scenario, much better, 2 teams, sets starting area, clears out biters, stable
(22.13 KiB) Downloaded 1688 times
This is PvP where you have to destroy the enemy roboport:
Roboport_PvP_Slow.zip
(24.49 KiB) Downloaded 468 times
It is much more advanced and better in general that the Red vs Blue,
I Hope you all enjoy

To install just unzip the folder and put it in the scenarios folder


For now my initial release is a 2-team PvP scenario
updated for 0.12.11+
PvP_RvB_0.1.0.zip
--For version 0.12.11+
(1.63 KiB) Downloaded 740 times

When you spawn you will be prompted to choose a team. When this is done you will be teleported to your teams spawn location and given your equipment. Good hunting!

Map is generated as a normal new map would be.

Any suggestions/requests/comments please let me know!

I will most definitely be releasing a greater variety of PvP scenario, so watch this page :]


New Map!
MapView
PvP_Newlands_RvB_0.12.22.zip
For 0.12.11+
(294.76 KiB) Downloaded 389 times
This map is a custom close spawn map, i added a score counter in the top left to count the number of launches each team has sucessfully made!
It has a market for buying items, and you start with a good amount of gear.

Let me know what you all think
Old releases
Attachments
PvP_Newlands_RvB.zip
(294.71 KiB) Downloaded 367 times
PvP_Red_vs_Blue.zip
Initial release - For version 0.12.4
(1.63 KiB) Downloaded 432 times
Last edited by Klonan on Tue Nov 03, 2015 3:44 pm, edited 4 times in total.

User avatar
HeilTec
Filter Inserter
Filter Inserter
Posts: 258
Joined: Tue Jul 08, 2014 1:14 pm

[0.12.x] PvP Scenarios - map example

Post by HeilTec » Fri Aug 21, 2015 4:49 am

This is a great idea. Having watched the tutorial video I commenced trying to make a map.

Of the maps created none seemed fair in starting positions.

Looking into the code I found that it could be written for easier reconfiguration of starting_inventory.

Then It occurred to me that the script could be edited after the map was generated to set a more fair set of starting locations.
Loaded a new map first entering blue team. Moving to a fair location and getting coordinates from debug screen (F5)
- rinse and repeat for red team.
Extract "control.lua" from save game - edit coords - re-compress into save game .zip

This is the result of the effort:
PVP.Map.1.zip
Map with changed starting positions.
(764.89 KiB) Downloaded 443 times
Google is my friend. Searching the forum and the wiki is always a first.
[spoiler=Pity my slow laptop]Compaq Presario CQ61
Pentium Dual Core T4300 @ 2.10 GHz
4 GB RAM
w7 64 bit
Windows Experience Index:3.9[/spoiler]

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios - map example

Post by Klonan » Fri Aug 21, 2015 1:32 pm

HeilTec wrote:This is a great idea. Having watched the tutorial video I commenced trying to make a map.

Of the maps created none seemed fair in starting positions.

Looking into the code I found that it could be written for easier reconfiguration of starting_inventory.

Then It occurred to me that the script could be edited after the map was generated to set a more fair set of starting locations.
Loaded a new map first entering blue team. Moving to a fair location and getting coordinates from debug screen (F5)
- rinse and repeat for red team.
Extract "control.lua" from save game - edit coords - re-compress into save game .zip

This is the result of the effort:
PVP.Map.1.zip
Yep i need to work on a lot of additional stuff, one of my items to do is clear out biters around the spawn locations in a certain radius, work on a diplomacy menu and much more.

I have a map that is almost ready, but i need to wait for version 0.12.5 for me to finish off one of the features, but hopefully i will be able to release it this evening
Sneak peek of map
It actually my old PvP map for version 0.11, but i have updated it and tweaked it for a 0.12 release ;)

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Mon Aug 31, 2015 10:36 pm

I have updated the OP with a new release. a custom map with a new score mechanism the ROCKET SCORE!

I may update the original release to include this score mechanism... Stay tuned!

User avatar
HeilTec
Filter Inserter
Filter Inserter
Posts: 258
Joined: Tue Jul 08, 2014 1:14 pm

Re: [0.12.x] PvP Scenarios

Post by HeilTec » Mon Aug 31, 2015 11:31 pm

I'd like to try the new PvP_Newlands_RvB.
How many players would be optimum?
Google is my friend. Searching the forum and the wiki is always a first.
[spoiler=Pity my slow laptop]Compaq Presario CQ61
Pentium Dual Core T4300 @ 2.10 GHz
4 GB RAM
w7 64 bit
Windows Experience Index:3.9[/spoiler]

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Tue Sep 01, 2015 12:20 am

HeilTec wrote:I'd like to try the new PvP_Newlands_RvB.
How many players would be optimum?
There is space for up to 3 players on each team, if you wall want your own base area, but more or less players will work absolutely fine.
I think 2v2 is a good number for an interesting game :)

User avatar
HeilTec
Filter Inserter
Filter Inserter
Posts: 258
Joined: Tue Jul 08, 2014 1:14 pm

Re: [0.12.x] PvP Scenarios

Post by HeilTec » Tue Sep 01, 2015 2:39 am

I was disappointed to be unable to ghost or use blueprint so I added these lines to the create_forces function

Code: Select all

	game.forces.blue.technologies["automated-construction"].researched = true	

	game.forces.blue.technologies["automated-construction"].researched = true
I suppose being given bots and blueprints are not just meant to be a teaser.
Google is my friend. Searching the forum and the wiki is always a first.
[spoiler=Pity my slow laptop]Compaq Presario CQ61
Pentium Dual Core T4300 @ 2.10 GHz
4 GB RAM
w7 64 bit
Windows Experience Index:3.9[/spoiler]

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Tue Sep 01, 2015 12:36 pm

HeilTec wrote:I was disappointed to be unable to ghost or use blueprint so I added these lines to the create_forces function

Code: Select all

	game.forces.blue.technologies["automated-construction"].researched = true	

	game.forces.blue.technologies["automated-construction"].researched = true
I suppose being given bots and blueprints are not just meant to be a teaser.
haha, actually i beat you to it, i realised last night i forgot to add the proper commands so i ninja re-uploaded the scenario with them in :D

saladin1980
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Feb 27, 2015 6:32 pm

Re: [0.12.x] PvP Scenarios

Post by saladin1980 » Tue Sep 01, 2015 6:28 pm

I believe if we can get the engineers to join on this we would be able to have a play through at least with some interesting pov on the game:) as some can stream while in MP and other do not but they record..

So will put it to the group and see if we can get this up and running and put up some vids about it
Factorio Engineers - Where we strive to help and assist in designs and basic understanding of the game, and on occasion have FUN.
Click here to see saladin1980's stream.

User avatar
HeilTec
Filter Inserter
Filter Inserter
Posts: 258
Joined: Tue Jul 08, 2014 1:14 pm

Re: [0.12.x] PvP Scenarios

Post by HeilTec » Thu Sep 03, 2015 8:11 pm

It is a hard choice - how much to buy of each.
init
Attachments
PvP_Newlands_RvB.initial.png
Initial conditions - and pricing.
PvP_Newlands_RvB.initial.png (279.51 KiB) Viewed 38875 times
Google is my friend. Searching the forum and the wiki is always a first.
[spoiler=Pity my slow laptop]Compaq Presario CQ61
Pentium Dual Core T4300 @ 2.10 GHz
4 GB RAM
w7 64 bit
Windows Experience Index:3.9[/spoiler]

Kamisoi
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Nov 02, 2015 5:25 pm

Re: [0.12.x] PvP Scenarios

Post by Kamisoi » Tue Nov 03, 2015 11:27 am

Only for me any of these maps aren't working? :/
I tried everything, always makes error on loading, so can't play. Or my game is bugged. Playing on 0.12.12.. Anyone can help? :/

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Tue Nov 03, 2015 3:44 pm

Kamisoi wrote:Only for me any of these maps aren't working? :/
I tried everything, always makes error on loading, so can't play. Or my game is bugged. Playing on 0.12.12.. Anyone can help? :/
Hi yea there was a game update that broke the scenario, i have updated the OP with a new download that should work with 0.12.12

Let me know if you have any problem or bugs ETC.

Leosmellsgood
Inserter
Inserter
Posts: 28
Joined: Fri Jan 16, 2015 10:35 am

Re: [0.12.x] PvP Scenarios

Post by Leosmellsgood » Wed Nov 18, 2015 2:02 am

How do you start the pvp? like where do you drag the pvp file to, similar to a mod in data??

User avatar
HeilTec
Filter Inserter
Filter Inserter
Posts: 258
Joined: Tue Jul 08, 2014 1:14 pm

Re: [0.12.x] PvP Scenarios

Post by HeilTec » Wed Nov 18, 2015 2:26 am

Leosmellsgood wrote:How do you start the pvp? like where do you drag the pvp file to, similar to a mod in data??
Drop the scenario file in the scenario folder.
To start a new map you start the scenario.
Google is my friend. Searching the forum and the wiki is always a first.
[spoiler=Pity my slow laptop]Compaq Presario CQ61
Pentium Dual Core T4300 @ 2.10 GHz
4 GB RAM
w7 64 bit
Windows Experience Index:3.9[/spoiler]

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Mon Feb 15, 2016 5:39 pm

I have released a new scenario (Just called pvp) which is for 2 teams, and is Orange Vs Purple.

It is far better than the previous scenarios i have released.
Any bugs, comments or general inquiries, please let me know.

JuicyJuuce
Inserter
Inserter
Posts: 20
Joined: Wed Mar 16, 2016 11:33 pm

Re: [0.12.x] PvP Scenarios

Post by JuicyJuuce » Fri Mar 18, 2016 4:31 am

I'm confused about how to start a new multiplayer game with this scenario. I unzipped the contents of pvp.zip to my Steam\SteamApps\common\Factorio\data\base\scenarios folder. However, within the game, I can't find where to start a multiplayer scenario. From the main menu I go to Play -> Multiplayer and all I see is New Game, Load Game, and Connect to Game, none of which allow me to start a scenario. If on the other hand I go to Play -> Custom scenario, it allows me to create a new game using "base/pvp" although this appears to only be a single player game.

What am I missing?
3Ra Gaming Moderator
come play the PvP scenario with us and join our discord at www.3ragaming.com/discord

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Fri Mar 18, 2016 11:31 am

JuicyJuuce wrote:
What am I missing?
Nothing, at the moment the only way to play scenarios MP is to open in single player, save them, and then load into multiplayer
I'd suggest waiting for the teams to be unlocked before saving, as sometimes the map is unsuitable (mostly lakes on team spawns) so that you will have restart the map

Kalrirr
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Apr 01, 2016 9:59 pm

Re: [0.12.x] PvP Scenarios

Post by Kalrirr » Fri Apr 01, 2016 10:00 pm

I've played a fair bit of your map but I don't understand how you're ment to get purple research going, there are no biters on orange vs purple and the market doesn't sell the alien stuff. Some help would really be appreciated!

waduk
Filter Inserter
Filter Inserter
Posts: 346
Joined: Tue Feb 10, 2015 5:44 pm

Re: [0.12.x] PvP Scenarios

Post by waduk » Thu Apr 07, 2016 8:03 am

Klonan, how you make the "choose team?"
I'm currently building a custom map, for single player, but i want to player to choose starting location.
I have all the needed coordinate.
So basically just teleport function, i don't need "choose team" function.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3212
Joined: Sun Jan 11, 2015 2:09 pm

Re: [0.12.x] PvP Scenarios

Post by Klonan » Thu Apr 07, 2016 11:27 am

waduk wrote:Klonan, how you make the "choose team?"
I'm currently building a custom map, for single player, but i want to player to choose starting location.
I have all the needed coordinate.
So basically just teleport function, i don't need "choose team" function.
This is the code i have in the gui function:

This creates the gui and buttons:

Code: Select all

function make_team_option(player)
  if player.gui.left.choose_team == nil then
    local frame = player.gui.left.add{name = "choose_team", type = "frame", direction = "vertical", caption="Choose your Team"}
          frame.add{type = "button", caption = "Join Orange Team", name = "orange"}.style.font_color = orange_color
          frame.add{type = "button", caption = "Join Purple Team", name = "purple"}.style.font_color = {r = 0.5,b = 1, g = 0.1}
          frame.add{type = "button", caption = "Check team numbers", name = "check"}.style.font_color = {r = 0.9,b = 0.9, g = 0.9}
		
	end
end
and then this to see what button they press, and teleport the player when he clicks it:

Code: Select all

script.on_event(defines.events.on_gui_click, function(event)
 local s = game.surfaces.nauvis
 local player = game.players[event.player_index]
 
  if player.gui.left.choose_team ~= nil then
    if (event.element.name == "orange") then
      player.teleport(game.forces["Orange"].get_spawn_position(s), game.surfaces.nauvis)
      player.color = orange_color
      player.force = game.forces["Orange"]
      player.gui.left.choose_team.destroy()
      player.insert{name="iron-plate", count=8}
      player.insert{name="pistol", count=1}
      player.insert{name="basic-bullet-magazine", count=10}
      player.insert{name="burner-mining-drill", count = 1}
      player.insert{name="stone-furnace", count = 1}    
      player.set_goal_description("Destroy the Purple Roboport")      
      for k, p in pairs (game.players) do
        p.print(player.name.." has joined team Orange")

      end
    end
	end
  if player.gui.left.choose_team ~= nil then
    if (event.element.name == "purple") then
      player.teleport(game.forces["Purple"].get_spawn_position(s), game.surfaces.nauvis)
      player.color = purple_color
      player.force = game.forces["Purple"]
      player.gui.left.choose_team.destroy()
      player.insert{name="iron-plate", count=8}
      player.insert{name="pistol", count=1}
      player.insert{name="basic-bullet-magazine", count=10}
      player.insert{name="burner-mining-drill", count = 1}
      player.insert{name="stone-furnace", count = 1}    
      player.set_goal_description("Destroy the Orange Roboport")
      for k, p in pairs (game.players) do
        p.print(player.name.." has joined team Purple")
      end
    end
  end
  if player.gui.left.choose_team ~= nil then
    if (event.element.name == "check") then
      local orange_count = 0
      local purple_count = 0
      for k, p in pairs (game.players) do
        if p.force == game.forces.Purple then purple_count = purple_count + 1 end
        if p.force == game.forces.Orange then orange_count = orange_count + 1 end
      end
      player.print("There are "..purple_count.." Players on Purple team and "..orange_count.." Players on Orange team")
    end
  end
end)

Post Reply

Return to “Maps and Scenarios”