"Common was unexpected" game crashes upon loading map - nothing in LVL PC

Started by Bluetothestars, August 21, 2022, 05:10:10 AM

Previous topic - Next topic
Title. For some reason munging isn't working and my Lvl PC for my map is completely empty everytime.


Quote from: Led on August 21, 2022, 06:01:18 AMcan you post the munge error?

Okay, so now I got there to actually be stuff in the LVL PC by using the 'visa munge fix', however, it crashes my game when loading my map or even when replacing none modified sides with the original ones, there's something weird going on, I do get this error though:

ERROR[levelpack all.req]:Expecting bracket, but none was found.
File : munged\pc\all_droid_r2d2.lvl.req(1)...

ucft <--
ERROR[levelpack all.req]:Expecting bracket, but none was found.
File : munged\pc\all_droid_r2d2.lvl.req(1)...

ucft <--

   2 Errors    0 Warnings

ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
 [continuing]
   2 Errors    0 Warnings

ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
 [continuing]
   2 Errors    0 Warnings


Visualmunge is a janky useless program. If you edit MUNGE.bat (located in the same folder) you can munge your mod without that type of nonsense, but you'll have to copy all the addon files directly.
Never let a person named AnthonyBF2 touch your BF2.

Quote from: Bluetothestars on August 21, 2022, 06:06:36 AMOkay, so now I got there to actually be stuff in the LVL PC by using the 'visa munge fix', however, it crashes my game when loading my map or even when replacing none modified sides with the original ones, there's something weird going on, I do get this error though:

ERROR[levelpack all.req]:Expecting bracket, but none was found.
File : munged\pc\all_droid_r2d2.lvl.req(1)...

ucft <--
ERROR[levelpack all.req]:Expecting bracket, but none was found.
File : munged\pc\all_droid_r2d2.lvl.req(1)...

ucft <--

   2 Errors    0 Warnings

ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
 [continuing]
   2 Errors    0 Warnings

ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
ERROR[levelpack ABC.req]:Expecting bracket, but none was found.
File : munged\pc\abc_conquest.lvl.req(1)...

ucft <--
 [continuing]
   2 Errors    0 Warnings


that helps.  Check your REQ file.  You are missing a bracket.  I know that you have already read that error, but track it back though the file.
Did you edit or create your own REQ file?


Also, make sure the location of your mod tools is a folder name *without* and spaces, e.g. "SWBFmodtools"  is OK, but "Program Files SWBF mod tools"  is not.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on August 21, 2022, 03:34:48 PMthat helps.  Check your REQ file.  You are missing a bracket.  I know that you have already read that error, but track it back though the file.
Did you edit or create your own REQ file?


Also, make sure the location of your mod tools is a folder name *without* and spaces, e.g. "SWBFmodtools"  is OK, but "Program Files SWBF mod tools"  is not.

I tried it, but it's not working, it just wants me to put more brackets where they already exist. My mod tools folder has a _ instead of space so no spaces. I haven't edited any REQ files, I just copied and pasted the alliance side ones.

Quote from: AnthonyBF2 on August 21, 2022, 11:35:34 AMVisualmunge is a janky useless program. If you edit MUNGE.bat (located in the same folder) you can munge your mod without that type of nonsense, but you'll have to copy all the addon files directly.
What do you mean? What should I do when I open it? What should i edit. Also what do you mean copy all the addon files directly?

Going by your title, you have "unexpected at this time" errors. This is 100% strictly a Visualmunge issue. Using munge.bat will ensure this never happens.

You need to edit munge.bat so it looks like this: (ABC=your mod ID name)

set WORLD_PARAMETERS=ABC
set SIDE_PARAMETERS=EVERYTHING
set MUNGE_LOAD=0
set MUNGE_SIDE=1
set MUNGE_COMMON=1
set MUNGE_SHELL=0
set MUNGE_MOVIES=0
set MUNGE_LOCALIZE=1
set MUNGE_SOUND=0
set MUNGE_PLATFORM=PC
set MUNGE_LANGVERSION=ENGLISH
set MUNGE_LANGDIR=ENG
set MUNGE_ALL=0
set DISPLAY_MESSAGES=0
set XBOX_COPY=0

After you edit munge.bat, save, then run munge.bat. When the black CMD windows go away, munge is finished. You can still check the error log text file to see if something else screwed up.

If munge.bat works, which is should, and there were no other issues, you then need to copy all the files manually to your game's addon folder.

ABC>Data>_lvl_pc

Inside ABC, goes the addme.script

Inside ABC>Data>_lvl_pc goes core.lvl, mission.lvl, and the 3 letter folder that carries the 3 letter map file (ABC.lvl)

If you munged other files like sides, then the sides folder also goes in ABC>Data>_lvl_pc.
Never let a person named AnthonyBF2 touch your BF2.