Comments (5)
I currently don't have any options that would allow you to combine teams later. However, keep in mind that the friendly teams right now can link up electricity, rail lines can be shared (stops can't be though), and you can pick up each other's buildings and interact quite a lot once you find each other.
No, you currently can't change the shared vision during run time. It wouldn't be too hard to change that though. It's just how you would give it
Shared vision between forces is kind of hacky right now. I don't have a good way to do it.
So there is a lua function you can call to merge teams, in theory I could add an option, maybe in the spawn control menu, that gives you a button to press to "join the main team".
When you merge a force with another force, the force that is being merged INTO is the one that keeps it's reasearch and force name. When merging, you would have to be careful that you don't lose a bunch of research.
A few questions I have for this type of feature addition:
- When would you want to "allow" combining / transferring teams?
- Would you care if you lost research? Would you want to combine research progress from both teams?
from factorioscenariomultiplayerspawn.
The traditional merging may be fine if it was well documented on what exactly it would do.
An alternative: if you can create a wrapper around the built in merge function to do the following. It may retain the research from both teams. This feature could be selectable/optional when merging
save research from team 1
save research from team 2
call built in merge function
save research from merged team
loop through saves from team 1 and add them if missing from merged team
loop through saves from team 2 and add them if missing from merged team
For when.
I would say it could be any time. For instance 2 teams finally cross the expanse with their trains and decide to pool their resources for launching rockets even faster. Both teams would have to agree to the merge.
For a similar case. Transferring teams
There may be friends that create their own bases at the start and then decide to actually work together. Or the opposite they start together but then one player wants to start off on their own.
from factorioscenariomultiplayerspawn.
@Cyberzoid1 I like that idea. It wouldn't be too difficult to do as well. I've had some ideas about splitting up teams to do different tasks (military, science, smelting, etc...) and that each team can only build certain things and research certain things.
I'll see if I can at least make a helper function that does what you ask, so that you could call it from the command line if you need to. Not sure when I'll get time but will leave this open until I get to it.
from factorioscenariomultiplayerspawn.
@Cyberzoid1 I added a function to try merging forces AND keeping research... I did a basic check to see if it works, but I have no idea how it will work in a real game. If you can give it a try that would be cool.
You can call it from the command line like this:
/c MergeForcesKeepResearch(game.forces[MAIN_FORCE], game.player.force)
This will merge your force into the main force for example, but you can do it between any 2.
For your requested scenario, you can try turning off shared vision, and when you merge forces, you should get shared vision automatically. Let me know how it goes.
from factorioscenariomultiplayerspawn.
Marking as closed since I don't plan to make this an official feature.
from factorioscenariomultiplayerspawn.
Related Issues (20)
- Spawn control gui exception? HOT 4
- Shared Chest Fatal Error HOT 2
- Incompatibility with 1.1 HOT 1
- Loader recipe is set to hidden (factorio game code changed) HOT 3
- Vehicles/Spidertron deleted during map cleanup HOT 1
- Starter crashed ship has spidertron and no setting in the config.lua HOT 2
- Undecorator deletes fish HOT 4
- server crash with the ney version 1.1.19 HOT 3
- Players start with coins, even when Coin Shop is disabled HOT 1
- Desync when doing map cleanup HOT 2
- Scenario crashes on_tick if it is (incorrectly) set up with energy_sharing = true & coin_shop = false HOT 1
- Attempting to call math.random() outside an event or during loading HOT 2
- Crash on player respawn HOT 1
- Construction robot self destruction HOT 11
- Hopefully it will be compatible with space exploration HOT 2
- Desync with stored shared energy HOT 2
- Is this project still under maintenance? HOT 6
- Server crashes after adding any helmod or recipe browsing mod HOT 1
- Mod incompatiabilities with level::on_player_created HOT 1
- Base cleanup fails sometimes when players leave early HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from factorioscenariomultiplayerspawn.