SQM parser written in Java
This library allows easy editing of Arma (2 or 3) mission.sqm file in Java application.
###Currently working:
- Removal of classes (units etc)
- Editing of parameters
- Parameter deletion
- Parameter adding
###What's not working
- Adding of new Classes
Please report!
- Create SQMParser object
- Open mission.sqm file
- Edit file
- Save new file
import org.arma.sqmparser.SQMParser;
class SQMParserUser
{
public static void main(String[] args)
{
SQMParser parser = new SQMParser(); //Create new SQMParser object
parser.parseFile("mission.sqm"); //open existing mission.sqm file
parser.deleteByParameter("id", "1"); //Delete unit with ID 1
parser.write("mission_edited.sqm"); //write new mission.sqm file
}
}