• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Weird behavior when importing greyscale or png

Started by calavera, January 25, 2009, 09:11:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

calavera

Alright so I've reached a point of total frustration  :thumbsdown:

I followed this tutorial on importing USGS data and creating a region from it:

http://www.simtropolis.com/forum/messageview.cfm?catid=141&threadid=76684&enterthread=y&STARTPAGE=1

I've tried many different methods and I always end up with the same result... a region with city squares that have strange blue bars on their south sides in region view.  When I click the cities and go to city view, they look fine.

Here are some of the things I have tried to get rid of the strange bars:

1.  I originally used the z min and max from the tutorial that corresponds to an ocean region because the puget sounds is on the west most boundary of the greyscale map.  Blue bars.
2.  I tried increasing the z min and max, first by 1, then by 2, because of the line in the tutorial that sort of alludes to this problem and states that if the lowest land level is set too low of an rgb, their might be weird behavior like water or sand at the bottom of the city tiles.  Blue bars.
3.  I tried loading the region through sc4Terraformer, then raising the land level by anywhere from 1 to 10 meters, all with the same result.

All images below are compressed to jpg's for the purpose of this thread.  They were png's before.

Here is what it looks like in SC4 regional view after I raise the land with sc4t and click on a few cities and go back to region view (it looked fine before i saved the cities):


Here is what it looks like when I load it in sc4t:


4.  I also loaded it in sc4mapper to see if it looked weird there, but it looks normal:


Any ideas?  I've run out... :)

calavera

Just to correct some info above.

I noticed when looking at the region view that it is not actually water at the south edge of my cities, but the bottom line of the city grid is "transparent".  You can see clouds moving through underneath the region.

wouanagaine

This is a known bug of SC4 using large city and being in 1600x1200
If you enter the city, it is correct, just the region view is wrong

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

calavera

Good to know!  Do you know whether it affects all resolutions above 1600x1200?  I'm running the exe with:

-CustomResolution:enabled -r1920x1200x32 -f -intro:off

If so, do you know of any workarounds other than moving to a resolution lower than 1600x1200 or reducing city size?

One more thing... is there a comprehensive list anywhere of known bugs?

Thanks for your reply!

calavera

Quote from: calavera on January 26, 2009, 08:39:51 AM
Good to know!  Do you know whether it affects all resolutions above 1600x1200?  I'm running the exe with:

-CustomResolution:enabled -r1920x1200x32 -f -intro:off

If so, do you know of any workarounds other than moving to a resolution lower than 1600x1200 or reducing city size?

One more thing... is there a comprehensive list anywhere of known bugs?

Thanks for your reply!

Well I got home from work and I moved the custom res down to 1680x1050 and the bug went away!  I redid my grayscale and imported with sc4mapper.

The only thing I'm unhappy with is the lakes I filled in manually with rgb=65 into the grayscale.  They all ended up steeply carved into the terrain like they are at sea level.  I guess sc4 has no distinction between the water level of a lake and the water level of the sea?

Here is the final result if anyone cares:


wouanagaine

if you want to make a lake, you'll have to do it by ploping water flora/lot, the game water can only be at the sea level
The resolution bug is related to the graphics/cpu RAM amount, the more you have, the less the bug will appear

nice map btw

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

calavera

Thanks for the help.  I'll probably smooth out those lakes with your terraformer and use some ploppables.