Skip to content

External Console

CWL supports receiving and executing console commands from external tools using named pipes. After game launch, a console pipe server will be opened at \\.\pipe\Elin\Console. Writing console commands to this pipe will execute them in game.

General / 常规

CommandEnglishChinese
cwl.spawnTest spawn a CWL loaded chara测试生成一个已加载CWL角色
cwl.enable_debugEnable debug mode for Elin为Elin启用调试模式
cwl.remove_allRemove every chara with ID from global chara list根据ID从全局角色列表中移除所有对应角色
cwl.add_figuresAdd figure and card of chara with ID添加指定ID角色的立绘和卡片
cwl.identifyIdentify everything鉴定所有
cwl.spawn_altarSpawn an altar of a custom religion生成指定自定义信仰的祭坛
cwl.spawn_zoneSpawn a zone, at player pos or with specific X, Y生成区域
cwl.remove_zoneRemove a zome, at player pos or with specific X, Y移除区域

Data Loader / 数据加载器

CommandEnglishChinese
cwl.data.load_sourcesReload all LangMod/**/ source sheets重新加载所有LangMod/**/源数据表
cwl.data.load_dialogReload all Dialog/dialog.xlsx重新加载所有Dialog/dialog.xlsx
cwl.data.load_effect_settingReload all Data/EffectSetting.guns.json重新加载所有Data/EffectSetting.guns.json
cwl.data.load_god_talkReload all Data/god_talk.xlsx重新加载所有Data/god_talk.xlsx
cwl.data.load_religion_elementsReload all Data/religion_elements.json重新加载所有Data/religion_elements.json
cwl.data.load_religion_offeringsReload all Data/religion_offerings.json重新加载所有Data/religion_offerings.json
cwl.data.load_soundPreload all sound data from Sound/ folder预加载Sound/文件夹内所有音频数据
cwl.data.clear_effect_cacheClear all cached Effects清除所有缓存的特效
cwl.data.clear_sound_cacheClear all preloaded sound data清除所有预加载的音频数据
cwl.data.clear_source_cacheClear all generated source cache blobs清除所有生成的源表缓存
cwl.data.clear_path_cacheClear all cached package path relocations清除所有缓存的包路径重定位

BGM Playlist / BGM播放列表

CommandEnglishChinese
cwl.bgm.clear_cacheClear internal playlist cache清空内部播放列表缓存
cwl.bgm.reimportRebuild all BGM indexes重建所有BGM索引
cwl.bgm.rebuildRebuild all BGM playlists重建所有BGM播放列表
cwl.bgm.viewEnable BGM panel启用BGM面板
cwl.bgm.hideDisable BGM panel禁用BGM面板
cwl.bgm.nextPlay next BGM in playlist播放播放列表中下一首BGM
cwl.bgm.lastPlay last BGM in playlist播放播放列表中上一首BGM
cwl.bgm.shuffleShuffle BGM playlist随机打乱BGM播放列表
cwl.bgm.add_knownSet BGM from current playlist as known将当前播放列表中的BGM设为已知
cwl.bgm.dumpExport all bundled playlists from Elin导出Elin中所有捆绑的播放列表

Merchant / 商人系统

CommandEnglishChinese
cwl.stock.addAdd a stock file to a chara with ID为指定ID角色添加库存文件
cwl.stock.clearClear stock files from chara with ID清除指定ID角色的库存文件

Drama Expansion / 剧情扩展

CommandEnglishChinese
cwl.dm.build_action_listRebuild all Drama Expansion methods重建所有剧情扩展方法
cwl.dm.dump_action_listExport all Drama Expansion methods导出所有剧情扩展方法

Debug / 调试

CommandEnglishChinese
cwl.stub.viewEnable sampler panel启用采样器面板
cwl.stub.hideDisable sampler panel禁用采样器面板
cwl.stub.clearReset all sampled data重置所有采样数据
cwl.stub.attachAttach a sampler to method为方法附加采样器
cwl.stub.detachDetach specific or all sampler(s)分离指定或全部采样器
cwl.stub.spawnKeep spawning random chara in the map with count在地图中持续生成指定数量的随机角色
cwl.stub.dumpExport sampled data as csv将采样数据导出为csv格式