Research handicapping (MP Teams)

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
DutchTed
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sat Jul 30, 2016 8:09 am
Contact:

Research handicapping (MP Teams)

Post by DutchTed »

A few of us play a Bob's modded game together on separate teams with separate research. Some of us play more than others :roll: and the overall ability of the players differs. Also some of the more frequent players have a lot of blueprints so advance quicker in the mid and end game.

I was wondering if it is possible for a mod to be developed which would allow for a research multiplier which would mean that certain player forces require more science packs in order to complete research.

I've been having a rudimentary look myself but I'm thinking this isn't currently possible since I am not able to modify science pack recipes after the game has been created and players have entered.

Effectively we want:

Player 1 on Force 1- Newbie -research costs 0.5 times normal
Player 2 on Force 2 - Casual player - research costs normal
Player 3 on Force 3 - Hardcore with blueprints coming out of his ears - research costs 3x normal
... etc

Alternatively would it be possible to write a mod which effectively sets up the teams and research handicap before the game even starts?

Thanks in advance

DT

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1196
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: Research handicapping (MP Teams)

Post by Mooncat »

From the 0.14 API doc, there is no way to change the research cost per force.
But you can change the research speed with LuaForce::laboratory_speed_modifier

An alternative is to decrease LuaForce::research_progress by script, to void the used science packs. But that won't change the cost shown on the technology UI. So it may not be a good solution.

SyncViews
Filter Inserter
Filter Inserter
Posts: 295
Joined: Thu Apr 21, 2016 3:17 pm
Contact:

Re: Research handicapping (MP Teams)

Post by SyncViews »

Only way to change the cost in the UI would be to clone the tech tree in the data for each player (LuaTechnology has an enabled flag to give each force the right set). Im not sure if the game UI will however hide the "impossible" techs from the research screen, which could be a problem.

It will also need to be scripted in a way not dependent on bobs or angles due to licence restrictions (e.g. fully dynamic, you shouldn't copy paste the tech file and edit all the names/costs there then distribute the modified modifications).

BenSeidel
Filter Inserter
Filter Inserter
Posts: 584
Joined: Tue Jun 28, 2016 1:44 am
Contact:

Re: Research handicapping (MP Teams)

Post by BenSeidel »

Is there an efficiency stat for the lab? much like the efficiency stat in anything burner?

Post Reply

Return to “Modding discussion”