Giter Club home page Giter Club logo

Comments (5)

Oarcinae avatar Oarcinae commented on July 18, 2024

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:

  1. When would you want to "allow" combining / transferring teams?
  2. Would you care if you lost research? Would you want to combine research progress from both teams?

from factorioscenariomultiplayerspawn.

Cyberzoid1 avatar Cyberzoid1 commented on July 18, 2024

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.

Oarcinae avatar Oarcinae commented on July 18, 2024

@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.

Oarcinae avatar Oarcinae commented on July 18, 2024

@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.

Oarcinae avatar Oarcinae commented on July 18, 2024

Marking as closed since I don't plan to make this an official feature.

from factorioscenariomultiplayerspawn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.