Cloning Vat

by plexpt

The cloning vat is a structure in Command & Conquer: Red Alert 2. this mod is like that. An epitome of advanced replication technology. This apparatus allows for the duplication of most solid items and fluids. Feed it with the desired resource and, with the right amount of thermal energy, watch it produce a multiplied output. Be cautious: the higher the rarity of the resource, the more energy and time the process demands. Regular maintenance is required to keep the vat at optimal performance.

Content
3 months ago
1.1 - 2.0
1.11K
Transportation Combat Logistic network Manufacturing Power Cheats

g Config

4 months ago
(updated 4 months ago)

Hello, love this mod, is there any plans to add configuration for settings? Would like to tweak the machines.

Maybe ability to change speed, if certain things can or can't be crafted like modules and science packs.

Ps. These machines are huge lol

4 months ago

config what ?

4 months ago

Things like output, allowed items. Currently it doesn't allow weird things like rails. But allows just about everything else.

4 months ago

I think it is ok now

4 months ago

Mod works good for most things. Just want to be able to allow more things to be cloned. I've looked all over files and can't figure out how to do it lol.

4 months ago

can not clone more
I have cloned all the ones that can be cloned. The others cannot be cloned because of their own limitations.

4 months ago

Oh, I see. Thanks

3 months ago

I have cloned all the ones that can be cloned. The others cannot be cloned because of their own limitations

This is untrue. You have cloned every "item" in the list of data.raw.item. But not every item is actually contained in that list. Rail, for example, is actually located under data.raw["rail-planner"]; firearm magazines and other bullets are under data.raw.ammo, modules are under data.raw.module, etc. There are several item types that you could be cloning, but you aren't.

I know this, because I have a similar for loop in one of my own mods, Reverse Factory, which has to go through every item in the game, and create a reverse recipe for it, so that it can be recycled in the machine.

As evidence, an improved version of your mod here. You can test it out for yourself, but I made it work with all of the item types listed below:

--List of item types, excluding armor (generally non-stackable) and fluid
local itemTypes = {
"ammo", "item", "rail-planner", "gun", "capsule", "module", "tool", "repair-tool", "item-with-entity-data"
}

The actual for loops I used:

for _, itemType in pairs(itemTypes) do
for _, item in pairs(data.raw[itemType]) do
...
3 months ago

thank you

New response