View Full Version : WBCleaner


AnitaGaribaldi
Apr 06, 2008, 02:30 AM
Hi!

I did this small utility program for me, I hope it will be useful for other. The GUI is very simple. I may add new features later on. The WorldBuilder adds some lines that make your new Scenarios created hardcoded. For example, if you want to change the start point from one civilization, it will always know some tiles from the beginning (even if it cannot see it from the new start). The WorldBuilder hardcode some civilizations characteristics like the Leader Name, if you are modding and decided to change the XML files, it will not change in the Scenario because of that.

Reading the threads:

http://forums.civfanatics.com/showthread.php?t=176397

and

http://forums.civfanatics.com/showthread.php?t=179437


I found out how to clean maps from WorldBuilder. If I missed something, just let me know it. I really think the utility should work with Scenarios from Vanilla and BTS.

You don't need to install the program, just open the Windows Explorer and click two times over WBCleaner.jar (requires JVM 1.4 or later - most computers have it - get a Java Run Time (JRE) (http://java.sun.com/javase/downloads/?intcmp=1281) if you don't have it). You will need the JDK only if you want to change the utility. The program should work with Macs too, but I don't have one to see how the GUI will look out. I haven't used the best practices to guarantee the tool will look nice in every OS. I have tested it only in Windows. If you use Mac and cannot read the GUI, send me a screen shoot, please.

You have to type the name of the file () or press "open" to choose the file from a dialog.

Options:
Allows All Speeds - In section BeginGame/EndGame changes (it DOES NOT ADD the options) Speed and GameTurn, to Speed=NONE and GameTurn=0

Clean up TeamReveal - Deletes all lines TeamReveal

Clean up Units - Deletes all units

Clean up Cities - Deletes all cities

Clean up civs - deletes the the data of LeaderName, CivDesc, CivShortDesc, CivAdjective, FlagDecal, WhiteFlag, Color, ArtStyle, StateReligion, StartingEra, CivicOption, Handicap
leaves the data of Team, LeaderType, CivType, PlayableCiv, MinorNationStatus, StartingGold, StartingX=, StartingY=

I have tested the program only with Warlords (I donīt have BTS) with the WB file I saved from WorldBuilder.

Have fun!

File Link: WBCleaner File (http://forums.civfanatics.com/downloads.php?do=file&id=9004&act=down)

r_rolo1
Apr 07, 2008, 09:00 AM
It is working with BtS WB files... :) ... Good job ;)

AnitaGaribaldi
Apr 15, 2008, 10:50 AM
Thanks for the feedback.

New version of the file uploaded. A small cut&paste mistake corrected. The only problem was that one button had the label in Portuguese.

Chiyochan
Aug 09, 2008, 04:15 PM
It would be cool if you could expand on this and make deleting resources possible as well.