DEV INFO: Customizing the zoom levels

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
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

DEV INFO: Customizing the zoom levels

Post by color »

We figured that not everyone wanted to have the same zoom levels, so like so many other concepts in the game, we made them configurable.
To change the zoom levels yourself, open up the art.txt file and find the three following lines:

Code: Select all

 // zooms for the game
 MAP_ZOOM,4800,5400,6000
 
 // chip scaling by zoom
 CHIP_SCALE,3000,3375,3750
 
 // Y ofsets by zoom
 ICON_Y_OFFSET,35,40,45
 

- The first line is the zoom at the three different levels. The numbers goes from the highest zoom to the lowest zoom. Increasing the number increases the zoom level and vice versa. That also means you can actually zoom further out at the highest level by lowering the first number. This should satisfy the request of some to get a large overview mode where you can to do strategic planning without using the strategic map.

- The second decides the scaling of the unit icons on each zoom level.

- The third decides the x and y coordinate offset for each zoom level when placing the unit icons.
The unit icon coordinates for each region is in another file.


So changing the first set of values and then playing around with the two other sets to find the optimal values you can completely customize the zoom level to your liking. I suggest once players has found new values they like that you share them with other players posting replys to this thread.


Jorgen

ADMINS, please make this sticky.
User avatar
Marc von Martial
Posts: 5292
Joined: Thu Jan 04, 2001 4:00 pm
Location: Bonn, Germany
Contact:

RE: DEV INFO: Customizing the zoom levels

Post by Marc von Martial »

For a customer made example see also this thread in the main GGWAW forum:

tm.asp?m=830833
marc420
Posts: 224
Joined: Mon Sep 23, 2002 2:36 am
Location: Terrapin Station

RE: DEV INFO: Customizing the zoom levels

Post by marc420 »

anyone know the max of how far out you can zoom and still see the numbers? .... the numbers like transport capacity in a region?
Guard against the impostures of pretended patriotism. ~George Washington
User avatar
Lebatron
Posts: 1662
Joined: Mon May 30, 2005 4:27 pm
Location: Upper Michigan

RE: DEV INFO: Customizing the zoom levels

Post by Lebatron »

I found that to be 4000. So that is what I set my normal zoom to. The others are 3000 and 2000. But at them zooms the program uses the enlarged unit icons from the old zoom-in. I guess if you want the unit size to stay uniform though all the zooms you will need to go though all the lines of code for each unit type. Its not worth the effort.
From the art.txt file

// zooms for the game
MAP_ZOOM,4000,3000,2000

// chip scaling by zoom
CHIP_SCALE,3000,1700,1500

// Y ofsets by zoom
ICON_Y_OFFSET,25,25,25

If you would like keep the original default zoom level use 4800 in place of 4000. At 4800 the icon offset was originally at 35. But I think 25 works better because it places the ships closer together. Also air sits a little closer to land units. I think you'll like the tighter look better. Try both 25 and 35 to see for yourself.

Jesse LeBreton, AKA Lebatron
Development team- GG's WAW A World Divided
Starfire512
Posts: 1
Joined: Thu Sep 08, 2005 7:26 pm
Contact:

RE: DEV INFO: Customizing the zoom levels

Post by Starfire512 »

It turns out that you can have more than three zoom levels, if you so desire. Just add the extra ones at the end. Make sure that all three lines have the same number of numbers

Saving the Galaxy ... one System at a Time!
Post Reply

Return to “Mods and Scenarios”