OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: soulaco on 13 Mar 2008, 21:56:12

Title: Create external map editor gui
Post by: soulaco on 13 Mar 2008, 21:56:12
I am trying to build a more enhanced game editor outside of the game that will dynamically write out the scripting commands for what I want to have done. I want to be able to link the map from the game to my editor so I can get the map coordinates from the game into my external gui. How can I do this?
Title: Re: Create external map editor gui
Post by: Gnat on 19 Mar 2008, 14:14:23
Sounds like huge undertaking, but I'm not sure I understand the question.
What coordinates? What Map / Mish ?
Title: Re: Create external map editor gui
Post by: soulaco on 19 Mar 2008, 22:20:12
The coordinates refer to the position of things on the map. So, if I create a marker, for instance, the marker has a 3 dimensional position. What I want to do is create an external game editor and be able to bring up the map for Sahrani, for instance and be able to place something on the map outside of the game in my gui I am creating and this way I can get the position of what I am placing.
Title: Re: Create external map editor gui
Post by: Gnat on 21 Mar 2008, 10:36:05
hmmmmm ..... my only thought was your editor would manually add items to the SQM file, but I very much doubt you can do that while the ArmA editor is running.
Title: Re: Create external map editor gui
Post by: Spooner on 21 Mar 2008, 14:31:11
I assume he meant creating an entirely non-ArmA based editor that read from map and mission files and wrote to the mission file. This would allow people to edit from machines that are too old to run ArmA or that wouldn't allow the installation of ArmA (e.g. an old laptop or a work machine).

Manipulating the mission file (.sqm), even when altering and writing it, should be trivial, since the format is a quite obvious text-based one, but the problem with the map file is that the format is closed and unavailable outside BIS. If someone has uncovered the format of that file and published it, then you should have no great problems using that information to generate a simplified map for yourself with a few drawing commands (openGL/DirectX if you want to do it properly). I'm not aware of this map format having been "cracked", but someone else might have this information available, if not already published. I know some people did manage to make map files before the tools were released, so I suppose there must be, at least, partial understanding of the file format out there..somewhere ;P