Files
2nd/10_Wiki/Topic_General/From_Other/NDF (Neutral Data Format).md
T
Antigravity Agent 9148c358d0 docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
2026-07-05 00:33:48 +09:00

6.2 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-ndf-neutral-data-format NDF (Neutral Data Format) 10_Wiki/Topics verified self
Neutral Data Format
Eugen NDF
WARNO NDF
none A 0.9 applied
modding
data-format
eugen-systems
warno
configuration
2026-05-10 pending
language framework
NDF Eugen-Iriszoom

NDF (Neutral Data Format)

매 한 줄

"매 declarative game-data DSL — Eugen Systems Iriszoom engine 의 data layer". 매 Wargame/Steel Division/WARNO 시리즈 의 unit/weapon/visual 의 모든 stat 의 NDF 파일 정의. 매 modding 의 entry point — 매 binary patch 가 X, plain text 의 git-diffable.

매 핵심

매 Syntax 의 핵심

  • Object literal: Identifier is TYPE(...) — 매 모든 entity 의 declaration.
  • Module 의 nesting: 매 outer module 안의 inner objects 의 reference.
  • Reference: ~/Module/Path/Identifier — 매 absolute paths.
  • Map / List: MAP[(key, value), ...], [item1, item2].
  • Comment: // (line) — 매 /* */ 의 X.

매 typical structure

  • GameData: 매 unit definitions / weapon stats / texture references / sound mappings.
  • Module: 매 named container — 매 ZModule_TWeaponManagerModuleDescriptor 의 sort 의 component.
  • Inheritance: 매 is BaseType(...) 의 prototype 의 from inheritance — override fields only.

매 응용

  1. Unit balance modding (HP / armor / damage tweaks).
  2. New unit creation (copy/paste/rename + export to deck).
  3. Visual mod (camo swap, model substitution via NDF reference change).

💻 패턴

매 NDF 의 unit definition (WARNO style)

// Unit declaration with module composition
TUniteDescriptor_M1Abrams is TUniteDescriptor
(
    ClassNameForDebug = "M1A1 Abrams"
    AcknowUnitType = ~/AcknowUnitType_Tank
    ModulesDescriptors =
    [
        TBaseDamageModuleDescriptor
        (
            MaxPhysicalDamages = 9
            ArmorDescriptorFront = ~/Armor_Tank_Heavy_Front
            ArmorDescriptorSides = ~/Armor_Tank_Heavy_Side
        ),
        TWeaponManagerModuleDescriptor
        (
            Salves = [1, 1, 1]
            TurretDescriptorList = [TTurretInfanterieDescriptor()]
        ),
    ]
)

매 NDF parser (Python — ndf-parse 패키지)

import ndf_parse
import ndf_parse.model as ndf_model

# Parse a WARNO NDF file
with open("UniteDescriptor.ndf") as f:
    source = f.read()

tree = ndf_parse.parse(source)

# Find Abrams unit and tweak HP
for obj in tree:
    if obj.namespace == "TUniteDescriptor_M1Abrams":
        damage_mod = obj.value.by_member("ModulesDescriptors").value[0]
        damage_mod.value.by_member("MaxPhysicalDamages").value = "12"

# Write back
with open("UniteDescriptor.modified.ndf", "w") as f:
    f.write(ndf_parse.print_tree(tree))

매 batch 의 unit stat 의 audit

import ndf_parse
from pathlib import Path

def audit_unit_hp(ndf_dir: Path) -> dict[str, int]:
    """Scan all unit descriptors and extract MaxPhysicalDamages."""
    results = {}
    for ndf_path in ndf_dir.glob("**/UniteDescriptor*.ndf"):
        tree = ndf_parse.parse(ndf_path.read_text(encoding="utf-8"))
        for obj in tree:
            if obj.value.type == "TUniteDescriptor":
                try:
                    mods = obj.value.by_member("ModulesDescriptors").value
                    for m in mods:
                        if m.value.type == "TBaseDamageModuleDescriptor":
                            hp = int(m.value.by_member("MaxPhysicalDamages").value)
                            results[obj.namespace] = hp
                except (AttributeError, KeyError):
                    pass
    return results

hp_table = audit_unit_hp(Path("./WARNO_GameData/Generated/Gameplay/Gfx"))
# Find outliers
for unit, hp in sorted(hp_table.items(), key=lambda x: -x[1])[:10]:
    print(f"{unit}: {hp}")

매 mod 의 inheritance (override only what changed)

// Mod file — overrides base unit
export TUniteDescriptor_M1Abrams_Modded is TUniteDescriptor_M1Abrams
(
    // Only override the fields you change
    Modifications =
    [
        ("MaxPhysicalDamages", 15),       // buff HP
        ("MaxSpeedInKmph", 75),           // faster
    ]
)

매 NDF 의 git-friendly diff

# Mod versioning workflow
git init mods/abrams_buff
cd mods/abrams_buff
cp ../../WARNO_GameData/Generated/Gameplay/Gfx/UniteDescriptor.ndf base.ndf
# ... edit ...
git diff base.ndf modified.ndf > abrams_buff.patch

# Reapply on update
git apply abrams_buff.patch  # works as long as upstream context stable

매 결정 기준

상황 Approach
매 single value tweak Direct edit + diff
매 systematic balance pass ndf-parse Python script
매 new unit Inherit from existing TUniteDescriptor + override
매 cross-version mod Modifications = [...] override list (resilient to base changes)
매 visual-only mod Texture path swap in TextureBank NDF

기본값: 매 inheritance + Modifications list — 매 maintainability 의 best.

🔗 Graph

🤖 LLM 활용

언제: 매 large balance pass (parse → batch edit → write) / 매 new unit boilerplate generation / 매 cross-mod conflict detection. 언제 X: 매 tiny single-value edit — 매 manual edit 의 faster.

안티패턴

  • 매 binary patch: 매 game patches 의 break — NDF 의 source-level 의 stay.
  • 매 full file 의 copy: 매 base game patch 의 conflict — Modifications override list 의 use.
  • 매 string concat 의 NDF generation: 매 syntax error 의 risk — proper parser library 의 use.
  • 매 무 backup: 매 NDF 의 game crash 시 root cause — git-track everything.

🧪 검증 / 중복

  • Verified (Eugen Systems WARNO modding documentation; ndf-parse Python package on PyPI; community Discord patterns).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — NDF syntax + ndf-parse patterns + modding workflow