Rise of Industry

Rise of Industry

Not enough ratings
New Products Toolkit (re-upload)
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
6.790 KB
Jul 2, 2020 @ 11:52am
1 Change Note ( view )

Subscribe to download
New Products Toolkit (re-upload)

Description
Note: This is a re-upload! Mod is owned by GonumeN, I just added the missing prefixes to the code so it could work like it worked before. GonumeN gave me his permission to re-upload the mod as he's not playing RoI anymore.


New Products Toolkit

Version: 1.0.4

General Information

This is a toolkit that allows you to add new products to the already existing buildings without having to code.

If you can't or don't want to create new buildings just to add your recipes, but also can't be bothered to modify already existing buildings via code, then this toolkit is perfect for you.

Note: Unless your recipe uses only base-game products you still have to create .json files for the product and the unlock (apart from the recipe). You just don't have to use any compiled code to modify in-game buildings to use this recipe.

How to use it

To add a new product to the game, and its recipe to a building you need to create .json files for the product, its unlock and the recipe (check out this[riseofindustry.gamepedia.com] or this[riseofindustry.gamepedia.com] guide to learn how to do this) While creating a recipe you have to prefix its name with two capital letters followed by an underscore ("_"). This prefix changes depending on the building you want the recipe to be added to. You can also add multiple prefixes to add the recipe to more than one building but you need to separate them with an underscore (list of all prefixes is at the bottom of this description).

Note: While changing the name, remember to change the "name" field, NOT the "displayName"! You also have to provide the same name with prefixes while making your unlock file.

Modding

Anyone who uses your mod will also have to download this toolkit or else the recipes will not be added to the buildings in their game. The toolkit's script is called after all mods were loaded so the order doesn't matter i.e. you don't have to change tour "dependencies" field in desc.json. However you will have to add this mod to the required items list for your mod in the workshop. This will notify other players that they need to subscribe to this mod as well.

Prefixes

Examples:

"name": "GS_YourRecipeName"
This prefix would add the recipe to Glassworks & Smelter

"name": "GS_TF_CP_YourRecipeName"
These prefixes would add the recipe to Glassworks & Smelters, Textile Factory and Carpentery.
The order of those prefixes is not important.

Farms
Crop Farm - CF
Livestock Farm - LF
Orchard - OR
Plantaion - PL

Factories
Brewery & Distillery - BD
Carpentery - CP
Papermill - PM
Textile Factory - TF
Glassworks & Smelter - GS
Home Goods Factory - HG
Petrochemical Plant - PP
Automotive Factory - AF
Food Factory - FF
Drinks Factory - DF
Preservation Factory - PF
Computer Factory - CR
Dinner Factory - DR

Gatherers*
Lumberyard - LY
Iron Mine - IM
Coal Mine - CM
Copper Mine - RM
Gas Pump - GP
Oil Drill - OD
Water Well - WW
Sand Collector - SC
Water Siphon - WS
Offshore Oil Drill - OO
Fisherman's Pier - FP

*Adding recipes to gatherers won't have much effect as they don't use the production module in their building panels.

2 Comments
demonix819 Nov 17, 2024 @ 6:24am 
bastien_guerard je suis d'accord avec toi a tu trouver une solution ???
bastien_guerard Aug 30, 2024 @ 4:18am 
i have a question , i dowload it to use it with the drug mods , but i cant seem to work