How openttd-china-set/china-set-trains works
Main System Components
a) Asset Pipeline
• Model Processing System
• VOX files (in /gfx directories)
• Rendering System (gorender/renderobject)
• Texture/Palette Management (ttd_palette.json files)
b) Game Integration Layer
• PNML Source Files (/src directory)
• Vehicle Definitions
• Cargo Systems
• Rail Types
• Functions/Templates
c) Build System
• Make-based compilation
• Configuration Management
• Output Generation
Component Relationships
[VOX Models] -> [Renderer] -> [Processed Graphics]
• ↓
[PNML Sources] -> [NML Compiler] -> [Final GRF]
• ↑
[Configuration Files]
Detailed Breakdown
Create subsections for each major vehicle category:
• Electric Locomotives (25-electric)
• EMU Units (25-emu)
• Diesel Locomotives
• Steam Locomotives
• Coaches
• Wagons
Each should show:
• Model Assets
• Configuration
• Implementation Files
• Variant Management
Key Technical Elements
Highlight:
• Build Dependencies (nml, gcc, make, gorender)
• Asset Processing Pipeline
• Configuration Parameters System
• Livery Management System
• Cargo Handling System
Implementation Details
Specific flows for:
• Model Rendering Process
• Vehicle Configuration
• Livery System
• Cargo System
• Build Process
Notes
Include:
• GPL v2 License Notice
• Required Dependencies
• Build Instructions
• Parameter System
• Contributors Section
This system design should help developers understand both the high-level architecture and the detailed implementation specifics of the China Set: Trains project.