mapregionloc.txt?

Please post here for questions and discussion about scenario design and general game modding. The graphics and scenarios are easily modifiable. Discuss your experiements in this area and get tips and advice!

Moderators: Joel Billings, JanSorensen

Post Reply
sabre100
Posts: 391
Joined: Sat May 22, 2004 10:54 pm

mapregionloc.txt?

Post by sabre100 »

In the dat folder there is a mapregionloc.txt what do the numbers correspond to? Example:

region_id 6 0 479 1474
portloc 6 486 1508

What do each individual numbers mean and correspond to?

Thanks
User avatar
Pocus
Posts: 1319
Joined: Wed Sep 22, 2004 8:17 pm

RE: mapregionloc.txt?

Post by Pocus »

the pixels coordinates of the region texture and the port icon? (6 being the identifier of the region).

just guessing anyway
AGEOD Team
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: mapregionloc.txt?

Post by PDiFolco »

ORIGINAL: Pocus

the pixels coordinates of the region texture and the port icon? (6 being the identifier of the region).

just guessing anyway

I'd make the same guess, but a figure isn't explained this way - the 2nd number in the first line ("0").
Keep thinking Pocus [:'(] [:D]
PDF
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: mapregionloc.txt?

Post by color »

ORIGINAL: sabre100

In the dat folder there is a mapregionloc.txt what do the numbers correspond to? Example:

region_id 6 0 479 1474
portloc 6 486 1508

What do each individual numbers mean and correspond to?

Thanks

- The region_id entry are the coordinates where the icons for the units in each region is located. Not sure what the 0 means.

- The portloc are, as you correctly discovered, the coordinates of the port icon related to each region. Not all regions have ports.

To find the coordinates of the region texture files go to the Coordinates.txt file.

Jorgen
User avatar
Pocus
Posts: 1319
Joined: Wed Sep 22, 2004 8:17 pm

RE: mapregionloc.txt?

Post by Pocus »

is it possible to add new regions by the way? How is determined the linking between 2 regions also?
AGEOD Team
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: mapregionloc.txt?

Post by color »

ORIGINAL: Pocus

is it possible to add new regions by the way? How is determined the linking between 2 regions also?

Yes, you can add new regions, but it would possibly be a major task.
You have to update all pertinent configuration files, modify existing art as well as create new art.
The map has several layers, so depending upon where you want to add regions you would have to modify these art files as well.
If there is enough interested in this we can provide more details on this process.

The connections between the regions you can find in the regionsXX.txt files. There is one for each scenario.
Detailed below is an entry, in this instance region 58-Spain.
You will see there is a line beginning with CONNECT. This indicates which regions (id's) connects to Spain, and in the line below (SIDE) what type of connection it is. Note there is one entry in SIDE for each entry in CONNECT.

REGION,58,Spain,PLAYER_NEU,Spain,TER_ROUGH
MOVECOST,1
POP,3
FORT,0
CONNECT,26,27,56,57,59,62,63
SIDE,4,4,6,6,4,6,6
UNIT,FIGHTER AIR,1
UNIT,INFANTRY,5
UNIT,ARTILLERY,1
UNIT,FLAK,1
UNIT,SUPPLY,1
UNIT,LIGHT FLEET,1
UNIT,RAIL,1
UNIT,RESOURCE,3


Jorgen
User avatar
Pocus
Posts: 1319
Joined: Wed Sep 22, 2004 8:17 pm

RE: mapregionloc.txt?

Post by Pocus »

ok, rather straightforward still (even if I have no time to engage in major modding).

I wonder why base datas that dont change are repeated in datas which pertains to a given scenario (giving the connect each time eg).
(Well, just a remark from somebody who is in the dark side of data managing.)
AGEOD Team
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: mapregionloc.txt?

Post by color »

I suppose it ended up that way as we originally setup only one scenario for development, and this file was later duplicated for the other scenarios due to some of the information changing (units in each region, region owner).
No fancy and deep explanation [:D]

Jorgen
sabre100
Posts: 391
Joined: Sat May 22, 2004 10:54 pm

RE: mapregionloc.txt?

Post by sabre100 »

- The portloc are, as you correctly discovered, the coordinates of the port icon related to each region. Not all regions have ports

So how many coordinates are there total what is their logic in numbering? I assume it covers the whole map from east to west and north to south? So does the coordinates start with 0 and end with 2000 or something?

Such as:

region_id 6 0 479 1474
portloc 6 486 1508

If I read the above it means there is a port attached to region id 6 and the port icon is at coordinates 486 1508 is this like lat. and longitude sort of? Sorry for my ignorance just trying to see the logic behind the numbers.

Also how do I know what region id 6 is? For example could region id 6 be Finland or something?

Thanks for the help.
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: mapregionloc.txt?

Post by color »

ORIGINAL: sabre100
- The portloc are, as you correctly discovered, the coordinates of the port icon related to each region. Not all regions have ports

So how many coordinates are there total what is their logic in numbering? I assume it covers the whole map from east to west and north to south? So does the coordinates start with 0 and end with 2000 or something?

The map coords is a XY grid (left, down) and go from 0,0 to approx 5500,2600. It's a huge map, but you really don't get a real idea of the size when playing & scrolling in the game.
The art source source file is like 334 Mb [X(]

Such as:

region_id 6 0 479 1474
portloc 6 486 1508

If I read the above it means there is a port attached to region id 6 and the port icon is at coordinates 486 1508 is this like lat. and longitude sort of?

Correct, port attached to region 6, unit icon located at x coord 486 and y coord 1508. Note that all regions seems to have port icon loc, even though only some regions really have a port (that's in another file).

Sorry for my ignorance just trying to see the logic behind the numbers.

Also how do I know what region id 6 is? For example could region id 6 be Finland or something?

Check the regionsXX.txt As you will see from my post above showing one of the entrys in that file, the first line is:

REGION,58,Spain,PLAYER_NEU,Spain,TER_ROUGH

That means:

config_type, region_id, region_name, player, nationality, terrain_type

So you got to his file, lookup the number and you will find the terrain name.
The RegionXXX.tga files in the dat/art/map/ subdirectory shows the region texture art, i.e. the number in the other config files equals the XXX.tga
In the case of region 6 (S Atlantic 2), it would be the file Region006.tga


Thanks for the help.

No problem [:)], I hope this makes things clearer.


Jorgen

sabre100
Posts: 391
Joined: Sat May 22, 2004 10:54 pm

RE: mapregionloc.txt?

Post by sabre100 »

A lot clearer thanks Jorgen [:'(]

I wasn't clear on how the developers came up with numbers but they just followed the map counting up as it goes in the coordinates.

Thanks a bunch
Glabro
Posts: 39
Joined: Sun Apr 10, 2005 11:45 pm

RE: mapregionloc.txt?

Post by Glabro »

Yup - after adding the seaport of Tobruk in the game, linking it to both the Eastern and Central Med. I fiddled around with this until the port icon was at about where it should historically, instead of deep inland. Worked out great.
Post Reply

Return to “Mods and Scenarios”