> Download .nupkg and install globally 💯
https://github.com/Lizerium/Lizerium.RDL.Converter/pkgs/nuget/Lizerium.RDL.Converter
> Download .nupkg and install locally
CODE
dotnet add package Lizerium.RDL.Converter --source "C:\temp\nuget"Lizerium.RDL.Converter [EN]
C# implementation of frc.exe (Freelancer Resource Compiler).
Converts RDL (XML) into FRC runtime text format.
Installation
CODE
`dotnet add package Lizerium.RDL.Converter`Usage
CODE
using LizeriumRDL;var parser = new RdlParser();string xml = File.ReadAllText("input.xml");string frc = parser.ConvertXMLtoFRC(xml, "id", "file");File.WriteAllText("output.frc", frc);API
IRdlParser
ConvertXMLtoFRC
Converts RDL XML into FRC string.
CODE
string ConvertXMLtoFRC(string xml, string id, string nameFile)GetStyleTags
Calculates style flags based on data/mask/def values.
CODE
string GetStyleTags( string prevDataStr, string prevMaskStr, string prevDefStr, string dataStr, string maskStr, string defStr, string id = "", string xml = "")ConvertDataToColor
Converts internal color format (0xFFFFFFFF) into readable color value.
CODE
string ConvertDataToColor(string hexString)FormatText
Formats text with line breaks and indentation.
CODE
string FormatText(string input, int maxLineLength = 111)Notes
- Designed for Freelancer (2003) data processing
- Reimplements behavior of original
frc.exe
- Handles formatting, styles and color conversion
