Author Topic: How to change the worldmap?  (Read 12010 times)

Offline Gob

  • The Good
How to change the worldmap?
« on: August 24, 2012, 09:38:38 pm »
What is the "normal" size for a worldmap? I have sat image of my home country that will be the new WM and is 5400 x 4384 . I know is too big, to what size should I remake it?
« Last Edit: June 29, 2013, 01:07:22 pm by Gob »

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: Worldmap question
« Reply #1 on: August 25, 2012, 01:23:45 am »
The Fo1/2 worldmap is 1400x1500px big. 2238 uses 2100x3000px size.

Offline codave

  • Professional Noob Trainer
Re: Worldmap question
« Reply #2 on: August 25, 2012, 07:57:30 am »
Since the grids are 50x50 pixels I just made sure that the H and W of my WM image were both multiples of 50, so they would divide evenly.  Then I set the number of grids in H and W to the proper size.  You can also change the grid size if you wish.

Re: Worldmap question
« Reply #3 on: August 25, 2012, 08:48:07 am »
What is the max size of map?

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: Worldmap question
« Reply #4 on: August 25, 2012, 09:26:40 am »
I don't know of any size restriction for the worldmap and I don't think that there is any other than games performance, etc.

Offline Wipe

  • Rotator
  • Random is god
Re: Worldmap question
« Reply #5 on: August 25, 2012, 09:33:26 am »
Since the grids are 50x50 pixels (...)

Each server can define own zone length (__GlobalMapZoneLength) - if you want, you can create 500x500px worldmap, which is in fact 1x1, if we count in zones. 2238 and i think TLA uses 50x50 due to old times, when this wasn't configurable.
« Last Edit: August 25, 2012, 09:37:25 am by Wipe »
Games are meant to be created, not played...

Offline Gob

  • The Good
Re: Worldmap question
« Reply #6 on: August 25, 2012, 09:49:06 am »
Well the image is this maybe a 1600 x 1200 would be adequate for such a map?

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: Worldmap question
« Reply #7 on: August 25, 2012, 10:46:18 am »
It really depends on how much you want to fill it. If you just have 10 or such locations, the normal Fo1/2 size would be totally enough.

Offline Gob

  • The Good
Re: Worldmap question
« Reply #8 on: August 25, 2012, 11:49:11 am »
It really depends on how much you want to fill it. If you just have 10 or such locations, the normal Fo1/2 size would be totally enough.

Yeah I was planing on 8 cities and 4-3 mini locations. Thanks for your help everybody.
« Last Edit: August 25, 2012, 11:52:31 am by Gob »

Offline Gob

  • The Good
Re: Worldmap question
« Reply #9 on: August 25, 2012, 06:18:57 pm »
Okay a few other questions:

My current map is 25 tiles big and they are 300 x 350. Despite me putting them in order, in-game they are all messed up and out of place. So, right now TLA original map is 19 tiles big. Is there some maximum number of tiles set? If so where to change that number? Also do I have to set the current WM resolution somewhere? If yes where?

In-game


and how the map should look like


Offline codave

  • Professional Noob Trainer
Re: Worldmap question
« Reply #10 on: August 25, 2012, 08:03:23 pm »
Each server can define own zone length (__GlobalMapZoneLength) - if you want, you can create 500x500px worldmap, which is in fact 1x1, if we count in zones. 2238 and i think TLA uses 50x50 due to old times, when this wasn't configurable.

Yeah, I actually set mine at 75x75 pix for some reason that made sense at the time.  I can't remember why though.

 ;D

Okay a few other questions:

My current map is 25 tiles big and they are 300 x 350. Despite me putting them in order, in-game they are all messed up and out of place. So, right now TLA original map is 19 tiles big. Is there some maximum number of tiles set? If so where to change that number? Also do I have to set the current WM resolution somewhere? If yes where?

In-game


and how the map should look like


Do you mean the grid lines don't match up with the tile fog?  I had a similar problem, and had to adjust the grid size a tad bit.  As I said earlier, my grids are 75x75, but I had that same problem of them not matching up when I set the ZONE_LENGTH to 75 in worldmap.fos, and  _GlobalMapZoneLength in config.fos, so I set it like this:

#define ZONE_COUNT_X                       ( 20 )
#define ZONE_COUNT_Y                       ( 15 )
#define ZONE_LENGTH                         ( 74 )


    __GlobalMapWidth            = 20;     // Maximum 100
    __GlobalMapHeight           = 15;     // Maximum 100
    __GlobalMapZoneLength       = 74;     // Maximum 500

And now it matches.  Just took a few minutes to tweak it and find the right setting.

It looks like your map is tiling itself.  I also had that problem, and I *think* I had to remove anything in worldmap_init.fos that was outside the boundaries of my map grids.  I think it's initializing zones that aren't on the map, so it tiles the image.

« Last Edit: August 25, 2012, 08:14:50 pm by codave »

Offline Gob

  • The Good
Re: Worldmap question
« Reply #11 on: August 25, 2012, 08:17:25 pm »
No the grid lines do match up the fog. My problem is that when the WM map was cut into tiles/pieces in-game they are all out of place. And I don't know why.

Offline codave

  • Professional Noob Trainer
Re: Worldmap question
« Reply #12 on: August 25, 2012, 08:40:01 pm »
NVM, I have no clue whats going on...
« Last Edit: August 25, 2012, 08:44:50 pm by codave »

Offline Gob

  • The Good
Re: Worldmap question
« Reply #13 on: August 25, 2012, 08:45:20 pm »
I still think it has something to do with the order of the map tiles are loaded.

Offline codave

  • Professional Noob Trainer
Re: Worldmap question
« Reply #14 on: August 25, 2012, 08:49:58 pm »
Is that screen you posted the entire map zoomed out, or just a section of the map???