惑星のMOD制作¶
旧バージョンの資料
原文はゲームバージョン3.1向けです。現在のファイル構造やキーとは異なる可能性があります。
本ページでは天体をゲームへ追加・変更する方法を扱います。補正や住民を含め、星系内での配置方法は星系のMOD制作を参照してください。
概要¶
惑星クラスと個々の恒星クラスはcommon/planet_classesにあります。「恒星」と「星系の恒星クラス」は別物です。ゲームコードでは個々の恒星も惑星と同じオブジェクトとして扱われます。一方、common/star_classesの恒星クラスは星系全体の分類で、照明、銀河マップ上の星系アイコン、星系内の恒星数を決めます。
新しい惑星クラスを作るには、内部名(例: pc_volcanic)を決め、ゲーム内での性質を定義します。植民可能惑星か、恒星か、居住可能な巨大構造物か、といった内容です。内部名と表示名は一致する必要がなく、ローカライズで任意の表示名を付けられます。
惑星用変数¶
| 変数 | 既定値 | 説明 |
|---|---|---|
@planet_standard_scale |
11 | 意味は不明瞭。惑星の表示サイズを決めると思われます。 |
@habitable_planet_max_size |
25 | 惑星の最大タイル数(原文の旧仕様表記)。 |
@habitable_planet_min_size |
12 | 惑星の最小タイル数(原文の旧仕様表記)。 |
@habitable_moon_max_size |
15 | 衛星の最大タイル数(原文の旧仕様表記)。 |
@habitable_moon_min_size |
10 | 衛星の最小タイル数(原文の旧仕様表記)。 |
@habitable_min_distance |
60 | 中心天体からの最小距離(軌道高度)。 |
@habitable_max_distance |
100 | 中心天体からの最大距離(軌道高度)。 |
@habitable_spawn_odds |
0.5 | 相対的な出現確率。 |
惑星ルール¶
以下のルールを惑星クラスへ設定できます。条件を満たさない惑星はランダム出現しませんが、星系MOD制作で迂回できる場合があります。
| ルール | 説明・既定値 |
|---|---|
asteroid |
小惑星か。既定値no。 |
atmosphere_color |
大気色。hsv { 0.0 0.5 1.0 }形式で、各値は0.0~1.0。 |
atmosphere_intensity |
大気の彩度。0.0~1.0。 |
atmosphere_width |
大気の厚さ。0.0~1.0。 |
can_be_moon |
noなら惑星を周回する衛星として使われません。既定値yes。 |
carry_cap_per_free_district |
空き区域スロット1つ当たりの追加環境収容力。例: 4。 |
chance_of_ring |
環が付く確率。0.0~1.0。 |
city_color_lut |
居住可能惑星の都市を背景になじませる透明フィルター。フィルターファイルの場所を指定する必要があります。表示都市を持つ居住可能惑星だけに必要です。 |
climate |
気候。dry、wet、cold、MOD独自気候、または省略。 |
colonizable |
プレイヤー・AIが植民または居住できるか。 |
colonization_tech |
植民に必要なテクノロジー。既定は空です。未研究でも植民可能惑星として表示され、必要テクノロジーを示します。 |
default_planet_selection |
用途不明。既定値no。 |
district_set |
uses_district_setトリガーで互換性を確保するための文字列。 |
enable_tilt |
noなら惑星の傾きを無効化。既定値yes。傾きはdefinesで定義します。 |
entity |
既定で使う惑星エンティティ。独自セット(volcanic_planetなど)を作るか、既存(arctic_planetなど)を使います。 |
entity_face_object |
noなら公転対象の方向へ向ける回転を無効化。既定値yes。 |
entity_scale |
他惑星に対するモデルサイズ。既定値@planet_standard_scale。 |
extra_orbit_size |
0超なら軌道を広げます。通常惑星ではガス惑星だけが0超です。 |
extra_planet_count |
0超なら、この惑星が惑星数として数える値を増やします。通常惑星ではガス惑星だけが0超です。 |
fixed_city_level |
背景へ固定量のインフラを常時適用。例: fixed_city_level = 6。 |
fixed_entity_scale |
yesなら実際の惑星規模を問わず表示サイズを固定。既定値no。 |
habitat |
軌道上居住地か。既定値no。 |
has_colonization_influence_cost |
yesなら植民に影響力が必要。2.0以降は廃止機能と思われます。 |
icon |
惑星アイコン。後述の一覧を参照。 |
ideal |
yesなら全種族にとって常に居住性100%。既定値no。 |
initial |
カスタム種族の開始惑星として使用できるか。既定値no。 |
is_artificial_planet |
yesなら最大区域数など、非人工惑星用の補正を追加しません。既定値no。 |
max_distance_from_sun |
ランダム出現できる最大軌道距離。恒星ではなく星系中心からの距離と思われ、連星・三重星系での動作は不明です。 |
min_distance_from_sun |
ランダム出現できる最小軌道距離。同上。 |
modifier |
資源産出やPOP成長速度など、惑星へ恒久補正を適用。modifier = { <効果> }。 |
moon_size |
衛星として出る場合の規模範囲。{ min = <値> max = <値> }。 |
orbit_lines |
noなら軌道線を非表示。既定値yes。 |
picture |
独自背景の代わりに既存惑星背景を使います。例: picture = pc_gaia。 |
place_entity_on_planet_plane |
noなら星系内の惑星平面より上へ配置。既定値yes。 |
planet_size |
衛星でない場合の規模範囲。{ min = <値> max = <値> }。 |
preview_entity |
プレビュー用エンティティ。原文に説明なし。 |
production_spawn_chance |
用途不明。0.0~1.0。 |
ringworld |
リングワールドか。既定値no。 |
show_city |
noなら背景に都市を表示しません。既定値yes。 |
space_monster_target |
yesなら宇宙生物AIの国家がこの惑星種別へ移動します。 |
spawn_odds |
全条件を満たした場合のランダム出現しやすさ。 |
star |
恒星か。既定値no。 |
star_gfx |
恒星を明るく発光させるか。恒星なら既定値yes。 |
starting_planet |
プレイヤー・AIの開始惑星にできるか。 |
survey_time_factor |
調査時間倍率。既定値1。 |
tile_set |
惑星タイルの外観。惑星クラス名と異なるセットを使う場合だけ必要です。 |
uses_alternative_skies_for_moons |
yesなら衛星として出た場合、背景へ惑星を表示し、その惑星に環があれば環も表示します。 |
uses_alternative_skies_if_has_orbital_ring |
yesなら軌道環状施設を持つ場合に背景へ表示。既定値no。 |
惑星クラスの例¶
砂漠型惑星¶
pc_desert = {
entity = "desert_planet"
icon = GFX_planet_type_desert
climate = "dry"
initial = yes
entity_scale = @planet_standard_scale
atmosphere_color = hsv { 0.50 0.2 0.8 }
atmosphere_intensity = 1.0
atmosphere_width = 0.5
min_distance_from_sun = @habitable_min_distance
max_distance_from_sun = @habitable_max_distance
spawn_odds = @habitable_spawn_odds
city_color_lut = "gfx/portraits/misc/colorcorrection_desert.dds"
extra_orbit_size = 0
extra_planet_count = 0
chance_of_ring = 0.2
planet_size = { min = @habitable_planet_min_size max = @habitable_planet_max_size }
moon_size = { min = @habitable_moon_min_size max = @habitable_moon_max_size }
production_spawn_chance = 0.4
colonizable = yes
district_set = standard
uses_alternative_skies_for_moons = no
carry_cap_per_free_district = @carry_cap_normal
}
有毒惑星¶
pc_toxic = {
entity = "toxic_planet"
entity_scale = @planet_standard_scale
icon = GFX_planet_type_toxic
atmosphere_color = hsv { 0.19 0.45 0.9 }
atmosphere_intensity = 0.1
atmosphere_width = 1.2
min_distance_from_sun = 60
max_distance_from_sun = 110
spawn_odds = 10
extra_orbit_size = 0
extra_planet_count = 0
chance_of_ring = 0.2
planet_size = { min = 12 max = 25 }
moon_size = { min = 6 max = 10 }
colonizable = no
show_city = no
}
居住可能リングワールド区画¶
pc_ringworld_habitable = {
ringworld = yes
entity = "ringworld_habitable_entity"
preview_entity = "ringworld_01_damaged_full_entity"
picture = pc_ringworld
icon = GFX_planet_type_ringworld
entity_scale = 1.0
enable_tilt = no
fixed_entity_scale = yes
atmosphere_color = hsv { 0.0 0.0 1.0 }
atmosphere_intensity = 1.0
atmosphere_width = 0.5
show_city = yes
city_color_lut = "gfx/portraits/misc/colorcorrection_continental.dds"
extra_orbit_size = 0
extra_planet_count = 0
chance_of_ring = 0.0
planet_size = 10
moon_size = 1
colonizable = yes
district_set = ring_world
ideal = yes
starting_planet = no
orbit_lines = no
has_colonization_influence_cost = no # 自国領内にある場合に適用
is_artificial_planet = yes
modifier = { planet_max_buildings_add = 12 }
carry_cap_per_free_district = @carry_cap_normal
}
F型恒星¶
pc_f_star = {
entity = "f_star_class_star_entity"
entity_scale = 20.0
picture = "pc_f_star"
icon = GFX_planet_type_f_g_star
atmosphere_color = hsv { 0.6 0.3 0.6 }
atmosphere_intensity = 1.0
atmosphere_width = 0.5
star = yes
min_distance_from_sun = 0
max_distance_from_sun = 0
spawn_odds = 0
extra_orbit_size = 0
extra_planet_count = 0
chance_of_ring = 0
planet_size = { min = 20 max = 35 }
colonizable = no
}
惑星アイコン¶
惑星アイコンはgfx/interface/icons/planet_type_icons.ddsにあり、スプライトはinterface/planet.gfxで定義されます。
| アイコン | GFXキー | アイコン | GFXキー |
|---|---|---|---|
GFX_planet_type_desert |
GFX_planet_type_toxic |
||
GFX_planet_type_arid |
GFX_planet_type_molten |
||
GFX_planet_type_tundra |
GFX_planet_type_frozen |
||
GFX_planet_type_continental |
GFX_planet_type_gas_giant |
||
GFX_planet_type_tropical |
GFX_planet_type_machine |
||
GFX_planet_type_ocean |
GFX_planet_type_hive |
||
GFX_planet_type_arctic |
GFX_planet_type_nuked |
||
GFX_planet_type_gaia |
GFX_planet_type_asteroid |
||
GFX_planet_type_barren_cold |
GFX_planet_type_alpine |
||
GFX_planet_type_barren |
GFX_planet_type_savannah |
||
GFX_planet_type_ringworld |
GFX_planet_type_habitat |
||
GFX_planet_type_shrouded |
GFX_planet_type_city |
||
GFX_planet_type_m_star |
GFX_planet_type_f_g_star |
||
GFX_planet_type_k_star |
GFX_planet_type_a_b_star |
||
GFX_planet_type_pulsar |
GFX_planet_type_neutron_star |
||
GFX_planet_type_black_hole |
テラフォーミング¶
テラフォーミングは惑星とは別にcommon/terraformで定義します。2つの惑星種別間のリンクを個別に定義するため、新惑星種別から全既存種別へ、全既存種別から新種別へ変換できるようにするには、既存種別ごとに2リンクが必要です。
terraform_link = {
from = "pc_continental"
to = "pc_tropical"
energy = 2000
duration = 1800
condition = { has_technology = "tech_terrestrial_sculpting" }
ai_weight = { weight = 0 }
}
terraform_linkに開始・終了惑星クラス、エネルギー費用、所要日数を指定します。conditionには実行要件を記述し、テクノロジーやアセンションパークで変換を制限できます。ai_weightはAIが実行するかを決めます。
potentialを使うと、要件を満たす場合だけ選択肢を表示できます。
terraform_link = {
from = "pc_barren_cold"
to = "pc_arctic"
energy = 5000
duration = 3600
potential = {
from = { has_modifier = terraforming_candidate }
}
condition = { has_technology = "tech_climate_restoration" }
effect = {
from = { remove_modifier = terraforming_candidate }
}
ai_weight = { weight = 5 }
}
この例はpc_barren_cold惑星がterraforming_candidate補正を持つ場合だけメニューへ現れます。effectブロックは完了直後に実行する処理で、ここではテラフォーミング候補補正を取り除きます。
出典: Stellaris Wiki — Planet modding(原文更新日: 2022年9月15日、版ID 69310)
翻訳日: 2026年9月18日 / 対応バージョン: 3.1
本ページは原文Wiki(CC BY-SA 3.0)の内容を翻訳した非公式ファン翻訳です。