Dynamic Resource Control (Old: Rich Resources)

by kokejii

English A lightweight mod that dynamically multiplies all resource richness—including existing chunks and modded ores—featuring distance scaling, depletion recovery, and runtime controls for infinite abundance or scarcity. Japanese すべての資源(MOD・既存エリア含む)の埋蔵量を動的に乗算し、距離ボーナスや枯渇資源の復活、希少化までをゲーム中に再起動なしで自在に調整できる軽量MODです。

Tweaks
16 days ago
2.0
994
Mining Cheats
Owner:
kokejii
Source:
https://github.com/3tuk1/RichResources
Homepage:
N/A
License:
MIT
Created:
6 months ago
Latest Version:
2.0.4 (16 days ago)
Factorio version:
2.0
Downloaded by:
994 users

Dynamic Resource Control (Old: Rich Resources)

Tired of endlessly searching for new resource patches? Rich Resources is a quality-of-life mod that allows you to multiply the richness of all ore, oil, and other resource patches on the map.

It is lightweight, highly compatible with other mods, and settings can be changed mid-game without restarting. Fully optimized for Factorio 2.0 and Multiplayer!

Key Features

  • Universal Multiplier: Multiplies the richness of all resource patches (ores, oil, modded resources).
  • Multiplayer & Desync Safe: Uses deterministic random number generation based on chunk coordinates, ensuring 100% safety in multiplayer servers without causing desyncs.
  • Randomness Factor: Add variance (RNG) to your multiplier! Instead of a flat 2x, you can make patches yield between 1.8x and 2.2x for a more natural feel.
  • Performance Optimized: Features dynamic task scaling and customizable "Tasks per tick" limits. It can process tens of thousands of chunks in the background in seconds without dropping UPS.
  • Distance Scaling: Optional bonus that increases resource richness further away from the starting area.
  • Retroactive Application: Automatically works on existing resources on your map. It processes chunks in the background to preserve performance.
  • Depletion Recovery: Can revive depleted resources (e.g., oil wells at 0% yield) by setting a "Minimum Base Amount".
  • Scarcity Option: Supports values as low as 0.001x if you want to reduce resources for a challenge.
  • Maintenance & Reset: Includes tools to apply additional multipliers to already processed resources or reset them entirely.
  • High Compatibility: Works with Krastorio 2, Space Exploration, Bob's Mods, etc.

How to Use

  1. Load your game.
  2. Go to Settings -> Mod Settings -> Map.
  3. Adjust the settings according to your needs (see below).
  4. The mod will automatically process resources in the background.

Settings Guide

1. Resource Richness Multiplier & Randomness

  • Richness Multiplier: The main multiplier value (Range: 0.001 to 1,000,000. Default: 2.0).
  • Randomness Factor: Adds a percentage variance to the multiplier (e.g., Multiplier 2.0 with 0.2 randomness = 1.8x ~ 2.2x).

2. Minimum Base Amounts (Infinite & Finite)

  • Infinite Resource Base: Used for calculating richness for depleted infinite resources (like Oil). Default: 30,000. If an oil well is at 0%, the mod uses this value to revive it.
  • Finite Resource Base: Minimum base amount for normal ore patches (Default: 1). Ensures even the smallest scraps of ore are multiplied correctly.

3. Distance Bonus Settings

  • Enable Distance Bonus: If enabled, adds an extra multiplier based on distance from the start (0,0).
  • Distance Interval & Rate: For example, an interval of 1000 and a rate of 0.5 gives +50% richness every 1000 tiles.

4. Performance & Advanced

  • Tasks per tick: Controls the background processing speed (Default: 50). Adjust this if you experience stuttering on low-end PCs, or increase it for faster processing on high-end PCs.
  • Maintenance Multiplier: Apply an additional multiplier to resources that have already been processed. Toggle the "Apply Maintenance" setting to start.
  • Reset Processed List: Toggling this resets the internal tracking tags (Generation system), allowing the main multiplier to be applied from scratch.

Dynamic Resource Control (Old: Rich Resources) (JP:日本語説明)

新たな資源パッチを探し回るのに疲れましたか? Rich Resources は、マップ上のすべての鉱石や原油などの資源パッチの「豊富さ(Richness)」を自在に調整できるMODです。

ゲームプレイ中の設定変更、既存マップへの適用、枯渇した資源の復活などが可能です。Factorio 2.0 および マルチプレイに完全対応しています!

■ 主な特徴

  • 汎用的な倍率設定: すべての資源パッチ(MOD追加資源含む)の埋蔵量を乗算します。
  • マルチプレイ完全対応(同期ズレ防止): チャンク座標に基づく決定論的な乱数生成を使用しており、マルチプレイ環境でも同期ズレ(Desync)を起こさず安全に動作します。
  • ランダム変動(ゆらぎ)機能: 一律の倍率ではなく、設定した割合でランダムなバラツキを持たせることができ、より自然な資源生成を再現できます。
  • パフォーマンスの極限最適化: 1ティックあたりの処理数の制限と、動的スケーリング機能を搭載。巨大な工場の数万チャンクであっても、ゲームの動作(UPS)を落とさずにバックグラウンドで数十秒で処理を完了させます。
  • 距離ボーナス: スタート地点から遠く離れるほど、資源をさらに豊富にするオプション機能があります。
  • 既存マップ・追加適用対応: 既存の鉱脈への適用はもちろん、プレイ途中でさらに倍率を重ね掛けする「メンテナンス機能」も備えています。
  • 枯渇資源の復活: 採掘し尽くして0%になった油田なども、「最小ベース量」設定により実用的な量まで復活させることができます。
  • 資源減少も可能: 倍率は 0.001倍 から設定可能なため、資源を極端に減らしたハードコアなプレイも可能です。
  • 高い互換性: Krastorio 2、Space Exploration、Bob's Mods などと互換性があります。

■ 使い方

  1. ゲームをロードします。
  2. 「設定」→「MOD設定」→「マップ」 タブを開きます。
  3. 各項目を設定してください。
  4. 設定の変更を確定すると、自動的にバックグラウンドで処理が開始されます。

■ 設定項目の詳細

1. 資源の豊富さの倍率 & ランダム変動率

  • 倍率: メインとなる倍率設定です(範囲: 0.001 ~ 1,000,000 / デフォルト: 2.0)。資源を極端に減らしたハードコアプレイから、実質無限の資源量まで対応します。
  • ランダム変動率: 倍率にゆらぎを持たせます(例:倍率2.0、変動率0.2の場合、1.8倍~2.2倍の間でランダムに変動します)。

2. 最小ベース量(無限資源 / 有限資源)

  • 無限資源(原油など): 枯渇して「収量: 0%」などの表記になっている油田でも、ここで設定したベース値(デフォルト: 30000)を基準に倍率がかかるため、再び採掘可能になります。
  • 有限資源(鉄鉱石など): 通常の鉱石などが極端に少ない場合の保護用ベース値です(デフォルト: 1)。

3. 距離ボーナス設定

  • 有効化: ONにすると、スタート地点(0,0)から離れるほど倍率が加算されます。
  • 間隔とボーナス率: (例)間隔1000、ボーナス率0.5に設定すると、1000タイル離れるごとに最終倍率が +50% ずつ増加します。

4. パフォーマンス・高度な設定

  • 1ティックあたりの最大処理数: バックグラウンド処理の速度を調整します(デフォルト: 50)。低スペックPCでカクつく場合は下げ、高性能PCで素早く終わらせたい場合は上げてください。
  • 追加変更倍率(メンテナンス): 既に倍率変更済みの資源に対して、さらに追加で倍率を掛けたい場合に使用します。「追加倍率を適用」のチェックを切り替えることで即座に実行されます。
  • 処理済みリストをリセット: この設定を切り替える(オンオフ)と、MODが記録している管理タグ(世代情報)を消去し、全ての資源を「未処理」状態に戻して最初から計算をやり直すことができます。