What is an XS file?
An XS file is a reference file used in Age of Empires III (AOE3) to generate artificial intelligence (AI). It is used during compilation process when a custom XML map file is loaded. If you have played AOE3, you already know that you can not only pick any map to play, but can also create your own maps using the Random Map Script program.
Key Characteristics of XS Files
| Characteristic | Description |
|---|---|
| File Extension | .xs (associated with various applications) |
| Primary Variants | Xformat code formatting configuration, time_stamp() format strings, Macro Scheduler .xs files |
| Format Type | Xformat uses clang-format configuration files (text-based); xsFormat strings use plain text with “%” formatting markers; Macro Scheduler uses compiled macro format |
| Primary Use | Code formatting for C-family languages; date and time string formatting; storing compiled macros |
| Main Feature | Xformat supports live preview of code formatting changes; xsFormat provides customizable date/time output with extensive formatting options |
| Security Profile | Safe for intended use; contains no executable code; can be safely edited with text editors; requires specialized software for certain variants |
| Compatibility | Xformat requires macOS 13.0 or newer; xsFormat compatible with TextTransformer and similar text processing tools; Macro Scheduler requires its own software |
How to generate AI Map in Age of Empires 3?
- Open a text editing program, such as Microsoft Notepad, Notepad++, or TextEdit. This will be used to program your map.
- Program all of the features of your map using the Random Map Script language.
- You can refer to programming tutorials to make sure that you are programming it correctly
- Save your file as “MyAOE3.xs” and move it to your “Age of Empires 3” gaming folders.
XS File Format - More Information
XS files are saved as plain text files that can be opened and edited with any text editor.
How to Work with XS-Related Formats
Using Xformat
System Requirements:
Requires macOS 13.0 or newer
Available for purchase on the Mac App Store
Features:
Format C, C++, Objective-C, and Objective-C++ code
Create custom style configurations
Use Batch Format for multiple files
Integrate with Xcode via extension
Frequently Asked Questions (FAQ)
Q1: What programming languages does Xformat support?
A1: Xformat supports C, C++, Objective-C, and Objective-C++ code formatting, but does not support Swift source files [citation:1].
Q2: What style guides can I use with Xformat?
A2: Xformat supports LLVM, Mozilla, and WebKit style guides, and allows users to define custom styles [citation:1].
Q3: What does the xsFormat parameter do in time_stamp()?
A3: The xsFormat parameter allows customization of date and time output using formatting characters preceded by “%” [citation:2].
Q4: Does Xformat work on Windows or Linux?
A4: No, Xformat is designed exclusively for macOS and requires macOS 13.0 or newer [citation:1].
Q5: Can I automate code formatting with Xformat?
A5: Yes, Xformat includes a Shortcuts action for automation and can format entire directories using the Batch Format tool [citation:1].