Python or bash script to parse FOCS files into csv or similar?

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
Oberlus
Cosmic Dragon
Posts: 5704
Joined: Mon Apr 10, 2017 4:25 pm

Python or bash script to parse FOCS files into csv or similar?

#1 Post by Oberlus »

Does anyone happen to have a python or bash script to parse FOCS files (or one type of FOCS files, like techs) into a tabulated format? Something like this:

Code: Select all

TYPE, NAME, DESCRIPTION, PREREQUISITES, ..., BUILDCOST, ...
Tech, "TECH_NAME", "TECH_DESC", "TECH_NAME, TECH_NAME", ..., <empty>, ...
BuildingType, "BUILDING_NAME", "TECH_DESC", <empty>, ..., "10 * [[BUILDING_COST_MULTIPLIER]]", ...

Post Reply