Data.wak

出自Noita Wiki
跳至導覽 跳至搜尋
模組製作導航
基礎
入門基礎Lua腳本Data.wak實用工具
製作指南
音頻敵人生物群系天賦法術精靈表材料圖像放射器特殊行為CMake使用
組件/實體
組件文檔枚舉特殊標籤所有標籤列表
Lua編程
Lua API實用腳本
其他信息
法術和天賦的ID聲音事件魔數(Magic Numbers)

AKA the "data files", the base game assets. The directory structure that you get when you extract data.wak, which Noita uses internally. When a mod wants to directly replace base assets, they will have to follow these paths exactly.

Whenever someone is talking about "the data files" or starts a filepath with data/, this is what they mean.

For extracting the data, see 提取數據文件

內容介紹

Below you can find all the base folders listed, with some notes on the most important bits.

data/
 ├── biome/
 │   └── All biome definition XMLs, defining the biome metadata (name, scripts, paths, ...)
 │       and generation parameters (topology, vegetation, ...)
 ├── biome_impl/
 │   └── Biome image files that are not Wang tiles; pixel scenes, backgrounds
 ├── buildings_gfx/
 ├── collapse_masks/
 ├── debug/
 ├── enemies_gfx/
 │   └── Enemies, friendlies, the player; all "unit" graphics go here.
 ├── entities/
 │   └── The main beef, most (if not all) of the entity definitions can be found here.
 ├── generated/
 ├── global/
 ├── items_gfx/
 ├── materials_gfx/
 │   └── Image files for materials that have textures in addition to their base color.
 ├── particles/
 ├── procedural_gfx/
 ├── projectiles_gfx/
 ├── props_breakable_gfx/
 ├── props_gfx/
 ├── ragdolls/
 │   └── Ragdoll directories for each enemy/friendly that requires it.
 ├── schemas/
 │   └── XML Schema definitions, when the documentations are lacking, this should be exhaustive. Although probably not so useful.
 ├── scripts/
 │   └── Most of the Lua code, sorted by different types in subdirectories
 │   └── E.g. data/scripts/gun/gun_actions.lua contains some Spell info
 ├── shaders/
 │   └── OpenGL shader files, totally editable. But prefer the new Lua API instead
 ├── temp/
 ├── translations/
 ├── ui_gfx/
 ├── vegetation/
 ├── wang_tiles/
 │   └── Contains all biome Wang tiles
 └── weather_gfx/

尋找所需信息用於更新Wiki

  • All:
    • UI strings: in common/Noita/data/translations/ - the common.csv and common_dev.csv files
    • Images: Check Special:NewFiles (or Category:Images) for what the other lovely people have added!
    • Note: HP and damage values in the data files are all 1/25th the in-game numbers. For example, hp="3.5" * 25 = 87.5hp
    • Any time-based values in the data files (recharge time, cast delay, spell lifetime, etc.) are in frames. Noita typically runs at 60fps, so the conversion rate it 1/60. A spell with a lifetime of 200 frames will last for: 200 / 60 = 3.33s
    • XML entity files can inherit from other entity files, which is indicated with <Base>..</Base> XML tags with a reference to the base file. In these cases, the file takes all of the components and properties from the other file, and then is able to overwrite portions as needed by specifying the changed parts normally in components and properties contained inside the <Base>...</Base> section.
  • 法術:
    • data/scripts/gun/gun_actions.lua
    • data/entities/projectiles/deck/ (various files)
    • Cast delay: c.fire_rate_wait in gun_actions.lua controls the cast delay. Both projectiles and modifiers set or add to the cast delay in the spell-cast functions attached to each spell entry in this list.
  • 敵人:
    • data/entities/animals/ (various files)
    • See Enemy Immunities for how to determine what protections or immunities a given enemy has.
      • Search for: "protection", "air", "physics", "ignition", and the tags at top
    • Most important enemy information is contained in the Entity tags and the DamageModelComponent.
  • 天賦:
    • data/scripts/perks/perk_list.lua
    • data/scripts/perks/ (various files)
    • data/scripts/essences/
    • data/entities/items/pickup/
    • data/entities/misc/essences/
  • 法杖:
    • data/entities/items/wands/ (various files)

生物群系的代碼名和遊戲內名稱/Wiki名稱

代碼名 遊戲內名稱/Wiki名稱
coalmine 礦場
coalmine_alt 坍塌礦場
boss_arena 實驗室
boss_victoryroom 偉大之作(結局)
crypt 藝之神殿
desert 沙漠
dragoncave 龍窟
excavationsite 煤礦礦坑
fungicave 真菌洞穴
gold 金礦
lake 湖泊
lava 火山湖
lavacave 火山洞穴
magic_gate 庇護所
pyramid 金字塔
rainforest 地下叢林
sandcave 砂之洞穴
secret_entrance 神秘之門
shop_room 秘密商店
snowcastle 席西基地
snowcave 積雪深淵
town_under 扭曲通道
vault 避難所
wandcave 魔法神殿
water 水(生物群系)
winter 落雪荒原
holymountain 神聖之山
tower 魔塔
vault_frozen 凍結避難所
clouds 雲景
liquidcave 古代實驗室
secret_lab 廢棄鍊金實驗室
weathercrystal 晶體密室
greed_room 財富殿堂
orbroom 魔球房間
wizardcave 巫師巢穴
rainforest_dark 蜘蛛巢穴
mestari_secret 王座室
ghost_secret 遺忘洞穴
winter_caves 冰封峽谷
robobase 發電站
fun / fungiforest 繁茂洞穴
underwater 沉沒洞穴
the_end 偉大之作(地獄)