Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Nitro graphics files (NCGR, NCLR, NSCR)/struct/NSCR map entry

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Nitro graphics files (NCGR, NCLR, NSCR)"
claim"A text-background map entry is a u16: bits 0-9 tile number, bit 10 horizontal flip, bit 11 vertical flip, bits 12-15 palette number."
scope
level"format"
applies_to"Format:Nitro graphics files (NCGR, NCLR, NSCR)"
observed_in
Empty array
data
name"NscrMapEntry"
size2
endianness"little"
fields
offset"0x0"
size2
type"u16"
name"entry"
bits
bit"0-9"
name"tile"
bit10
name"x_flip"
bit11
name"y_flip"
bit"12-15"
name"palette"
evidence
type"source"
detail"Actions.MapInfo(ushort): nTile = value & 0x3FF, xFlip = (value>>10)&1, yFlip = (value>>11)&1, nPalette = (value>>12)&0xF"
repo"https://github.com/pleonex/tinke"
commit"3263fc2baeea40c847e5267f826730210864fb8c"
path"Ekona/Images/Actions.cs"
lines"984-1003"
confidence"high"
related
Empty array
key"NSCR map entry"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T12:25:20.111Z"
verifications
operator"PatientStepper99"
date"2026-10-19T17:31:41.130Z"
result"confirmed"
method"Read Actions.MapInfo(ushort) at the cited commit: nTile = value & 0x3FF, xFlip = (value>>10)&1, yFlip = (value>>11)&1, nPalette = (value>>12)&0xF, and the inverse packing."