UGO
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Utility Programs

Reply
 
Thread Tools
Old Oct 31, 2005, 09:48 AM   #1
Rhye
Escaped for 100 days
 
Rhye's Avatar
 
Join Date: May 2001
Location: Tokyo
Posts: 9,073
BMP to WBS Converter

Here is the BMP to WBS Converter.
With this simple tool written in Python, you can make maps and scenarios just with some bitmaps and storing scenario data info the scenario file.

The zip contains the tutorial Mapmaking And Scenario Design.pdf, which contains installation instructions and that will explain step-by-step how to make a simple scenario, and the sample bitmaps and scenario files produced in the tutorial.

http://rhye.civfanatics.net/civ4/fil...thTutorial.zip
(Tutorial updated to v1.1)


Authors: Jon Shafer, Rhye, Jesse Smith, Locutus




EDIT: here's an expanded version of the converter by Door. He added the possibility of putting improvements, routes and starting locations with the bitmaps:

(see attachment)


EDIT2:
Another modified version, with the same new features as the one above, but with many bugfixes and a reorganization of the code:

http://forums.civfanatics.com/showpo...&postcount=117



.
Attached Files
File Type: zip ModifiedBMPtoWBSConverter.zip (65.9 KB, 3759 views)

Last edited by Rhye; Oct 12, 2007 at 07:16 PM.
Rhye is offline   Reply With Quote
Old Oct 31, 2005, 10:39 AM   #2
Feet
Warlord
 
Feet's Avatar
 
Join Date: Oct 2005
Location: Southend, UK
Posts: 143
Brilliant! Thank you very much! I think this is exactly what I need to get off and running.
Feet is offline   Reply With Quote
Old Oct 31, 2005, 01:16 PM   #3
Corvuz
Chieftain
 
Join Date: Oct 2005
Posts: 6
This looks really interesting and cool. But where can I get the pyPIL. The link that appears in the PDF file in the Zip doesn't work
Corvuz is offline   Reply With Quote
Old Oct 31, 2005, 01:43 PM   #4
Rhye
Escaped for 100 days
 
Rhye's Avatar
 
Join Date: May 2001
Location: Tokyo
Posts: 9,073
http://www.pythonware.com/products/pil/#pil115
Rhye is offline   Reply With Quote
Old Oct 31, 2005, 03:46 PM   #5
Corvuz
Chieftain
 
Join Date: Oct 2005
Posts: 6
Thanks a lot. Just what I needed.
Corvuz is offline   Reply With Quote
Old Oct 31, 2005, 09:02 PM   #6
Jon Shafer
Firaxis Lead Designer
 
Jon Shafer's Avatar
 
Join Date: Jul 2002
Location: Hunt Valley, MD
Posts: 2,025
I have made a number of maps with the original version of the utility I wrote before Rhye, Locutus and Jesse enhanced it (and gave it a pretty GUI ). They should be released before too long.

It's quite powerful for what started as one of my side projects and is very good at giving maps that look like real life if you put some time into it. Rhye's philosophy is somewhat different and prefers to mod things on a pixel-by-pixel basis as a WorldBuilder replacement.
__________________
Tell me about Final Frontier Problems & Issues Here!
A Final Frontier Walkthrough

All statements in the above post are the opinion of the author and in no way represent Take 2, 2K Games or Firaxis Games.
Jon Shafer is offline   Reply With Quote
Old Nov 01, 2005, 02:47 AM   #7
Rhye
Escaped for 100 days
 
Rhye's Avatar
 
Join Date: May 2001
Location: Tokyo
Posts: 9,073
Quote:
Originally Posted by Trip
It's quite powerful for what started as one of my side projects and is very good at giving maps that look like real life if you put some time into it. Rhye's philosophy is somewhat different and prefers to mod things on a pixel-by-pixel basis as a WorldBuilder replacement.
You should be able to do both ways.
In fact I written in the tutorial that one can just use the first 3 bitmaps and continue working in the world builder, or go to phase 2 and place resources and rivers by pixel.

Last edited by Rhye; Nov 01, 2005 at 02:59 AM.
Rhye is offline   Reply With Quote
Old Nov 01, 2005, 02:59 AM   #8
Arne
King
 
Arne's Avatar
 
