Munge Problem (short munge) (FAQ)
Moderator: Moderators
- phazon_elite
- Rebel Colonel
- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Munge Problem
After doing the bit of editing you did on some other batch files (like for sides and worlds), side munging seems to be ok (but the log looks rather odd in VisualMunge). I can't say the same for when I munge a world. I end up with these errors in my Mungelog:
This obviously means there's something wrong with the common munge, as when the localization files are munged, they are actually merged with the common munge.
Hidden/Spoiler:
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
I'm defiantly not an expert at batch files (I barely know anything for that matter), so I can't browse through each batch file quickly. Because of this, and the fact that I don't have the time right now to create test scenarios for each situation, I can only guess at how to help. If you notice for the side munging, you'll notice a munge_fpm.bat and a munge_side.bat that each have the same lines mentioned a few posts up. You could remove comment those lines in each of those to see if that normalizes the munge for the side...
...That is of course if you are getting the lvl files after the munge, which impspy didn't, and I for some reason, am not either. I thought I double checked to make sure the map ran before in stead of just seeing if the munge went through, but maybe I forgot that. Regardless, I have work to do on this problem, so I'll get back to you.
...That is of course if you are getting the lvl files after the munge, which impspy didn't, and I for some reason, am not either. I thought I double checked to make sure the map ran before in stead of just seeing if the munge went through, but maybe I forgot that. Regardless, I have work to do on this problem, so I'll get back to you.
- phazon_elite
- Rebel Colonel
- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Munge Problem
What you mentioned was what I did before, and it's a success. It will give me normal side files, and they work ingame. What I think really needs to be figured out is what I posted yesterday, that core.files error.Frisbeetarian wrote:I'm defiantly not an expert at batch files (I barely know anything for that matter), so I can't browse through each batch file quickly. Because of this, and the fact that I don't have the time right now to create test scenarios for each situation, I can only guess at how to help. If you notice for the side munging, you'll notice a munge_fpm.bat and a munge_side.bat that each have the same lines mentioned a few posts up. You could remove comment those lines in each of those to see if that normalizes the munge for the side...
...That is of course if you are getting the lvl files after the munge, which impspy didn't, and I for some reason, am not either. I thought I double checked to make sure the map ran before in stead of just seeing if the munge went through, but maybe I forgot that. Regardless, I have work to do on this problem, so I'll get back to you.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
I know that for some reason, it's not munging the .req files right/ at all, I'm just trying to figure out why.
- phazon_elite
- Rebel Colonel
- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Munge Problem
Which req's? The world req or the common reqs? Also, do you have Xfire? We could work on this over the weekend, as I have a 4-day weekend due to finals this week.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
It was yesterday, so I forget which .req files, but I'm pretty sure that they were the common, since I was checking to see why it wasn't creating the _LVL_PC folder. I have the benefit of having another computer that has mod tools working to compare to, but I don't have much time on my hands.
And, no, I don't have Xfire, sorry.
EDIT: I also know that the changes done up to this point aren't causing the problem, as changing it on another computer that can munge is still OK.
And, no, I don't have Xfire, sorry.
EDIT: I also know that the changes done up to this point aren't causing the problem, as changing it on another computer that can munge is still OK.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
When any batch file referenced by the original munge.bat fails, munge.bat itself crashes and the munge process continues with its final part which includes the addme.lua and other stuff (that's why addme.script would be created even with the rest of the process failing, since it's not part of _BUILD\munge.bat). This said, I didn't catch that _BUILD\Common\munge.bat referenced munge_sprites.bat and munge_fpm.bat, and since one of those crashed, the whole process crashed. The reason the sides aren't munging fully is the same reason that I wasn't getting .lvl files, which is because the whole process was not completing itself.
After editing _BUILD\munge.bat, _BUILD\Common\munge.bat, _BUILD\Common\munge_sprites.bat, _BUILD\Common\munge_fpm.bat, and _BUILD\Worlds\munge_world.bat, I got a playable world and all necessary files in the addon folder. I haven't tested the sides, I'll leave that up to you.
Just as a note of reference, there are five other files in the _BUILD sub-directory that have the crashing line in them. They are Load\munge.bat, Shell\munge.bat, Sides\munge_sides.bat, Sides\munge_fpm.bat, and Sound\munge.bat. Some of the animation munge files also have the line as well, but they aren't in the _BUILD directory.
After editing _BUILD\munge.bat, _BUILD\Common\munge.bat, _BUILD\Common\munge_sprites.bat, _BUILD\Common\munge_fpm.bat, and _BUILD\Worlds\munge_world.bat, I got a playable world and all necessary files in the addon folder. I haven't tested the sides, I'll leave that up to you.
Just as a note of reference, there are five other files in the _BUILD sub-directory that have the crashing line in them. They are Load\munge.bat, Shell\munge.bat, Sides\munge_sides.bat, Sides\munge_fpm.bat, and Sound\munge.bat. Some of the animation munge files also have the line as well, but they aren't in the _BUILD directory.
- impspy
- Captain
- Posts: 493
- Joined: Wed Dec 31, 2008 1:54 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Pax Empiricae; check WIP
Re: Munge Problem
I loath vista... 

- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
Something still wrong?
If it is, did you make sure to edit the _BUILD\Common\munge_sprites.bat, _BUILD\Common\munge_fpm.bat, and _BUILD\Worlds\munge_world.bat files like I edited the files I uploaded, as previously mentioned in the thread?
If it is, did you make sure to edit the _BUILD\Common\munge_sprites.bat, _BUILD\Common\munge_fpm.bat, and _BUILD\Worlds\munge_world.bat files like I edited the files I uploaded, as previously mentioned in the thread?
- phazon_elite
- Rebel Colonel
- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Munge Problem
Alright, here is my update:
I managed to get everything working after editing munge_sprites.bat, which was probably the only thing I did not edit (besides the munge.bat files for Load, Shell, and Sound, but only the munge.bat for Sound will be important to me). The only problem is that I can't seem to be able to munge both Common and my world in one munge, as if I do, I only munge Common. If I munge only my world afterward, it works. This may be due to the fact that I haven't fixed the munges for Load, Shell, and Sound, but I'll let you know if editing them affects the process.
Also, does anyone else other than me think that this should be added to the Everything You Need to Know thread? It's a rare problem that should be probably known.
EDIT: Whoops, I meant added to the Everything You Need to Know thread, not stickied.
ANOTHER EDIT: Success! I have edited every necessary batch file, and the entire munge works flawlessly. I'm now running my map with everything included.
I managed to get everything working after editing munge_sprites.bat, which was probably the only thing I did not edit (besides the munge.bat files for Load, Shell, and Sound, but only the munge.bat for Sound will be important to me). The only problem is that I can't seem to be able to munge both Common and my world in one munge, as if I do, I only munge Common. If I munge only my world afterward, it works. This may be due to the fact that I haven't fixed the munges for Load, Shell, and Sound, but I'll let you know if editing them affects the process.
Also, does anyone else other than me think that this should be added to the Everything You Need to Know thread? It's a rare problem that should be probably known.
EDIT: Whoops, I meant added to the Everything You Need to Know thread, not stickied.
ANOTHER EDIT: Success! I have edited every necessary batch file, and the entire munge works flawlessly. I'm now running my map with everything included.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
I did a test of my own by loading the shipped map of Coruscant and making a slight change in a common ODF, and I got both to show up with one munge after just editing the five files mentioned above needed for munging the world and common.
- phazon_elite
- Rebel Colonel
- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Munge Problem
So I guess we can safely say that this has been solved? I don't know about you, but I think that this should maybe be added to the Everything you Need to Know thread.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
Just to wrap things up and hopefully make things easier for anybody else who has this problem, I have uploaded an easy fix to this problem.
Instructions:
1. Download munge_fix.zip from MediaFire.
2. Extract the "mungefix" folder into your C:\BF2_ModTools folder.
3. Run the "mungefix.bat" located inside the "mungefix" folder.
This will create a copy of the old munge batch files inside the assets folder and overwrite the originals with fixed munge batch files. This fix only changes the files in BF2_ModTools\data, so you will need make a new world for the fix to take effect. You only need to run the mungefix.bat once. This fix has no effect on maps you created prior to running the mungefix.bat.
I also included a batch file that will restore the original files to their place just in case someone thinks this fix causes a problem. However, no one should need to use it since I just deleted an unnecessary redundancy that only the developers needed. If someone who already has the ModTools running properly were to run this, their munge process shouldn't be affected in the least.
P.S.
If anyone knows a better way of handling the fix (such as simply overwriting a line in a text file so that I don't have to include each fixed file in the download), please tell me so that I may update this.
Instructions:
1. Download munge_fix.zip from MediaFire.
2. Extract the "mungefix" folder into your C:\BF2_ModTools folder.
3. Run the "mungefix.bat" located inside the "mungefix" folder.
This will create a copy of the old munge batch files inside the assets folder and overwrite the originals with fixed munge batch files. This fix only changes the files in BF2_ModTools\data, so you will need make a new world for the fix to take effect. You only need to run the mungefix.bat once. This fix has no effect on maps you created prior to running the mungefix.bat.
I also included a batch file that will restore the original files to their place just in case someone thinks this fix causes a problem. However, no one should need to use it since I just deleted an unnecessary redundancy that only the developers needed. If someone who already has the ModTools running properly were to run this, their munge process shouldn't be affected in the least.
P.S.
If anyone knows a better way of handling the fix (such as simply overwriting a line in a text file so that I don't have to include each fixed file in the download), please tell me so that I may update this.
Last edited by Frisbeetarian on Thu Jul 23, 2009 7:12 pm, edited 3 times in total.
- impspy
- Captain
- Posts: 493
- Joined: Wed Dec 31, 2008 1:54 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Pax Empiricae; check WIP
Re: Munge Problem

-
- Sith
- Posts: 1329
- Joined: Sun Dec 02, 2007 12:52 pm
- xbox live or psn: TH3 R0LL3R
Re: Munge Problem
I left for a while, but now that there is a fix to problem, I can continue modding:)
Thanks a million times . . .
But the fix is not finding the path specified. I have the folder in C:\BF2_Modtools
Thanks a million times . . .
But the fix is not finding the path specified. I have the folder in C:\BF2_Modtools
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Munge Problem
That's where I have mine. What path is not specified? If it doesn't specify, go into vistamungefix.bat and put a pause after each "if" statement (make a new line and type "pause" without the quotes in that line). When does the error now come up?
- phazon_elite
- Rebel Colonel
- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Munge Problem
Very sorry to bump this, but I have some important information regarding this fix.
If anyone has run into the problem of munge_animation.bat not working in Vista, here's a fix:
Change this:
To this:
I encountered this today, and I hope it helps to anyone who had this problem.
If anyone has run into the problem of munge_animation.bat not working in Vista, here's a fix:
Change this:
Hidden/Spoiler:
Hidden/Spoiler:
-
- Recruit Womprat Killer
- Posts: 6
- Joined: Tue Apr 06, 2010 2:02 pm
Re: Munge Problem (short munge) [Solved]
Thanks for the fix
now my map can start but when I munge the world in a notepad file it gives this error
.. someone now why and if it change something in maps (I'm new in modding and this is my first map).

Hidden/Spoiler:
- lucasfart
- Sith
- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Munge Problem (short munge) [Solved]
Woah. One year bump. Anyways, on to your problem.
From what i can remember i think you can just ignore the majority of that. It does say that the shell.req doesn't exist, so i'm guessing thats your problem. Unfortunately i can't help you much more then that, as i know very little about it myself....
From what i can remember i think you can just ignore the majority of that. It does say that the shell.req doesn't exist, so i'm guessing thats your problem. Unfortunately i can't help you much more then that, as i know very little about it myself....
- impspy
- Captain
- Posts: 493
- Joined: Wed Dec 31, 2008 1:54 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Pax Empiricae; check WIP
Re: Munge Problem (short munge) [Solved]
Looks like you clicked "select all". You only need to munge shell and sound if you are munging a new shell.lvl or adding new sounds. Uncheck them and you won't get the errors.revan91 wrote:Thanks for the fixnow my map can start but when I munge the world in a notepad file it gives this error
.. someone now why and if it change something in maps (I'm new in modding and this is my first map).Hidden/Spoiler: