<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=LNG_%28File_Format%29</id>
	<title>LNG (File Format) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=LNG_%28File_Format%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=LNG_(File_Format)&amp;action=history"/>
	<updated>2026-05-06T17:00:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.wexosmk.xyz/index.php?title=LNG_(File_Format)&amp;diff=229&amp;oldid=prev</id>
		<title>Wexos: Imported from avsys wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=LNG_(File_Format)&amp;diff=229&amp;oldid=prev"/>
		<updated>2024-05-01T17:41:15Z</updated>

		<summary type="html">&lt;p&gt;Imported from avsys wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;LNG&amp;#039;&amp;#039;&amp;#039; is a file format used in &amp;#039;&amp;#039;[https://en.wikipedia.org/wiki/Crash_Team_Racing Crash Team Racing]&amp;#039;&amp;#039;. It contains message data for each language in the game.&lt;br /&gt;
&lt;br /&gt;
= File Format =&lt;br /&gt;
The file byte order is always little endian.&lt;br /&gt;
&lt;br /&gt;
== Header ==&lt;br /&gt;
The file starts with a header that is 8 bytes long.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Int32 || Number of messages &amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || Int32 || Offset to [[#Message Entry List|Message Entry List]] &amp;#039;&amp;#039;&amp;#039;O&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || colspan=2 {{unknown|End of header, start of Message Data}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Message Data ==&lt;br /&gt;
After the header, there is a list of null-terminated UTF-8 strings that contain the message texts.&lt;br /&gt;
&lt;br /&gt;
== Message Entry List ==&lt;br /&gt;
This section indexes the absolute offsets of each message from [[#Message Data|Message Data]].&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;O&amp;#039;&amp;#039;&amp;#039; + &amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039; * 4 || Int32 || Offset to the message in [[#Message Data|Message Data]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
At the end of the file, there is a null-terminated string with the text &amp;#039;&amp;#039;MISSING MSG&amp;#039;&amp;#039;. It is unknown if this is used by the game at all, or if it&amp;#039;s just a remain from development.&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle LNG files:&lt;br /&gt;
* [https://github.com/DCxDemo/CTR-tools CTR tools], by DCxDemo (can convert LNG to plaint text and vice versa).&lt;br /&gt;
&lt;br /&gt;
[[Category:Crash Team Racing File Formats]]&lt;/div&gt;</summary>
		<author><name>Wexos</name></author>
	</entry>
</feed>