Join Date: Apr 2001
Location: Rostock (GER)
Posts: 879
Not sure if this is the right thread for this problem. Well however ...
Quote:
Originally Posted by BMP to WBS PDF-file
To run the application, you just have to double click on the .py file corresponding to your scenario, and it will automatically launch the actual converter.


...

When you launch EmptyScenario.py, two windows open:
No, thats not true for me. When I double click on the .py file, then there will open small black window for half a second or such but it is closed and nothing happens. Whats wrong?
Arne is offline   Reply With Quote
Old Nov 01, 2005, 03:29 AM   #9
Rhye
Escaped for 100 days
 
Rhye's Avatar
 
Join Date: May 2001
Location: Tokyo
Posts: 9,073
you edited it right? It probably contains an error somewhere.
Rhye is offline   Reply With Quote
Old Nov 01, 2005, 03:34 AM   #10
Arne
King
 
Arne's Avatar
 
Join Date: Apr 2001
Location: Rostock (GER)
Posts: 879
No, I only wanted to edit something, but I didn't for now. I just double click on the EmptyScenario.py. And nothing happens.

[edit: Now I know, whats going wrong: Additionaly to python and pyPIL, we need wxPython. Additional 17 MB...]

Last edited by Arne; Nov 01, 2005 at 03:45 AM.
Arne is offline   Reply With Quote
Old Nov 01, 2005, 04:15 AM   #11
Feet
Warlord
 
Feet's Avatar
 
Join Date: Oct 2005
Location: Southend, UK
Posts: 143
I have the same problem as Arne. Do you need Civ 4 installed for it to work?

EDIT: Ah nevermind. I installed wxPython as Arne suggested and it works now. Get it from here http://prdownloads.sourceforge.net/w...6.1.0-py24.exe

Also what freeware program would you recommend for colouring the BMPs (since MSPaint isn't a great option)?

I know of GIMP but I really didn't like the look of that one.

Last edited by Feet; Nov 01, 2005 at 04:53 AM.
Feet is offline   Reply With Quote
Old Nov 01, 2005, 05:26 AM   #12
Fobok
Chieftain
 
Fobok's Avatar
 
Join Date: Oct 2005
Location: Ontario, Canada
Posts: 75
Thought I'd take a look at this and see. I did notice, though, that Python and PyPIL have been upgraded a version number from what's said in the PDF. Will updating to the modern versions effect it at all? (I remember a while back I was trying to get something Python to work and it ended up needing an older version.)
Fobok is offline   Reply With Quote
Old Nov 01, 2005, 09:41 AM   #13
King Jason
Fleece-bearer
 
King Jason's Avatar
 
Join Date: Oct 2005
Posts: 548
I'm having a bit of trouble, I've followed you're little example exactly and everything came out fine, right down to the river placement. I spent quite a while on this.

but my problem is... I can't make any new maps at all. strangely enough I can only make the default one and the empty one. I've got the exact color codes for all colors too.

the closest I've come is to getting in game but being defeated instantly and the whole map was just mountains.

any thoughts as to what's going wrong?
King Jason is offline   Reply With Quote
Old Nov 01, 2005, 11:02 AM   #14
Elhoim
AoD Lead Artist
 
Elhoim's Avatar
 
Join Date: Nov 2004
Location: San Isidro, Argentina.
Posts: 1,494
Quote:
the whole map was just mountains
Same thing that happened to me... And also my map didn´t go round, earth like, in the world view...
Elhoim is offline   Reply With Quote
Old Nov 01, 2005, 04:47 PM   #15
Feet
Warlord
 
Feet's Avatar
 
Join Date: Oct 2005
Location: Southend, UK
Posts: 143
Strange I've successfully created a map just fine following these instructions.

Though it did have a few anomalous mountains here and there...
Feet is offline   Reply With Quote
Old Nov 02, 2005, 08:43 AM   #16
Craig_Sutter
King
 
Join Date: Aug 2002
Location: Seoul, South Korea
Posts: 815
Thumbs up

I haven't recieved Civ IV yet, but thanks to your wonderful utility I've started making maps. It's great. Thanks.

I have a couple of questions about the nature of the files the program creates... I know that python can be used to create map scripts. Several custom map scripts are included with the game... my first question is, is the .py file created by your utility a map script? Rather than creating a WB Save file, can I treat the .py file as a custom map script.

The reason I ask this, is that I want to create a scenario map with some random characteristics... I believe the WB Save file is fixed once it is created, so random generation of resources or starting locations, etc. is not possibile. I'm guessing this has to be done when the save file is generated. Map scripts allow this randomness... that's why I'm asking whether the generated py file is a script.

What I really want to do in my scenario is pre-place certain "cultural" resources, but otherwise randomize resource placement. Your program allows me to input coordinates to place resources... however, I'd like to introduce some of the random placement algorithms that I suppose the map scripts have... is this at all possible? If it is, I hope a simple cut and paste into the .py file would do it... again, this all depends if your program generates a map script.

I'm not a programmer, and my skills are limited in this area. Are the above suppositions about the files correct? Or should I just give up these ideas now...

and this is likely asking too much... but if its a really simple matter of cut and paste, could you add a randomresourse.py to your download... that is if my ideas are not out to lunch and you think it might be a useful addition to the utility.

Thank you for the utility, once again.
Craig_Sutter is offline   Reply With Quote
Old Nov 02, 2005, 08:53 AM   #17
Rhye
Escaped for 100 days
 
Rhye's Avatar
 
Join Date: May 2001
Location: Tokyo
Posts: 9,073
Quote:
Originally Posted by Craig_Sutter
map with some random characteristics... I believe the WB Save file is fixed once it is created, so random generation of resources or starting locations, etc. is not possibile. I'm guessing this has to be done when the save file is generated. Map scripts allow this randomness... that's why I'm asking whether the generated py file is a script.

What I really want to do in my scenario is pre-place certain "cultural" resources, but otherwise randomize resource placement. Your program allows me to input coordinates to place resources... however, I'd like to introduce some of the random placement algorithms that I suppose the map scripts have... is this at all possible? If it is, I hope a simple cut and paste into the .py file would do it... again, this all depends if your program generates a map script.
i think you'd have to edit the converter itself.
it's open source, after all...
Rhye is offline   Reply With Quote
Old Nov 02, 2005, 08:55 AM   #18
King Jason
Fleece-bearer
 
King Jason's Avatar
 
Join Date: Oct 2005
Posts: 548
You could try leaving the resource info when using the converter blank. Then when you load the map in civ4 use the world builder to manually place all of the resources.

By the way, I'm still having trouble creating a custom map, any thoughts or tips from anyone would greatly be appreciated. The game either quites outright, or loads a map with nothing but mountains.
King Jason is offline   Reply With Quote
Old Nov 02, 2005, 09:11 AM   #19
Feet
Warlord
 
Feet's Avatar
 
Join Date: Oct 2005
Location: Southend, UK
Posts: 143
Make sure you the only colours you have in the bitmaps are the ones from the manual. And I would suggest you resize your BMPs so that one pixel in BMP = one tile in WBS. This has worked for me a few times now.

So resize your BMPs to 128 x 80 (or whatever size you want), colour it the way you want (you'll need to zoom i real close and colour the pixels seperately where necessary).

Then when you set the BMP Converter Options in the app that you input the same numbers for the X and Y fields as the pixels in the BMP.

Hope that helps.
Feet is offline   Reply With Quote
Old Nov 02, 2005, 12:44 PM   #20
King Jason
Fleece-bearer
 
King Jason's Avatar
 
Join Date: Oct 2005
Posts: 548
Yeah, that's actually what I've been doing from the start.

odd though, I guess I'll just have to keep trying.

Maybe I'll reinstall all the python stuff before I give it another shot.
King Jason is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Utility Programs > BMP to WBS Converter

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BMP to WBS Converter with FfH2 Sanatyr FfH2 Modmods, Scenarios, and Maps 0 Oct 31, 2008 07:51 PM
Help with BMP to WBS converter frenett Civ4 - Creation & Customization 17 May 08, 2006 05:48 PM
BIC/BIX to BMP/JPG converter hawkstarr Civ3 - Creation & Customization 8 Dec 02, 2004 04:15 PM
BMP to BIC converter for the Mac phorvath2110 Civ3 - Creation & Customization 0 Jan 25, 2004 08:30 AM
Anyone have a good bmp to pcx converter? Scipio Africanu Civ3 - Creation & Customization 7 Jan 13, 2002 01:01 PM



All times are GMT -6. The time now is 05:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
This site is copyright © 2000 - 2009, Civilization Fanatics' Center.
Support CFC: Amazon.com | EB Games | Amazon UK | Amazon DE | Amazon CA | Amazon FR