Skip to content

haikion/Java-SQMParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQMParser

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

Known Bugs

Please report!

Usage

  1. Create SQMParser object
  2. Open mission.sqm file
  3. Edit file
  4. Save new file

Examples

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
	}
}

About

Arma's mission.sqf parser written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages