HotFix for println's blender m3Addon
The file was uploaded to dropbox because it gets corrupted if uploaded here.
This batch uses println's xmltom3.py and m3toxml.py scripts to fix the issues with the textures caused by patch 3.0 (black textures, textures missing, decals and roads disappearing).
It converts the .m3 files to xml, edits the lines that cause the bug, and converts the files back to .m3, leaving them ready to be imported in the editor in less than a minute.
UPDATE 2015/11/17
I've uploaded a new version. It has 3 different batchs:
- "m3fix.bat": It's the same than before. If it worked for you before, keep using it.
- "m3fix - alternative.bat": If the first doesn't work, use this one. I've made it to solve a weird behavior with the quotes in some pcs.
- "m3fix - manual.bat": The last alternative. Before running it, you have to paste in the unzipped folder a shortcut to python.exe called exactly "python.lnk" (* *).
How to use
- Download (and install) python.
- Download the file - Here's a mediafire mirror.
- Unzip the file (preferably in an easy folder, like c:\hotfix).
- Copy the .m3 files that cause the issue to the unzipped folder (*).
- Remove the spaces in the .m3 file names.
- Run m3fix.bat.
- Start it and wait until it finishes.
This batch was made in a hurry, and it may have some issues. Backup your models before using it. Also, try to follow the steps.
There's some vbs code, so I don't know if this works in an OS different than Windows.
(*) They're the ones exported with println's addon using blender. To identify if a model has the issue, open a new map with a dependency that has the model, rise a cliff and proceed to insert the unit or the doodad. If the cliff turns black, the model is bugged.
Another way of finding out wich one causes the bug is browsing (window->console->type "browse"->enter) the files with preview enabled (shift + p in the archive browser) while watching at a cliff in the terrain. If the cliff turns black when the preview of the model is loaded, then the model is bugged.
(* *) Copy start->applications->python(python dir)->(python's shortcut) to the unzipped folder and change its name to "python"
@jdc0331: Go
You're welcome.
@Cacho56: Go
I followed your instructions and the models I ran the fix on seem to be working as intended. THanks for your help.
@jdc0331: Go
Yes, there is. You have to:
With the mod (*) opened, you can switch to the import tab (F9 key) and export the .m3 files by selecting them and pressing (ctrl+e). They can be imported back by right clicking in any place of the folders list and selecting "import files".
(*) or the dependency/map that has the bugged models.
Is there a way to use this on an existing mod file? The Mass Recall has a problem with the textures and this has been suggested to fix it. I'd like to give it a try, but have no idea how to apply this to a mod file.
@collinmarcum57: Go
It's OK, that's only a tmp file. If a model with the same name and the suffix "_fixed" is created, then it has worked fine.
@Cacho56:
Your hotfix for printIn's blender add-on worked. Thanks, I can fix all the models that I have made from the Blender.
so I have a slight problem it cant find txt m3list2
Awesome
I've used the fix at least a dozen times on some models now, tried both the alternative and the normal one, it still makes the foliage and cliff go to black and then off, like some sort of non constant flickering.
Do you mind adding me on skype so i can get this sorted out, ive spend most of the day trying to figure out whats going on. Skype name is ThePhailed
@SoulFilcher: Go
The batch works like this:
Then, it reads the list and for each line:
If you tell me what's the error that pops when the .xml conversion fails, I might be able to help you.
I followed the instructions but it didn't work. It failed to create the xml file and then couldn't convert it back to m3. But I have little idea of what I'm doing. How am I supposed to use the original conversion scripts?
@WingedArchon: Go
Nope. It means that python hasn't been installed correctly, or isn't your default program to open .py files.
Try using the manual alternative
Is it normal that the programm keeps asking why it can't open the .py files?
awesome
@Cacho56: Go
Thank you! It has worked.
Only if they were made with println's addon
@Cacho56: Go You mean all the models I've done I have to fix? (I can not access the link)
It affects the original models, but it's caused by the custom ones.
But this problem is not only about the new models, also with the original models of blizzard. So I think this is temporary , i'm also trying out your arrangement.
WOW! Very good!