Page 2 of 2 FirstFirst 1 2
Results 31 to 57 of 57

Thread: [Utility] BMP to WBS Converter

  1. #31
    Julinoleum
    Settler
    Join Date
    11 Jan 2005
    Posts
    24
    Country
    This is Julinoleum's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    Originally posted by OzzyKP
    Does anyone know why when I convert a .bmp and load up the game, it immediately says that I have been defeated and closes?
    Same for me. When I take a look at the map when Im closing the game, it looks like only the coast was converted....

  2. #32
    OzzyKP
    ACS Staff Member OzzyKP's Avatar
    Join Date
    11 Oct 1999
    Location
    Rockville, MD
    Posts
    13,632
    Country
    This is OzzyKP's Country Flag
    Thanks
    22
    Thanked 7 Times in 5 Posts
    Blog Entries
    1
    Local Date
    June 18, 2013
    Local Time
    22:39
    Yea, same here.

    Though sometimes the land looks all like mountains or something.
    Captain of Team Apolyton - ISDG 2012

    When I was younger I thought curfews were silly, but now as the daughter of a young woman, I appreciate them. - Rah

  3. #33
    Julinoleum
    Settler
    Join Date
    11 Jan 2005
    Posts
    24
    Country
    This is Julinoleum's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    I think I found why but I am not sure yet if it was the problem. My BMP was in 16 bit format and I changed it to 24.
    I was able to go on the map with that only, but I need to try with every bmp converted

    Yeah, that was the problem. And I just read the PDF that it needed to be in 24 bits

    Edit: ... nope, didnt work. There is another problem
    Last edited by Julinoleum; November 6, 2005 at 20:51.

  4. #34
    Julinoleum
    Settler
    Join Date
    11 Jan 2005
    Posts
    24
    Country
    This is Julinoleum's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    How do you set the world to appear as a globe when you push the ZOom Out button? My map works now but it appear as a traditional Civ map. Wrapped on X...

  5. #35
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    if you post your files here in a zip, i can tell you what's wrong

  6. #36
    Feet
    Chieftain
    Join Date
    31 Oct 2005
    Posts
    40
    Country
    This is Feet's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    Originally posted by Julinoleum
    How do you set the world to appear as a globe when you push the ZOom Out button? My map works now but it appear as a traditional Civ map. Wrapped on X...
    I think you need to add the cheat code into the .ini file to make that work from the off otherwise you can only zoom out a little way.
    Currently working on:
    A Song of Ice and Fire Mod for Civ 4!
    Click me to find out more!

  7. #37
    Feet
    Chieftain
    Join Date
    31 Oct 2005
    Posts
    40
    Country
    This is Feet's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    There's an error in the PDF manual. It says on page 8 it says,

    "Actually, only the first is required to generate a map. You can just select the heights map, and press Cancel for the others."

    This is not true. A height map and a terrain map (atleast it needs to be competely green) are required to generate a map that you can actually open in world builder.

    I think perhaps this part of the manual is just mis-leading, ather than in error. You CAN generate a WBS with just a height BMP but it's completetly useless on its own inside the game. You need a terrain map to actually open it in Civ4. You do not make this clear at all.

    I think this is what's causing the problem when people are seeig the "You have been defeated." message as soon as they load up their own WBS, since there is no land on the map to start with at all!
    Last edited by Feet; November 8, 2005 at 09:29.
    Currently working on:
    A Song of Ice and Fire Mod for Civ 4!
    Click me to find out more!

  8. #38
    Hambut_Bulge
    Settler
    Join Date
    09 Jul 2005
    Posts
    1
    Country
    This is Hambut_Bulge's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    03:39
    Can anyone help with the following error please?

    Setting WBSPath to C:\Program Files\Python 2.4.2\default.Civ4WorldBuilderSave


    Traceback (most recent call last):
    File "C:\Program Files\Python 2.4.2\BMPtoWBSConverter186.py", line 273, in OnStart
    err = self.wxApp.ConvertBMP()
    File "C:\Program Files\Python 2.4.2\BMPtoWBSConverter186.py", line 375, in ConvertBMP
    self.HeightMap = Image.open(self.HeightMap)
    File "C:\Program Files\Python 2.4.2\Lib\site-packages\PIL\Image.py", line 1717
    , in open
    fp = __builtin__.open(fp, "rb")
    IOError: [Errno 2] No such file or directory: ''


    I think I've installed everything (python-2.4.2.msi, wxPython2.6-win32-ansi-2.6.1.0-py24.exe, PIL-1.1.5.win32-py2.4.exe) and copied the assets\python\system\wx to C:\Program Files\Python 2.4.2. So I thought I'd fire up the default scenario and try generating that as a test to see if everything is OK. Obviously not! Unfortunately I'm a Python newb and have no idea what the above means.

  9. #39
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    to the moderators: I need to update the file, but it doesn't let me overwrite it

  10. #40
    FancyAFrederick
    Settler
    Join Date
    02 Nov 2005
    Posts
    9
    Country
    This is FancyAFrederick's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    I could use some help here. The prog is installed, and works perfectly. I have my terrain map and my heights map, both 600x660.
    Did I understand it right that the prog will resize the actual map to 60x66?

    Now for my problem: It seems no matter what I try the prog generates a map completly full of peaks (except 3 squares, wich I find rather strange). I have tried creating "empty_map.bmp" like in the default example, but it did not help.

    Is my map not drawn good enough? (due to the size, I can imagine it is a bit too blury).
    Is it the resizing thats not working as intended?

    Many thanks in advance

  11. #41
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    blurry you say? It should strictly follow the pallete.

  12. #42
    duodecimal
    Warlord duodecimal's Avatar
    Join Date
    06 Nov 2001
    Location
    Maryland
    Posts
    129
    Country
    This is duodecimal's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 18, 2013
    Local Time
    22:39
    Fancy, sounds like your problem was the image being anti-aliased during resizing. That's what Rhye means by following the palette.

    I make my maps at the resolution they'll need to be - resizing is imprecise, needs additional editing, and should be avoided in the first place. I think the sections on resizing in the PDF should have been labeled as a "just in case you make the mistake of creating your maps at the wrong resolution..."

  13. #43
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    well,

    I got it to work once... then I tried to change the X and Y axis settings and it didn't work... now, it doesn't work at all with my custom maps.

    although the original map still seems to be converted fine.


    here's what the error says... I have no clue what it means.

    Traceback (most recent call last):
    File "C:\python24\BMPtoWBSConverter186.py", line 273, in OnStart
    err = self.wxApp.ConvertBMP<>
    File "C:\python24\BMPtoWBSConverter186.py", line 519, in Convert BMP
    self.ConvertImage<>
    File "C:\python24\BMPtoWBSConverter186.py", line 550, in ConvertImage
    self.CountRiverPixels<>
    File "C:\python24\BMPtoWBSConverter186.py", line 719, in CountRiverPixels
    self.tRiverPixel = self.RiverMap.getpixel<>
    File "C:\Python24\Lib\site-packages\PIL\Image.py", line 859, in getpixel return self.im.getpixel
    IndexError: image index out of range



    I also sometimes get this error instead....

    File "C:\python24\BMPtoWBSConverter186.py", line 273, in OnStart
    err = self.wxApp.ConvertBMP<>
    File "C:\python24\BMPtoWBSConverter186.py", line 381, in CovertBMPself.RiverMap = Image.open
    File "C:\Python24\Lib\site-packages\PIL\Image.py, line 1721, in open prefix = fp.read<16>
    AttributeError: BmpImageFile instance has no attribute 'read'


    hopefully the above makes some sense. For the record, I had H, F, and T maps, but no river or bonuses.

    thanks

    -Zen Blade
    FARSCAPE......................

  14. #44
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    mmmm...try giving the converter the heights map as river map and see if it works

  15. #45
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    That seems to have worked Rhye. --using H map as the river map.

    it has converted twice correctly... although I am now trying to figure out other tweaks (consistent forests is tough for the program, trying to fix that).

    thanks!
    -Zen Blade
    FARSCAPE......................

  16. #46
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    Originally posted by Rhye


    it's the feature variety.
    It can be 0, 1 or 2.
    The converter assigns automatically the variety judging on terrain and latitude seems to have an effect too. But you can edit the value editing the WBS with notepad

    RHYE, regarding forest selection... where can I input/affect this 0,1,2 selection. Your converter has been amazing so far, but I can't find/realize where I should be looking for this option.

    About half the time the converter gets it right, but the other half of the time I feel like I should give some input to ensure proper tree selection.

    thanks!

    -Zen Blade
    FARSCAPE......................

  17. #47
    Raion
    Prince Raion's Avatar
    Join Date
    26 Jan 2001
    Location
    USA
    Posts
    815
    Country
    This is Raion's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    Well, I would say that NASA is the place to get maps of the Earth --- and rather large maps if one wants -- so large that the map will need future computers to play it!

    http://visibleearth.nasa.gov/

    http://earth.jsc.nasa.gov/sseop/efs/

    And more exactly:
    http://visibleearth.nasa.gov/view_rec.php?vev1id=11656

    Topography Maps!

  18. #48
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    Originally posted by Zen



    RHYE, regarding forest selection... where can I input/affect this 0,1,2 selection. Your converter has been amazing so far, but I can't find/realize where I should be looking for this option.

    About half the time the converter gets it right, but the other half of the time I feel like I should give some input to ensure proper tree selection.

    thanks!

    -Zen Blade
    the converter handles it automatically using the base terrain

  19. #49
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    But is there any way to affect how the converter chooses or how the program chooses where the forest should be type 0,1, or 2?


    I have a map that I want to not be a whole world, but rather a just like North America, for example.


    -Zen Blade
    FARSCAPE......................

  20. #50
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    yes it is, editing the program itself

  21. #51
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39

    Number of players

    Hey Rhye,

    I can't seem to get #of players to work.

    No matter what number I select, the game always starts with 8 players (or is it 7+barbarians... I forget).

    any suggestions?

    -Zen Blade
    FARSCAPE......................

  22. #52
    Fireb
    Chieftain
    Join Date
    14 Sep 2004
    Posts
    92
    Country
    This is Fireb's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    02:39
    Wow! Fantastic tool. It took me a little while to get started, and to understand a few basic things...but now that I know how it works...it's brilliant

    One thing still puzzles me though (Zen mentions this too): I set the players number to 3 and 8 players show up when I start the scenario...what am I doing wrong? Grazie.
    The Roman Kings scenario is now ready for play: http://apolyton.net/forums/showthrea...tin.com/forum/

  23. #53
    smellymummy
    King
    Join Date
    10 Aug 1999
    Posts
    2,079
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 18, 2013
    Local Time
    18:39
    i noticed that ivory in the PDF is (128, 64, 64) and i was wondering why the maps i made didn't have ivory.

    the correct color code for ivory is really (128, 128, 64)

    although if you prefer it to be (128, 64, 64) just edit the file "BMPtoWBSConverter186.py" on line 53 to the color code you want

  24. #54
    OmniGod
    Prince OmniGod's Avatar
    Join Date
    15 Dec 1999
    Location
    Welland, ON
    Posts
    751
    Country
    This is OmniGod's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 18, 2013
    Local Time
    22:39
    Well it looks like it's time to get back to work on my full world map that I did for Civ3 editting... I assume that it shouldn't be anymore difficult to change the colour palette to the new format... thanks loc, rhye and jesse.

    EDIT: Okay... with a little reading... as one always should before they post... this is going to be a project. I just would like a confirmation on two things.

    1. I really need to make 5 maps: height, terrain, features, river and bonus.

    2. What is that largest size of map for civ4 that is reasonable for play? My map is a 2km resolution map... so how detailed do I need to make it not that I'm trying to be lazy or anything.
    Last edited by OmniGod; April 4, 2006 at 14:26.

  25. #55
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    Originally posted by OmniGod
    Well it looks like it's time to get back to work on my full world map that I did for Civ3 editting... I assume that it shouldn't be anymore difficult to change the colour palette to the new format... thanks loc, rhye and jesse.

    EDIT: Okay... with a little reading... as one always should before they post... this is going to be a project. I just would like a confirmation on two things.

    1. I really need to make 5 maps: height, terrain, features, river and bonus.

    2. What is that largest size of map for civ4 that is reasonable for play? My map is a 2km resolution map... so how detailed do I need to make it not that I'm trying to be lazy or anything.
    1. You can do just the first 2 or 3 and put the rest with the world builder if you want. I prefer working on 5 bitmaps.


    2. There isn't that I am aware of. The limit probably is when computer dies

  26. #56
    OmniGod
    Prince OmniGod's Avatar
    Join Date
    15 Dec 1999
    Location
    Welland, ON
    Posts
    751
    Country
    This is OmniGod's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 18, 2013
    Local Time
    22:39
    And my computer seems to be dying a lot lately... stupid graphics... it's amazing that only after about 200 turns on a huge world it just dies.

  27. #57
    Rhye
    Civ4 Map Designer Rhye's Avatar
    Join Date
    31 Aug 2001
    Location
    Livorno
    Posts
    63
    Country
    This is Rhye's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    June 19, 2013
    Local Time
    04:39
    what's the size of your huge world?

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. SPR to GIF converter?
    By Mad Eye in forum CtP2 Creation
    Replies: 4
    Last Post: October 27, 2004, 19:45
  2. UTILITY: Map Making Utility and Save Viewer
    By LookANinja in forum Civilization III
    Replies: 103
    Last Post: March 14, 2004, 01:57
  3. civ converter
    By geoffrey arnold in forum Civilization I and Civilization II
    Replies: 1
    Last Post: December 21, 2002, 09:32
  4. UTILITY: Civ3Peek - SPYING UTILITY
    By CTyson in forum Civilization III
    Replies: 7
    Last Post: August 4, 2002, 04:02
  5. FW -----> ToT Converter!!!???
    By prushka in forum Scenario League / Civ2-Creation -Archive
    Replies: 0
    Last Post: November 30, 1999, 20:51

Visitors found this page by searching for:

IndexError: image index out of range

wbs converter

civilization 5 world builder convert image map

bmp to wbs converter

civ 4 bts bmp to wbs converter

patch civ 4 scenario ice and fire

civ 5 worldbuilder bmp to wbs

civilization 4 image to wbs

changed earth civ iv you have been defeated

bmp wbs converter win7

convert fp to wbs

powered by vBulletin king county library system

civ 4 cant save editing wbs

civ4 bts python maps

civilization 4 how to convert world saves

bmptowbsconverter

civilization 4 bts save converter

civ4 import maps from bmp

getpixel image index out of range python

pil image index out of range

python indexerror image index out of range

Civilization 5 1.1.5 mobile

civ iv convert maps to format

civ iv convert saves into maps

civilization iv rhyes greece you have been defeated

Bookmarks

Posting Permissions