#parse #parser #farm-sim

bin+lib fs_mod_parser

Mod File Parser for Farming Simulator

6 releases

0.1.5 Jan 11, 2025
0.1.4 Jan 5, 2025
0.1.3 Nov 14, 2024
0.1.2 Oct 30, 2024

#1030 in Parser implementations

Download history 401/week @ 2024-10-29 35/week @ 2024-11-05 241/week @ 2024-11-12 14/week @ 2024-11-19 1/week @ 2024-11-26 39/week @ 2024-12-03 67/week @ 2024-12-10 9/week @ 2024-12-17 5/week @ 2024-12-24 117/week @ 2024-12-31 177/week @ 2025-01-07 34/week @ 2025-01-14 3/week @ 2025-01-21 10/week @ 2025-02-04

62 downloads per month

ISC license

730KB
4.5K SLoC

FS Mod Parser

A rust utility library to read and parse Farming Simulator Mod files

Parsers Available

Basic Mod Details

Checks the file name, and returns:

  • file metadata
  • mod pedigree (author, title, etc..)
  • map information (if applicable)
  • mod content tests

Valid input is a file or folder, any type that coerces into a &Path.

let json_representation = fs_mod_parser::parse_mod("FS22_Mod_File.zip").to_json_pretty();

Save Game Details

Returned information includes:

  • Mods loaded and used in the save with total count
  • Playtime, Save Date, Save Name
  • Map mod name and title
  • Errors, if any, and boolean valid flag
  • Farm list, boolean if it's a multiplayer save or not

Valid input is a file or folder, any type that coerces into a &Path.

let json_representation = fs_mod_parser::parse_savegame("savegame1.zip").to_json_pretty();

Store Item Details

Returned information includes:

  • Added Brands
  • Added L10N Strings
  • Vehicles
  • Placables and Productions

Valid input is a file or folder, any type that coerces into a &Path.

let json_representation = fs_mod_parser::parse_detail("FS22_Mod_File.zip").to_json_pretty();

Dependencies

~17MB
~287K SLoC