Jump to content
Sign In to follow this  
KING_4ALL

Map resizing

21 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online: A long, long time ago... 
 

okay im trying to resize and area of a map i got off the stex into a 3 x2 map of meduim tiles thats 3 accross and 2 down what would size would the greyscale need to be

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hello, KING_4ALL.

Originally posted by: KING_4ALL okay im trying to resize and area of a map i got off the stex into a 3 x2 map of meduim tiles thats 3 accross and 2 down what would size would the greyscale need to bequote>
 

In order to determine the correct size of a region grayscale image map or size of a config.bmp file valid for use in SC4, one of the following two formulas are used:
 
Formula One – config.bmp size is known – calculate the size of the region.

(64W+1) by (64L+1) where W is the width of the config.bmp and L is the length of the config.bmp.

 
For example:

config.bmp is 4 x 9 pixels

(64 x 4) + 1) = 257

(64 x 9) + 1) = 577

Therefore, the Region dimensions are 257 by 577 pixels.

 
Formula Two – Region size is known – calculate the size of the config.bmp.

((W-1)/64) by ((L-1)/64) where W is the width of the Region image and L is the length of the Region image.

For example:

Region size is 257 by 577 pixels

((257-1) / 64) = 4

((577-1) / 64) = 9

Therefore, the config.bmp dimensions are 4 by 9 pixels.

 
For more information on creating config.bmp files for use in SC4, read the Simtropolis Ominbus article entitled Config.bmp: How To Make It Yours.

Regards,

Vandy


 



In the end you will see, You is you and me is me.
© May 29, 1980

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Okay Vandy i used your fomula with my Config being 4 pixils wide and 6 long but it didnt work here is what i used

    config.bmp is 4 x 6 pixels thats 6 medium tiles total

    (64 x 4) + 1) = 257

    (64 x 6) + 1) = 385

    Therefore, the Region dimensions are 257 by 385 pixels.

    yet when i tried to render the greyscale nothing happened so if there is anyone out there who can just tell me how big the greyscale must be to cover the region below it would be greatly appricated thank you

    Region.jpg

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    You have the dimensions reversed.  The size is noted across, then down.

    grayscale to config.bmp ratio :

    64:1 plus 1

    Large city = 4x4 pixels blue

    Medium city = 2x2 pixels green

    Small city = 1x1 pixels red

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Can somone please just tell me the dimensions thats the greyscale must be please

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Okay this map is still giving me problems dose anyone who has msn help me fix it

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Can you give details as to what you are doing, and with what, then what is, or is not happening. Are you sure you have a 8 bit, 256 color grayscale jpg? What are the properties of the grayscale?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    i'm actually having a few problems with the size of regions. i find maps on the STEX that i like, follow the procedures set out in these forums, but have an error message that reads:

    REGION GENERATION ERROR

    REGION BITMAP SIZE IS INCORRECT

    1537 x 1537, SHOULD BE 1025 x 1025

    is there anyway that the region size can be changed from 1025 to 1537?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    Originally posted by: webbster2k i'm actually having a few problems with the size of regions. i find maps on the STEX that i like, follow the procedures set out in these forums, but have an error message that reads:

    REGION GENERATION ERROR

    REGION BITMAP SIZE IS INCORRECT

    1537 x 1537, SHOULD BE 1025 x 1025

    is there anyway that the region size can be changed from 1025 to 1537?quote>

     

    OH...I'm not sure it can do that friend.....I'm not all that smart about that stuff, but i would assume if it was possible....It would change the way the pixels would be arranged....distorted and such...Who knows....Hope you find your answer.    

    Also, I have a friend I chat with in a local chat room in the Chicago area.....same exact screen name....are you he????

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Originally posted by: webbster2k i'm actually having a few problems with the size of regions. i find maps on the STEX that i like, follow the procedures set out in these forums, but have an error message that reads:

    REGION GENERATION ERROR

    REGION BITMAP SIZE IS INCORRECT

    1537 x 1537, SHOULD BE 1025 x 1025

    is there anyway that the region size can be changed from 1025 to 1537?quote>

     

    The default size for a region is 1025x1025, if you make a region folder and don't have a config.bmp file in it, the game will use the default size.

    You need a config.bmp file in the region folder that has the size of 24x24 pixels.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    Originally posted by: KingTitan
    Originally posted by: webbster2k i'm actually having a few problems with the size of regions. i find maps on the STEX that i like, follow the procedures set out in these forums, but have an error message that reads:

    REGION GENERATION ERROR

    REGION BITMAP SIZE IS INCORRECT

    1537 x 1537, SHOULD BE 1025 x 1025

    is there anyway that the region size can be changed from 1025 to 1537?quote>

     

    OH...I'm not sure it can do that friend.....I'm not all that smart about that stuff, but i would assume if it was possible....It would change the way the pixels would be arranged....distorted and such...Who knows....Hope you find your answer.    

    Also, I have a friend I chat with in a local chat room in the Chicago area.....same exact screen name....are you he????

    quote>

     

    ahhh i think i may have stumbled on the answer:

    2 - Make sure the config.bmp file is in the correct folder. There are two folders for regions, but only one works:

    C:\Documents and Settings\Username\My Documents\SimCity 4\Regions\Region Name\

    C:\Program Files\Maxis\SimCity 4\Regions\Region Name\

    It needs to be in the FIRST one (in My Documents). Sim City 4 does not use the second folder for loading region maps.

    i've been downloading my regions and configs in the second link above, not the documents and settings one - gonna try that and see if it works. hopefully it will.

    oh, KingTitan, i don't think i'm the guy you're on about - i'm from london, lol 9.gif

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    ok i'm having this same problem!

    i wanted to use the tampa bay greyscale, so i downloaded it

    1) i created my own config.bmp, 10x10

    2) I cropped the tampa bay map to make it a square

    3) i resized the greyscale to 641x641

    4) i put the greyscale and config into a new regions folder called tampa bay

    5) i opened another region, then opened tampa bay, the arrangment of cities from my config file came up

    6) i pressed ctrl alt ***** r and found the greyscale and clicked....

    nothing happened.

    help?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    If the grayscale.jpg is not a true 8 bit 256 color image it won't work.

    If the file name doesn't appear in the selection box after clicking on it, you need to type the name in the box.

    Some wireless keyboards won't accept a 4 key press, they have a combination key for that.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    i have a problem too

    here

    Region Generation Error

    Region bitmap size is incorrect 1409 x 1207, should be 1025 x 1025

    wat do i do now?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Originally posted by: Jim1994 i have a problem too

    here

    Region Generation Error

    Region bitmap size is incorrect 1409 x 1207, should be 1025 x 1025

    wat do i do now?quote>

     

    When you get that error message it's because the config.bmp is not named that, or that you didn't use a config file to go with the map.  The default config.bmp will be used if those conditions exist.  The default config.bmp is 16x16 pixels, which requires a 1025x1025 grayscale.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Can I just resize an existing map ?

    I found a map in the ST-Exchange which I like but it is a bit small for my needs (5x5 large cities). I have downloaded it and have streched it to 2561 x 2561 pixels as I want to have it on 10x10 large cities and saved it with no colour changes as *.jpg. I have created the config.bmp as well.

    Then I started SC4, created a region, closed SC4, copied my config.bmp in it, restarted SC4 and the tiles are correct (meaning the config.bmp is ok). Then I load the map with the CTRL+ALT+SHIFT+R function where I can select the stretched map but it fails to load.

    The region info should be fine as I have created it within SC4. The bmp is fine as well as I see my 10x10 (empty) large cities tiles in the game so the issue must be with the jpg file. The size is correct (config is 40x40 so my jpg is 64x40+1 = 2561 x 2561 pixels. I have no photo program so I use paintbrush but I do not change any colours and save it as a jpg so the file type should be correct. And still it is not. What do I do wrong ?

    The Aberdonian

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account

    Sign In to follow this  

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections