Understanding _map

Download scenarios and talk about scenario design.
Moderators: Slitherine Core, BA Moderators

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Understanding _map

Post by enric » Tue Sep 23, 2014 6:32 pm

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?

pipfromslitherine
Site Admin
Site Admin
Posts: 9280
Joined: Wed Mar 23, 2005 10:35 pm

Re: Understanding _map

Post by pipfromslitherine » Tue Sep 23, 2014 7:22 pm

The ba2 wiki has details on the UI files:

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

Cheers

Pip
follow me on Twitter here

enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Understanding _map

Post by enric » Tue Sep 23, 2014 7:59 pm

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?

pipfromslitherine
Site Admin
Site Admin
Posts: 9280
Joined: Wed Mar 23, 2005 10:35 pm

Re: Understanding _map

Post by pipfromslitherine » Tue Sep 23, 2014 8:55 pm

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
follow me on Twitter here

enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Understanding _map

Post by enric » Wed Sep 24, 2014 5:29 am

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

pipfromslitherine
Site Admin
Site Admin
Posts: 9280
Joined: Wed Mar 23, 2005 10:35 pm

Re: Understanding _map

Post by pipfromslitherine » Wed Sep 24, 2014 3:22 pm

I would take a screenshot of the game at 1024x768 and just take the coordinates from a paint package.

Cheers

Pip
follow me on Twitter here

enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Understanding _map

Post by enric » Wed Sep 24, 2014 3:53 pm

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.

enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Understanding _map

Post by enric » Wed Sep 24, 2014 4:38 pm

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.

pipfromslitherine
Site Admin
Site Admin
Posts: 9280
Joined: Wed Mar 23, 2005 10:35 pm

Re: Understanding _map

Post by pipfromslitherine » Wed Sep 24, 2014 8:10 pm

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
follow me on Twitter here

enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Understanding _map

Post by enric » Thu Sep 25, 2014 7:45 am

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
Site Admin
Posts: 9280
Joined: Wed Mar 23, 2005 10:35 pm

Re: Understanding _map

Post by pipfromslitherine » Thu Sep 25, 2014 3:06 pm

I'm still confused. Text markers are already shown IIRC. The designers had no issues building briefings :)

Cheers

Pip
follow me on Twitter here

enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Understanding _map

Post by enric » Thu Sep 25, 2014 3:23 pm

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.

Post Reply

Return to “Battle Academy 2: Scenario Design”