Page 1 of 1

Understanding _map

Posted: Tue Sep 23, 2014 6:32 pm
by enric
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?

Re: Understanding _map

Posted: Tue Sep 23, 2014 7:22 pm
by pipfromslitherine
The ba2 wiki has details on the UI files:

https://sites.google.com/site/battleaca ... umentation

Cheers

Pip

Re: Understanding _map

Posted: Tue Sep 23, 2014 7:59 pm
by enric
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?

Re: Understanding _map

Posted: Tue Sep 23, 2014 8:55 pm
by pipfromslitherine
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

Re: Understanding _map

Posted: Wed Sep 24, 2014 5:29 am
by enric
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
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?
There is not a more effective way?, its more difficult that than creating the scenario... :o

Re: Understanding _map

Posted: Wed Sep 24, 2014 3:22 pm
by pipfromslitherine
I would take a screenshot of the game at 1024x768 and just take the coordinates from a paint package.

Cheers

Pip

Re: Understanding _map

Posted: Wed Sep 24, 2014 3:53 pm
by enric
pipfromslitherine wrote:I would take a screenshot of the game at 1024x768 and just take the coordinates from a paint package.

Cheers

Pip
Will try. Thanks.

Re: Understanding _map

Posted: Wed Sep 24, 2014 4:38 pm
by enric
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.

Re: Understanding _map

Posted: Wed Sep 24, 2014 8:10 pm
by pipfromslitherine
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

Re: Understanding _map

Posted: Thu Sep 25, 2014 7:45 am
by enric
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.

Re: Understanding _map

Posted: Thu Sep 25, 2014 3:06 pm
by pipfromslitherine
I'm still confused. Text markers are already shown IIRC. The designers had no issues building briefings :)

Cheers

Pip

Re: Understanding _map

Posted: Thu Sep 25, 2014 3:23 pm
by enric
pipfromslitherine wrote:I'm still confused. Text markers are already shown IIRC. The designers had no issues building briefings :)

Cheers

Pip
Well, don't worry, it's difficult for me to explain. I'll try one more time.
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.