'Spy's sappin' my WorldBuilder' - Fixes for Stamp Tool and Atmosphere Presets saving
Having released a fix for the StampTool I got another bug report concerning saving of Atmosphere Presets which apparently made the WorldBuilder crash. I decided to spent some time doing research and hopefully in the end solving the problem; fortunately I was able to do so in just eight hours. I'd like to present the results of my hard work so you can once more enjoy a fixed WorldBuilder and use all the features you'd like to use .
(If this was a book, that part would have been called 'Introduction'.)
At first you should take notice that this new fix renders the old one obsolete; however, you can still download and use the old fix as well (remember that the old one only fixes the Stamp Tool). This new way of solving the issues does not require any changes to the WorldBuilder executable and shall thus be preferred.
During my on going exploration of the WorldBuilders of both Company of Heroes and Dawn of War 2 I noticed that there seems to be one problem that's universal and that is the file system Relic chose to use.
If you're not interested in technical details then you might want to skip this part.
Relic games make use of aliases for certain file paths such as DATA: for the path to the data-files. The latest versions of Relic's file system sometimes get into trouble and can't resolve the aliases and try to read a file located at DATA:Scenarios\MP\ which is not valid path for a Windows OS. Some of you involved in modding might remember that handy pipeline.ini file which was removed when ToV hit the stores; you were able to define some of these aliases within this file and my researches showed that the WorldBuilder still depends on that ini but can't find it for a specific reason: It's not searching the right places. I always wondered why Relic chose to begin storing maps and stuff in the Documents\My Games\Company of Heroes\ directory and obviously there are few things being mixed up by using that specific folder. Using some nifty tool like ProcMon you can clearly see that the WorldBuilder searches the Documents\My Games\Company of Heroes\ folder for a file called pipeline.ini which (I guess) is not present in about 99,9999573% of all cases.
As usual the solution for such a problem is quite simple but finding out what the real problem is took a huge amount of time (again: as usual). For the fixing I had two choices, either modifying the WorldBuilder executable to use it's own directory or simply putting a slightly modified pipeline.ini into the right directory. My old solution substituted DATA: (which is apparently defined in the pipeline file) with TOOL: ( = the directory the tool is stored in) but this did not work for the Atmosphere Preset saving crash as here the path is calculated at runtime.
How to install/use?
Download the attached pipeline.ini (zipped) and put it into Documents\My Games\Company of Heroes\. You might notice that I deleted the value for the ToolsData entry, that is because the WorldBuilder does not really use that directory and will show an error message if that specific directory doesn't exist.
There's - as far as I tested it - no need to add any additional projects to that pipeline file. If you used my old fix for the Stamp Tool remember that your stamps are now again stored in the original directory in the My Games\Company of Heroes\ directory.
Your WorldBuilder should now be fixed.
DarkBladeCR - I used one of his pipeline files as a template
DerangedFerret - He reported the Atmosphere crash to me (by the way, the OMG-Mod website looks fantastic!)
PS: I'm happy when I know that you're happy. So if you're happy then please let me know, this is what keeps me working .
old postEDIT: FYI, the WorldBuilder just fails to replace DATA: with the actual Data-path.
I never knew why you needed that stamp tool in the first place, I've never used it at all. However, I might not understand what is so important about that feature but anyway, I've solved that problem. You can download the fixed version of the WorldBuilder here:
It was actually quite easy to fix, made it within ~2 hours. I really enjoyed spending some time with solving a real problem after a very busy week of hard work. I'm really counting on Relic to leave us some more bugs to fix as I'm not looking forward to becoming bored. I just realized that this is already the second WorldBuilder for a Relic game that I needed to fix.
Ah, and by the way, thought you might want to have a peak at the ReadMe before downloading the stuff:
AUTHOR: Copernicus aka cope
CONTACT: Visit the RelicNews forums and send me a PM
GAME: Company of Heroes
DESCRIPTION: A fixed version of the WorldBuilder which causes problems since patch 2.600.
Table of Contents:
3. Additional Information
4. Legal Stuff
Copy/move WorldBuilder_fixed.exe into your CoH directory. Use it just as you'd use the normal WorldBuilder. Done.
What does this fixed version actually fix? Well, since version 2.600 the stamp tool of the worldbuilder has been broken and this version fixes that bug.
3. Additional Information
All the stamps you save are stored in <YourCoHDirectory>\WBData\Stamps.
4. Legal Stuff
I take no responsibility if this fixed version of the WorldBuilder causes any problems. Neither Relic nor THQ take any responsibility for my fixed version.
YOU ARE RESPONSIBLE YOURSELF!
For support contact ME and not Relic/THQ. I can't help you with anything else than the Stamping Problem though.