Skip to content

Lizerium/Lizerium.RDL.Converter

Repository files navigation

Lizerium.RDL.Converter

Modern implementation of frc.exe for Freelancer (2003)
Conversion of RDL (XML)FRC (runtime text)

🌐 Language: 🇷🇺 Russian | ✅ 🇺🇸 English (current)

Note

This project is part of the Lizerium ecosystem and belongs to the following project:

If you're looking for related engineering and support tools, start there.

About

Lizerium.RDL.Converter is a custom implementation of frc.exe (Freelancer Resource Compiler), rewritten from scratch in C#.

Original tool:


Credits

Important

This project is based on the analysis of the original frc.exe implementation, written in C by Jason Hook (Adoxa).

The algorithms were rethought and reimplemented in C#, addressing the limitations of the original tool.


Limitations of the original frc.exe

Caution

The original tool may exhibit the following issues:

  • Data loss during extraction
  • Text artifacts
  • Improper Unicode handling
  • Issues with Cyrillic encoding
  • Incorrect repacking behavior

What the library does

The conversion process:

RDL (XML markup)
        ↓
FRC (string-based runtime format)

Supported elements:

  • <TRA> — styles (bold / italic / underline / color / font)
  • <TEXT> — text
  • <PARA> — line breaks
  • <JUST> — alignment

Implementation details

Tip

The library does not simply convert XML — it reproduces the runtime behavior of Freelancer’s text system.

  • Reconstructed data / mask / def logic
  • Correct color handling (bitwise + nibble swap)
  • Preserves text formatting
  • Fault-tolerant XML parsing
  • Error logging
  • Unit tests for core functions included

Usage

using LizeriumRDL;

var parser = new RdlParser();

string xml = File.ReadAllText("input.xml");
string frc = parser.ConvertXMLtoFRC(xml, "id", "file");

File.WriteAllText("output.frc", frc);

Purpose

The library is used in the project:

Freelancer Lizerium

All text resources and information cards in the project are generated using this converter.


Notes

Tip

The project can be used as a standalone converter or as part of a larger Freelancer resource processing pipeline.

About

C# implementation of frc.exe (Freelancer Resource Compiler). Converts RDL (XML) into FRC runtime text format.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages