Understanding _map
Moderators: Slitherine Core, BA Moderators
Understanding _map
The new briefing system uses a text file scenario_map.txt
How can be controlled the position of the elements, for example I see alreade include text files with:
ANIM Place scenario_SovietFlag0 0 -380 0
ANIM move guardsattack_SovietFlag0 30 766 271 1
The parameters 0; -380 0 are coordinates?
Where is the documentation that explains how to create a briefing?
How can be controlled the position of the elements, for example I see alreade include text files with:
ANIM Place scenario_SovietFlag0 0 -380 0
ANIM move guardsattack_SovietFlag0 30 766 271 1
The parameters 0; -380 0 are coordinates?
Where is the documentation that explains how to create a briefing?
-
pipfromslitherine
- Site Admin

- Posts: 9898
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Understanding _map
The ba2 wiki has details on the UI files:
https://sites.google.com/site/battleaca ... umentation
Cheers
Pip
https://sites.google.com/site/battleaca ... umentation
Cheers
Pip
follow me on Twitter here
Re: Understanding _map
Yes I know, but I could not find a way (other that trying values untill the desired place is reached) for the values x,y
ANIM PLACE <object> <time> <x> <y>
How to relate the x,y coordinates of the real map with the briefing map?
ANIM PLACE <object> <time> <x> <y>
How to relate the x,y coordinates of the real map with the briefing map?
-
pipfromslitherine
- Site Admin

- Posts: 9898
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Understanding _map
These are normal XY coordinates on the screen, in the same way as all UI objects. Based on a 1024x768 screen size. Negative ordinates are generally used to position objects offscreen.
Cheers
Pip
Cheers
Pip
follow me on Twitter here
Re: Understanding _map
So to place a flag, for example, I should imagine, more o less, the coordinates and, running the scenario and modifying the coordinate values until the flag is in place?pipfromslitherine wrote:These are normal XY coordinates on the screen, in the same way as all UI objects. Based on a 1024x768 screen size. Negative ordinates are generally used to position objects offscreen.
Cheers
Pip
There is not a more effective way?, its more difficult that than creating the scenario...
-
pipfromslitherine
- Site Admin

- Posts: 9898
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Understanding _map
I would take a screenshot of the game at 1024x768 and just take the coordinates from a paint package.
Cheers
Pip
Cheers
Pip
follow me on Twitter here
Re: Understanding _map
Will try. Thanks.pipfromslitherine wrote:I would take a screenshot of the game at 1024x768 and just take the coordinates from a paint package.
Cheers
Pip
Re: Understanding _map
I explored the text marker on the editor, I see the coordinates for each text marker are keep in the map itself (.bam):
ID 1004
POS 816.000000 , 10.000000 , -1104.000000
FONT 0
COLOUR FFFEE37C
TAG IDS_AUTO_MARKER_0
As these text are displayed on the briefing also, it should be a conversion system in BA to do that.
So 816 and -1104 should correspond to a x,y on 1024x768
The screenshot and getting the coordinates on a paint package is possible (I tried and,… if not alternative…) but it should be a better approach.
ID 1004
POS 816.000000 , 10.000000 , -1104.000000
FONT 0
COLOUR FFFEE37C
TAG IDS_AUTO_MARKER_0
As these text are displayed on the briefing also, it should be a conversion system in BA to do that.
So 816 and -1104 should correspond to a x,y on 1024x768
The screenshot and getting the coordinates on a paint package is possible (I tried and,… if not alternative…) but it should be a better approach.
-
pipfromslitherine
- Site Admin

- Posts: 9898
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Understanding _map
I'm not really sure what you mean. The text shows on the map because it gets rendered as part of the map. The system was used to build all the current briefings. I'm not really sure what you think should happen.
Cheers
Pip
Cheers
Pip
follow me on Twitter here
Re: Understanding _map
I was trying to say that if the system "know" how to show the markers on to briefing map, positioned originally on the main map at x,y, it should be a conversion/relationship between the values keep on the .bam and the position later on the briefing.
-
pipfromslitherine
- Site Admin

- Posts: 9898
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Understanding _map
I'm still confused. Text markers are already shown IIRC. The designers had no issues building briefings 
Cheers
Pip
Cheers
Pip
follow me on Twitter here
Re: Understanding _map
Well, don't worry, it's difficult for me to explain. I'll try one more time.pipfromslitherine wrote:I'm still confused. Text markers are already shown IIRC. The designers had no issues building briefings
Cheers
Pip
As if placed text markers on the map these are also showed by BA in the briefing, I thought: If I put a marker on the editor, and then I check the coordenates for that marker in the .bam I could then place a flag in the briefing using these coordinates. But I see it's difficult to explain and to understand. so I'd better try to find an alternative.
