Skip to content

A command line application to shift all brushes and entities in a Reflex Arena .map file such that the geometric center of the map is aligned to the three-dimensional origin.

License

Notifications You must be signed in to change notification settings

mauro-merconchini/ReflexMapCenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reflex Map Center

A command line application to shift all brushes and entities in a Reflex Arena .map file such that the geometric center of the map is aligned to the three-dimensional origin.
Author: Mauro Merconchini

Getting Started

Everything you will need to get the application up and running.

Prerequisite

Java 1.6.0 or above. If you don't have it already, you can download it here

Installation

Download the latest release and unzip the contents into a directory of your choosing.

Note: Please don't rename any of the directories, executables, or mess with the file structure in any way. Doing so will very likely cause the program to not function, as it will not be able to locate files during execution.

How to Use

After placing a Reflex Arena .map file in the same directory as the executable, you can center it by running the application in the command line. The syntax is as follows:

ReflexMapCenter <myMap>.map

The resultant map file will be placed in the same directory as the input .map file have the following nomenclature:

<myMap>.map ---> <myMap>_Centered.map

Why Is This Useful?

When you are building a map in Reflex Arena, you will seldom be concerned with what is the distance of your map geometry and entities from the origin of the three-dimensional space. For example, the red dot marks the geometric center of the map:

Looks like the image didnt load

However, upon closer inspection you can see that the geometric center of the map is not aligned with the origin of the three-dimensional world, as shown below:

Looks like the image didnt load

This tool will seek to make the geometric center of your map align itself with the origin of the three-dimensional game space, either exactly or by the nearest integer unit.

Built With

  • Launch4j - A cross-platform Java executable wrapper

Tools

I developed my own set of tools for shifting the brushes and entities of Reflex Arena maps, and they are bundled with this application to perform the map centering. If you'd like to learn more about these tools individually, have a look at their individual repositories:

Acknowledgements

  • lolograde from the Reflex Arena discord for inpiring me to make this tool
  • Mikhail for suggesting the easiest way to find the geometric center of the map
  • Donaldduck8 for some compatibility fixes

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A command line application to shift all brushes and entities in a Reflex Arena .map file such that the geometric center of the map is aligned to the three-dimensional origin.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages