- 対応バージョン:不明
- サブスクライバー数:564
- 最終更新:2026-07-07 08:30:54 UTC
- 制作者:76561198204878992
MOD説明(日本語)
MOD概要
「Sentient Sands: Command Mode」は、Kenshi向けMOD「Sentient Sands」の改良版です。既存のAI対話システムに、NPCの行動を直接指示するコマンド機能と、永続的なNPCプロファイルをゲーム内から編集するツールを追加します。ベースとなるSentient Sandsの核となる体験は維持され、NPCは性格、派閥、装備、世界の状態、会話履歴に基づき、LLM(大規模言語モデル)を介して動的に応答します。CJK入力メソッド向けのIMEサポートも追加されています。また、コードの再構築により入力トークン使用量が最大50%削減され、トークンコストも最大35%削減されます。本MODを使用するには、RE_Kenshi(.exe実行可能ファイル)と、OpenAI互換のLLMバックエンド(OpenRouter、Ollama、LM Studioなど)が必要です。
このMODで何が変わるか
– **直接コマンドモードの追加 (`!!` プレフィックス)**: プレイヤーはNPCに対して直接命令を強制的に実行させることができます。これは、フォロー、パーティ参加、離脱、パトロール、治療、取引など、対話システムがサポートするアクションタグを通じて可能な場合に適用されます。NPCはプレイヤーの指示や議論を、可能な限り受け入れ、実行するようになります。
– **NPCプロファイル上書きモードの追加 (`##` プレフィックス)**: ゲーム内からNPCの永続的なプロファイル(性格、バックストーリー、話し方の癖、派閥、仕事、関係スコアなど)を直接修正または書き換えることができます。変更はNPCのJSONデータに保存され、その後の会話に影響を与えます。編集可能なフィールドはRace、Sex、Faction、OriginFaction、Job、Personality、Backstory、SpeechQuirks、Relationです。
– **トークン使用量とコストの削減**: オリジナルのSentient Sandsと比較して、入力トークン量が最大50%(例:7000~9000トークンから3500~5000トークン)削減され、これによりトークンコストが最大35%削減されます。出力トークン量は変更ありません(500~700トークン)。
– **CJK入力メソッドのIMEサポート**: 日本語、中国語、韓国語などの入力方法に対応し、ゲーム内での会話入力がより快適になります。
– **QoLツールの追加**:
– `run_server_override_tool.bat`: 既存のSentient Sandsインストールに対して、このMODの機能(変更)を適用または元に戻すためのWeb GUIを開きます。
– `run_model_config_tool.bat`: モデルやプロバイダーのJSONファイルを読み書きし、APIの追加、モデル名の変更、接続テストを可能にするWeb GUIを開きます。これにより、ゲームを起動せずに設定が可能です。
想定されるメリット(推定)
– AI NPCとのより深いロールプレイとインタラクションが可能になると考えられます。
– プレイヤーがNPCの行動をより直接的に制御できるようになり、ゲームプレイの自由度が高まると考えられます。
– LLMが生成するNPCの性格やバックストーリーにプレイヤーの意図を反映させたり、LLMの誤りを修正したりできるため、より一貫性のあるキャラクターを体験できる可能性があります。
– NPCへの指示や修正がゲーム内で完結するため、没入感を損なわずにキャラクターを調整できると考えられます。
– CJK入力メソッドを使用するプレイヤーにとって、会話入力の利便性が向上すると考えられます。
– LLM使用にかかるコストを削減できるため、長期間の使用において経済的なメリットがある可能性があります。
– 既存のSentient Sandsユーザーも、本MODを導入せずとも、付属ツールで機能の一部を既存環境に適用できる柔軟性があると考えられます。
想定されるデメリット・注意点(推定)
– 本MODは、RE_KenshiとOpenAI互換のLLMバックエンドの導入・設定が必須であり、これには技術的な知識が必要になる可能性があります。
– `##` によるNPCプロファイル編集は、AIを介して行われるため、常に成功するとは限らず、AIが誤ったフォーマットを生成して失敗する可能性があると明記されています。
– `!!` による強制コマンドも、ゲーム内のアクションタグシステムでサポートされていないアクションや、必要なアイテムが不足している場合は実行されない可能性があるため、過度な期待は避けるべきです。
– データ移行やバージョン切り替えの際には、既存のSentient Sandsのサーバーデータをバックアップすることが推奨されており、手順を誤るとデータが失われる可能性があります。
– Kenshiのセーブファイルを直接変更するものではないとされていますが、NPCプロファイルの永続的な変更が行われるため、一度変更したNPCを完全に元の状態に戻すのは困難になる可能性があります。
– 既存のSentient Sandsと本MODを同時に有効にすることはできないため、切り替え時には注意が必要です。
向いている人(推定)
– Kenshiにおいて、AI NPCとの対話やロールプレイを極限まで深めたいプレイヤー。
– NPCの性格、バックストーリー、行動をプレイヤーの意図通りにカスタマイズし、特定のキャラクターを作り上げたいプレイヤー。
– LLMベースのシステムに興味があり、その可能性を追求したいと考えるプレイヤー。
– AIの「幻覚」や設定ミスをゲーム内で修正したい、または自分だけの物語をNPCに反映させたいプレイヤー。
– CJK入力メソッドを使用してKenshiをプレイしているプレイヤー。
– LLMの利用コストをできるだけ抑えたいプレイヤー。
– RE_KenshiやLLMバックエンドのセットアップといった技術的な作業に抵抗がないプレイヤー。
向いていない人(推定)
– MODの導入や複雑な設定(特にLLMバックエンド)に手間をかけたくないプレイヤー。
– KenshiのNPCの自律的な行動や、予測不能な要素を楽しみたいプレイヤー。
– シンプルなゲームプレイを好み、ゲームシステムに深く介入することに関心がないプレイヤー。
– 技術的な知識が不足しており、発生する可能性のあるトラブルシューティングに自信がないプレイヤー。
総合評価(暫定)
– おすすめ度:★★★★☆
– 根拠:サブスクライバー数は不明ですが、本MODはベースとなるSentient Sandsの革新的なAI対話システムをさらに進化させ、プレイヤーがNPCの行動と永続的なプロファイルを直接制御・編集できる強力な機能を追加しています。これによりKenshiのロールプレイの深さと自由度が飛躍的に向上すると考えられます。また、LLMの入力トークン削減によるコスト効率の改善や、CJK IME対応といったQoLの向上も評価できます。ただし、RE_KenshiやLLMバックエンドのセットアップが必須であり、一般的なKenshiプレイヤーには技術的なハードルが高いため、満点ではなく★4つと評価します。特定の層のプレイヤーにとっては非常に価値のあるMODであると言えます。
※この説明文はAIによる自動翻訳です。正確な情報は下記の原文またはSteam Workshop公式ページをご確認ください。
原文を見る(英語)
It keeps the core Sentient Sands experience: NPCs respond dynamically through an attached LLM, using their personality, faction, equipment, world state, and conversation history.
This mod also added IME support for CJK input methods, credit: https://www.nexusmods.com/kenshi/mods/1930
Up to -50% Token Usage
By code restructuring and using a dynamic prompt approach towards the original SentientSand’s code, the input token is reduced by up to 50%.
[table][tr][td][/td][td]Original SS[/td][td]SS Command[/td][/tr][tr][td]Input Token Count[/td][td]7000~9000 Token[/td][td]3500~5000 Token[/td][/tr][tr][td]Output Token Count[/td][td]500~700 Token[/td][td]500~700 Token[/td][/tr][/table]
When translated into cost reduction, this won’t be very significant, as input token is generally much cheaper than output.
For example, chatgpt 4o-mini has an input/output price of $0.75/$4.50 per 1M token.
In the best token saving and low cost scenario(7000/500 token for original, 3500/500 token for SS command), the price comaprison would be:
[table][tr][td][/td][td]Original SS(7000/500)[/td][td]SS Command(3500/500)[/td][/tr][tr][td]Cost of 1K messages[/td][td]$7.50[/td][td]$4.88[/td][/tr][/table]
So in best case scenario, the token cost reduction is up to 35%.
Command Prefixes
Command Mode adds two in-game command prefixes:
!! Forced Command Mode
Forces the current NPC to accept and execute the player’s instruction when it is possible through both dialog supported action tags, such as following, joining the party, leaving, patrolling, healing, trading, or other available actions.
Your speech/prompt will also be much more acceptable to NPCs, any argument you made will be accepted and executed when possible.
## NPC Profile Override Mode
Lets the player directly correct or rewrite the current NPC’s persistent profile from inside the game. This can update personality, backstory, speech quirks, faction, job, relation score, and other supported profile fields. The change is saved into the NPC JSON and affects future conversations.
*This may fail once or twice given the NPC profile injection is done via AI, AI may hallucinate and inject wrong format, resulting a fail.
Examples
This mod is intended for players who want more control over AI NPC behavior, want to correct LLM mistakes, or want to shape specific NPCs into custom persistent characters.
QoL Tools for quick integration
will open a web gui showing the menu for quick server script overwrite&revert;, the page will detect existing SentientSands mod directory(as long as you have both mods installed), and overwrite the script to apply all features existed in this mod.
Existing SentientSands subscribers can use this tool, apply changes and boot up SentientSands as they did.
will open a web gui showing the menu for config input, it will read the models/providers json files(or create one if they don’t exist), and allow players to add api, rename models, and test connection without booting up the mod first.
This tool is intended to be used in CommandMode, migrating the tools folder and bat script to SentientSands mod directory might work but this is never tested, proceed with caution.
Requirements
RE_Kenshi(.exe executable installation):
https://github.com/BFrizzleFoShizzle/RE_Kenshi/releases
An OpenAI-compatible LLM backend, such as OpenRouter, Ollama, LM Studio, or similar
[hr][/hr]
Q&A;
Q: I already have SentientSands installed and I don’t want to switch at all.
A: Subscribe to the mod, then open run_server_override_tool.bat, it will detect existing SentientSands and you may choose to apply the changes this mod has to SentientSands, or revert this mod’s changes.
You don’t have to actually run the mod in-game if you choose this approach.
Q: What fields can ## edit?
A: ## can edit supported persistent NPC profile fields, including:
Race
Sex
Faction
OriginFaction
Job
Personality
Backstory
SpeechQuirks
Relation
It does not edit NPC ID, file name, conversation history, DLL code, global templates, or the Kenshi save file itself.
Do remember that due to restraint of LLMs, the override won’t be always successful, as their replies does not always strictly follow a true JSON format.
Q: What if !! does not execute the action I wanted?
A: !! can only force actions that are supported by the current action tag system. If the game side has no matching action, the target does not exist, the required item is missing, the mentioned action may not be executed correctly.
If you want to change an NPC’s long-term personality or backstory, use ## instead of !!.
Q: How do I migrate my Sentient Sands stored data?
A: Close the game, then copy the stored data from the original Sentient Sands folder into this mod’s matching folder.
The most important folder is:
This folder stores campaign data, including NPC JSON profiles, conversation history, world events, player character description, player faction description, and registry data.
Recommended files and folders to copy:
The Steam Workshop version of Sentient Sands is usually located at:
Copy the data into this mod’s folder, for example:
Important: do not overwrite this mod’s file:
If you overwrite it with the original file, the Command Mode features will be removed.
Q: Will this mod damage my save?
A: This mod mainly reads and writes its own server data, such as NPC profiles, conversation history, world events, and LLM configuration. It does not directly rewrite Kenshi save files.
However, before migrating data or switching between versions, backing up the original Sentient Sands server folder is recommended.
Q: Can I switch back to the original Sentient Sands?
A: Yes, but do not enable both versions at the same time. Before switching, close the game and back up or copy your server\campaigns\ folder and server\config\ files.
このMODはSteam Workshopで公開されています。ダウンロード・詳細は公式ページをご確認ください。