Visual Munge creates empty lvl_pc folder

Started by Omina, May 24, 2025, 04:14:33 AM

Previous topic - Next topic
I'm trying to make two very simple edits - change the Imperial Officer's sonic blaster to the commando pistol and the Dark Trooper's arc caster to the rifle.

These are the steps I follow:

1. Build custom world after installing BF2 Mod Tools
2. Copy IMP and COMMON sides from BF2_ModTools/assets folder to BF2_ModTools/data_ABC/sides
3. Make ODF edits to imp_inf_default_officer.odf and imp_inf_default_darktrooper.odf changing the weapons
4. Go to BF2_ModTools/data_ABC/Common/Scripts/ABC, edit ABCc_con.lua, change the cis entry to:

ReadDataFile("dc:SIDE\\imp.lvl",
                             "imp_inf_rifleman",
                             "imp_inf_rocketeer",
                             "imp_inf_engineer",
                             "imp_inf_sniper",
                             "imp_inf_officer",
                             "imp_inf_darktrooper",
                             "imp_hero_darthvader",
                             "imp_hover_fightertank")

5. Run Visual Munge in _BUILD folder,  Sides - EVERYTHING, leave common unchecked

But it doesn't actually matter what I put in step 5 because it just creates an empty lvl_Pc folder in my addon folder. And the output is just:

Munging addme.lua...done.
Copying files to Battlefront II directory:
"D:\Games\Star Wars Battlefront 2\GameData"
Addon dir exists, continuing...
Mod dir "ABC"exists, continuing...
Copying addme.script to mod dir...done
Copying "mission.lvl" to modDir\data\_LVL_PC\...done
Copying "core.lvl" to modDir\data\_LVL_PC\...done
Copying "ABC" to modDir\data\_LVL_PC\...done
Copying "SIDE" to modDir\data\_LVL_PC\...done
Munge process finished
\Common was unexpected at this time.

What am I missing please? thanks